Repository navigation
ci: Add extra flags for Engine & CLI tests - #7416
Conversation
|
I'm not sure we should set failfast by default - this is very helpful when making large refactorings, and trying to observe all the genuine failures. It's annoying in the case of flakes, or going for a fully green run, but getting all the failures is genuinely useful a lot of the time in my experience. |
There was a problem hiding this comment.
We should use // +default for this one.
There was a problem hiding this comment.
If we did this, we would have the default in 3 places:
All()Important()Custom()
Since the race flag uses the same approach - default in code rather than // +default - I think that we should leave this as is. WDYT?
There was a problem hiding this comment.
Hm, alternatively, we should refactor all of these into one function - then which tests to run should probably be flags on in.
Not a blocker though, happy as is.
Makes sense. Changing the default to |
`--parallel` now defaults to the number of CPUs. Before, this was hard-coded to `16` which was set the number of CPUs in the larger GitHub Runners, the `ubuntu-22.04-16c-64g-600gb` instance size specifically. If this new default value does not work well on the larger CI runners (they have 48CPUs & we run multiple pipelines on them at the same time), we can specify this value explicitly in the workflows. `--timeout` defaults to `30m`. This was changed not that long ago - the value was set to 1h when using race. The bottom line is that none of our test suites should take more than 10 minutes. This is something that we are actively working towards. For now, until the pipeline becomes more reliable, we will stick with the current 30m default. When running locally with fewer CPUs, or when hunting deadlocks, experience recommends a value of 180m. `--failfast` is a new one. It sets `--max-fails=1` in `gotestsum`. FTR: https://github.com/gotestyourself/gotestsum/blob/e9677fb405a5c0dc0b9d7217a7c73c3a20c5cb66/cmd/testdata/gotestsum-help-text#L20 Signed-off-by: Gerhard Lazu <[email protected]>
If it defaults to 64 CPUs, as it did here, it's more likely to fail: https://dagger.cloud/dagger/traces/8a089c6b4c74959d5a3aef1d8aeded74#b2d066943ad6dbc4:L1051 Signed-off-by: Gerhard Lazu <[email protected]>
There was a problem hiding this comment.
Hm, alternatively, we should refactor all of these into one function - then which tests to run should probably be flags on in.
Not a blocker though, happy as is.
| secrets: inherit | ||
| with: | ||
| function: test all --race=true | ||
| function: test all --race=true --parallel=16 |
There was a problem hiding this comment.
Is this different from NumCPUs? I think we can leave this unset.
There was a problem hiding this comment.
Yes, we are explicitly setting this to 16 in CI.
The new CI runners usually have 48 and even 64 CPUs which makes tests fail. Before setting this, checks failed.


--parallelnow defaults to the number of CPUs. Before, this was hard-coded to16which was set the number of CPUs in the larger GitHub Runners, theubuntu-22.04-16c-64g-600gbinstance size specifically. We still want16in CI - we set this explicitly in the GitHub workflows - but are likely to want less locally where some of us only have8or10CPUs.--timeoutdefaults to30m. This was changed not that long ago - the value was set to1hwhen usingrace. The bottom line is that none of our test suites should take more than 10 minutes. This is something that we are actively working towards. For now, until the pipeline becomes more reliable, we will stick with the current30mdefault. When running locally with fewer CPUs, or when hunting deadlocks, experience recommends a value of 180m.--failfastis a new one. It sets--max-fails=1ingotestsum. FTR:https://github.com/gotestyourself/gotestsum/blob/e9677fb405a5c0dc0b9d7217a7c73c3a20c5cb66/cmd/testdata/gotestsum-help-text#L20
Part of:
dagger call --source=.:default test all#7387 (comment)FWIW, I am using the following shell function with this change: