mirror of https://github.com/vector-im/riot-web
Merge pull request #6177 from matrix-org/gsouquet/benchmark-tracking
commit
bef20dde48
|
@ -20,8 +20,19 @@ jobs:
|
||||||
test/end-to-end-tests/logs/**/*
|
test/end-to-end-tests/logs/**/*
|
||||||
test/end-to-end-tests/synapse/installations/consent/homeserver.log
|
test/end-to-end-tests/synapse/installations/consent/homeserver.log
|
||||||
retention-days: 14
|
retention-days: 14
|
||||||
- name: Archive performance benchmark
|
- name: Download previous benchmark data
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/cache@v1
|
||||||
with:
|
with:
|
||||||
name: performance-entries.json
|
path: ./cache
|
||||||
path: test/end-to-end-tests/performance-entries.json
|
key: ${{ runner.os }}-benchmark
|
||||||
|
- name: Store benchmark result
|
||||||
|
uses: matrix-org/github-action-benchmark@jsperfentry-1
|
||||||
|
with:
|
||||||
|
tool: 'jsperformanceentry'
|
||||||
|
output-file-path: test/end-to-end-tests/performance-entries.json
|
||||||
|
fail-on-alert: false
|
||||||
|
comment-on-alert: true
|
||||||
|
# Only temporary to monitor where failures occur
|
||||||
|
alert-comment-cc-users: '@gsouquet'
|
||||||
|
github-token: ${{ secrets.DEPLOY_GH_PAGES }}
|
||||||
|
auto-push: ${{ github.ref == 'refs/heads/develop' }}
|
||||||
|
|
|
@ -1953,6 +1953,7 @@ export default class MatrixChat extends React.PureComponent<IProps, IState> {
|
||||||
// Create and start the client
|
// Create and start the client
|
||||||
await Lifecycle.setLoggedIn(credentials);
|
await Lifecycle.setLoggedIn(credentials);
|
||||||
await this.postLoginSetup();
|
await this.postLoginSetup();
|
||||||
|
|
||||||
PerformanceMonitor.instance.stop(PerformanceEntryNames.LOGIN);
|
PerformanceMonitor.instance.stop(PerformanceEntryNames.LOGIN);
|
||||||
PerformanceMonitor.instance.stop(PerformanceEntryNames.REGISTER);
|
PerformanceMonitor.instance.stop(PerformanceEntryNames.REGISTER);
|
||||||
};
|
};
|
||||||
|
|
|
@ -79,7 +79,7 @@ async function runTests() {
|
||||||
await new Promise((resolve) => setTimeout(resolve, 5 * 60 * 1000));
|
await new Promise((resolve) => setTimeout(resolve, 5 * 60 * 1000));
|
||||||
}
|
}
|
||||||
|
|
||||||
const performanceEntries = {};
|
let performanceEntries;
|
||||||
|
|
||||||
await Promise.all(sessions.map(async (session) => {
|
await Promise.all(sessions.map(async (session) => {
|
||||||
// Collecting all performance monitoring data before closing the session
|
// Collecting all performance monitoring data before closing the session
|
||||||
|
@ -95,7 +95,11 @@ async function runTests() {
|
||||||
}, true);
|
}, true);
|
||||||
return measurements;
|
return measurements;
|
||||||
});
|
});
|
||||||
performanceEntries[session.username] = JSON.parse(measurements);
|
|
||||||
|
/**
|
||||||
|
* TODO: temporary only use one user session data
|
||||||
|
*/
|
||||||
|
performanceEntries = JSON.parse(measurements);
|
||||||
return session.close();
|
return session.close();
|
||||||
}));
|
}));
|
||||||
fs.writeFileSync(`performance-entries.json`, JSON.stringify(performanceEntries));
|
fs.writeFileSync(`performance-entries.json`, JSON.stringify(performanceEntries));
|
||||||
|
|
Loading…
Reference in New Issue