-
-
Notifications
You must be signed in to change notification settings - Fork 185
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: skip tests if unaffected TASK-1316 #5295
Conversation
de99c3f
to
d3b9d92
Compare
6f64040
to
d84067d
Compare
d84067d
to
7580008
Compare
Looks like the checks at the bottom of the PR follows the order defined in ci.yml. Place npm-test after the python jobs since the npm-test is a 4-entry matrix right now and buries the others below the scroll fold Place pytest on top. it's usually there while you're waiting since it takes the longest, so this time it doesn't have to move. Make both files use the same order. Give "detect changed files" a name to make it easier to find when you're inspecting results
this code solves a rare problem and could go in a separate PR after discussion the "unknown files" detection would support this scenario: - a new config file or folder gets merged in without being included in filters.yml. - time passes. - a small pr modifies that config, breaking the ci job, which is skipped because filters.yml is out of date.
33ad903
to
df60d52
Compare
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.
darker: | ||
- '{kpi,kobo,hub}/**/*.py' # .py | ||
- 'pyproject.toml' # rules | ||
- '.github/workflows/darker.yml' # ci | ||
|
||
pytest: | ||
- '{kpi,kobo,hub}/**/*.!(md)' # backend | ||
- 'dependencies/**/*.!(md)' # pip | ||
- 'pyproject.toml' # (can affect build/tests) | ||
- '.github/workflows/pytest.yml' # ci |
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.
backend-related paths that will trigger darker/pytest
cc @noliveleger
npm-test: | ||
- '{jsapp,test,webpack,static,scripts}/**/*.!(md|py|sh|bash)' # frontend | ||
- '{package*.json,patches/*.patch,scripts/copy_fonts.py}' # npm + postinstall | ||
- '{tsconfig.json,.swcrc,.babelrc*,.browserslistrc}' # compilers | ||
- '{.editorconfig,.prettier*,.stylelint*,.eslint*,coffeelint*}' # linters | ||
- '.gitignore' # (can affect tools) | ||
- '.github/workflows/npm-test.yml' # ci |
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.
frontend-related paths that will trigger npm-test
👀 Preview steps
💭 Notes
darker.yml
,npm-test.yml
, andpytest.yml
workflow files, so all the jobs are run:)