-
-
Notifications
You must be signed in to change notification settings - Fork 778
Description
Description
In order to prevent misconfiguration on task steps that are supposed to run only when needed we use the task foo && task foo --status pattern on CI.
Still we recently discovered that some tasks are very often failing on MacOS runners.
We tried to debug but we were never able to identify what makes task believe something changed.
Usual git status --porcelain --ignored should help identify if some files that are part of src patterns did change but in our case it keeps reporting nothing related to these patterns.
Sadly there is no known option that could be used to improve the debugging of this issue as we would clearly need to log the list of files taskfile identifies as source before the first run and before the second run in order to identify the reason.
Version
3.46.4
Operating system
macos
Experiments Enabled
Gentle Force
Example Taskfile
# simplified section to highlight the problem as the full file is quite big
version: "3"
tasks:
ui:
vars:
TEST_PREFIX: "{{ coalesce .TEST_PREFIX .TASK }}"
sources:
- src/**/*.ts
- test/*.ts
- test/ui/**/*.{ts,js}
- webviews/**/*.vue
- exclude: test/testFixtures/.vscode/
- exclude: test/testFixtures/common/collections/
generates:
- out/junit/ui/{{.TEST_PREFIX}}-test-results.xml
cmds:
- true
interactive: true