-
Notifications
You must be signed in to change notification settings - Fork 687
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
[ci] move trusty app tests to nightly job and use circle ci branch filtering logic #4158
Conversation
Beginning with 0.12.0, news organizations will be migrating to Xenial, and all new installs will be on Xenial. Thus, we should move the Trusty app test job to a nightly job, and monitor it for failures until Trusty is deprecated in the following months. This also reduces total CI time per PR, as the trusty job took 20+ minutes.
08ba0be
to
575ae19
Compare
Codecov Report
@@ Coverage Diff @@
## develop #4158 +/- ##
===========================================
- Coverage 84.79% 84.72% -0.08%
===========================================
Files 43 43
Lines 2782 2782
Branches 303 303
===========================================
- Hits 2359 2357 -2
- Misses 355 356 +1
- Partials 68 69 +1
Continue to review full report at Codecov.
|
.circleci/config.yml
Outdated
filters: | ||
branches: | ||
ignore: | ||
- /docs-.*/ | ||
- static-analysis-and-no-known-cves | ||
- staging-test-with-rebase: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we also run Xenial infra tests on each PR instead of the default (Trusty) tests?
Once this is approved, I'll remove the requirement for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @redshiftzero these changes look good to me. I propose we merge these changes after 0.12.0 release to avoid any side-effects/issues during the QA/release process.
@@ -16,11 +16,6 @@ set -o pipefail | |||
# Assume we're running against Trusty; Xenial also supported. | |||
target_platform="${1:-trusty}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we open a follow-up task to completely eliminate trusty references at some point in the future, and/or replace the defaults with xenial?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so I have task #4155 filed for this which this PR does not close (wanted to get this PR in first so that we can not trigger quite so many builds since we're getting a lot of queueing in circleCI)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM !
Status
Ready for review
Description of Changes
This PR makes two improvements to reduce total CI time:
docs-
branches, currently used for the staging job only. The app-tests were also being run fordocs-
branches, so we can use the same CircleCI branch filtering logic to easily exclude the staging/application test jobs run fordocs-
branches. Indeed, previously jobs would be kicked off and then would rapidly pass, but with the CircleCI branch filtering, jobs won't even get kicked off, so this should reduce build pileups. This should also close Docs-only PRs from forks still run staging env in CI #3699.Note: We'll need to disable the trusty app test job as a required build to merge, holding off on that until we agree
Testing
Verify that the test build here (branch
docs-ci-reduce-jobs
) only ran two jobs:Deployment
CI only
Checklist
CI only