-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ng-dev): create workflow performance testing tooling (#2418)
Creates a piece of tooling within ng-dev that allows for a set of commands to be run that emulate an expected workflow within a repository. This is then measured for the time it takes to run these commands so they can be checked or tracked over time. PR Close #2418
- Loading branch information
1 parent
7898454
commit db24afe
Showing
17 changed files
with
478 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
workflows: | ||
- name: Rerun a test | ||
prepare: | ||
- bazel clean; | ||
- bazel build //ng-dev/utils/test; | ||
workflow: | ||
- bazel test //ng-dev/utils/test; | ||
- git apply .ng-dev/perf-tests/test-rerun.diff; | ||
- bazel test //ng-dev/utils/test; | ||
cleanup: | ||
- git apply -R .ng-dev/perf-tests/test-rerun.diff; | ||
|
||
- name: Build Everything | ||
prepare: | ||
- bazel clean; | ||
workflow: | ||
- bazel build //...; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
diff --git a/ng-dev/utils/test/g3.spec.ts b/ng-dev/utils/test/g3.spec.ts | ||
index a82c1b7a..8e0b24f8 100644 | ||
--- a/ng-dev/utils/test/g3.spec.ts | ||
+++ b/ng-dev/utils/test/g3.spec.ts | ||
@@ -29,9 +29,9 @@ describe('G3Stats', () => { | ||
}); | ||
|
||
function setupFakeSyncConfig(config: GoogleSyncConfig): string { | ||
- const configFileName = 'sync-test-conf.json'; | ||
- fs.writeFileSync(path.join(git.baseDir, configFileName), JSON.stringify(config)); | ||
- return configFileName; | ||
+ const somethingelse = 'sync-test-conf.json'; | ||
+ fs.writeFileSync(path.join(git.baseDir, somethingelse), JSON.stringify(config)); | ||
+ return somethingelse; | ||
} | ||
|
||
describe('gathering stats', () => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.