forked from angular/angular
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: do not run benchmark measurements in circleci (angular#34753)
Currently we run all benchmark perf tests in CircleCI. Since we do not collect any results, we unnecessarily waste CI/RBE resources. Instead, we should just not run benchmark perf tests in CI, but still run the functionality e2e tests which ensure that benchmarks are not broken. We can do this by splitting the perf and e2e tests into separate files/targets. PR Close angular#34753
- Loading branch information
1 parent
669df70
commit 4d88b4b
Showing
33 changed files
with
344 additions
and
94 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,6 @@ | |
/dist/ | ||
/bazel-out | ||
/integration/bazel/bazel-* | ||
e2e_test.* | ||
*.log | ||
node_modules | ||
|
||
|
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 @@ | ||
load("//tools:defaults.bzl", "protractor_web_test_suite") | ||
|
||
""" | ||
Macro that can be used to define a e2e test in `modules/benchmarks`. Targets created through | ||
this macro differentiate from a "benchmark_test" as they will run on CI and do not run | ||
with `@angular/benchpress`. | ||
""" | ||
|
||
def e2e_test(name, server, deps, **kwargs): | ||
protractor_web_test_suite( | ||
name = name, | ||
on_prepare = "//modules/benchmarks:start-server.js", | ||
server = server, | ||
# `yargs` is needed as runtime dependency for the e2e utils. | ||
deps = ["@npm//yargs"] + deps, | ||
**kwargs | ||
) |
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,29 @@ | ||
/** | ||
* @license | ||
* Copyright Google Inc. All Rights Reserved. | ||
* | ||
* Use of this source code is governed by an MIT-style license that can be | ||
* found in the LICENSE file at https://angular.io/license | ||
*/ | ||
|
||
import {$, By, element} from 'protractor'; | ||
|
||
import {openBrowser, verifyNoBrowserErrors} from '../../../e2e_util/e2e_util'; | ||
|
||
describe('largeform benchmark', () => { | ||
|
||
afterEach(verifyNoBrowserErrors); | ||
|
||
it('should work for ng2', () => { | ||
openBrowser({ | ||
url: '/', | ||
params: [{name: 'copies', value: 1}], | ||
ignoreBrowserSynchronization: true, | ||
}); | ||
$('#createDom').click(); | ||
expect(element.all(By.css('input[name=value0]')).get(0).getAttribute('value')) | ||
.toBe('someValue0'); | ||
$('#destroyDom').click(); | ||
expect(element.all(By.css('input[name=value0]')).count()).toBe(0); | ||
}); | ||
}); |
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
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,29 @@ | ||
/** | ||
* @license | ||
* Copyright Google Inc. All Rights Reserved. | ||
* | ||
* Use of this source code is governed by an MIT-style license that can be | ||
* found in the LICENSE file at https://angular.io/license | ||
*/ | ||
|
||
import {$} from 'protractor'; | ||
|
||
import {openBrowser, verifyNoBrowserErrors} from '../../../e2e_util/e2e_util'; | ||
|
||
describe('largetable benchmark', () => { | ||
afterEach(verifyNoBrowserErrors); | ||
|
||
it(`should render the table`, () => { | ||
openBrowser({ | ||
url: '', | ||
ignoreBrowserSynchronization: true, | ||
params: [{name: 'cols', value: 5}, {name: 'rows', value: 5}], | ||
}); | ||
$('#createDom').click(); | ||
expect($('#root').getText()).toContain('0/0'); | ||
$('#createDom').click(); | ||
expect($('#root').getText()).toContain('A/A'); | ||
$('#destroyDom').click(); | ||
expect($('#root').getText() as any).toEqual(''); | ||
}); | ||
}); |
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.