Skip to content

build: do not consider e2e test targets as flaky locally #20371

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 28, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,10 @@ jobs:
- *yarn_install
- *setup_bazel_binary

- run: bazel test src/... --build_tag_filters=e2e --test_tag_filters=e2e --build_tests_only
# Run e2e tests. Note that protractor test targets are flaky sometimes, so we run them
# with flaky test attempts. This means that Bazel will re-run a failed e2e test target
# a second time to ensure it's a real test failure. This improves CI stability.
- run: yarn e2e --flaky_test_attempts=2
- *slack_notify_on_failure

# ------------------------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"test-local": "yarn -s test --local",
"test-firefox": "yarn -s test --firefox",
"lint": "yarn -s tslint && yarn -s stylelint && yarn -s ownerslint && yarn -s ng-dev format changed --check",
"e2e": "bazel test //src/... --test_tag_filters=e2e",
"e2e": "bazel test //src/... --build_tag_filters=e2e --test_tag_filters=e2e --build_tests_only",
"deploy-dev-app": "node ./scripts/deploy-dev-app.js",
"breaking-changes": "ts-node --project scripts/tsconfig.json scripts/breaking-changes.ts",
"gulp": "gulp",
Expand Down
6 changes: 1 addition & 5 deletions tools/defaults.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -198,12 +198,8 @@ def karma_web_test_suite(name, **kwargs):
**kwargs
)

# Protractor web test targets are flaky by default as the browser can sometimes
# crash (e.g. due to too much concurrency). Passing the "flaky" flag ensures that
# Bazel detects flaky tests and re-runs these a second time in case of a flake.
def protractor_web_test_suite(flaky = True, **kwargs):
def protractor_web_test_suite(**kwargs):
_protractor_web_test_suite(
flaky = flaky,
browsers = ["@npm_angular_dev_infra_private//browsers/chromium:chromium"],
**kwargs
)
Expand Down