Our nightly says -b chromium -b firefox -b webkit. I noticed --project-matrix in the flag list and it looks like it does the same thing. Is one of them preferred, and what happens if I pass both?
--project-matrix or three -b flags? What is the difference in practice?
Example threads. These questions and answers were written by the SDODS team to document real problems and how to fix them. The people named are illustrative, not real users. Questions asked on this site are marked new.
3 answers
Accepted answer
--project-matrixmeans "every browser declared in the project YAML". Your three-bflags mean "these three, whatever the project says".Prefer the matrix flag for a nightly: when someone adds a browser to the project, the nightly picks it up without an edit to your CI file. Prefer explicit
-bwhere the point is that this job runs one specific engine — a pull request check on chromium, say.Note that
-bis checked against the project's allow-list either way:textBrowser "webkit" is not enabled for project demo-shop (browsers: chromium, firefox).Exit 2, before anything runs.
answered by Sunita KaleIf you pass both,
--project-matrixwins — it is read first and the-bvalues are ignored. Not an error, which is arguably too quiet, so do not write both and expect an intersection.The full precedence for browsers is:
--project-matrix, then explicit-b, then the browsers of a--process, then the project default.answered by Reeta NandalSDODS teamFrom the release side: put the browser list in the process rather than in either flag.
release-gatenames its browsers in YAML, so the gate cannot drift because someone edited a workflow, and the list is reviewable in the same place as the pass-rate gate.answered by Rasha Halabi
Know the answer?
Wrap commands and output in triple backticks and they will render as a code block.
Checking whether you’re signed in…
Have a different question? Ask it.
Related
- Installing onto a machine with no outbound internet at all0 answers
- Linting only the staged feature files in a pre-commit hook — is --json stable enough?0 answers
- har record printed no scrub line and the Cookie header is still sitting in the file0 answers
- Can --explain show the values a layer lost with, not just the winner?0 answers
- Six locales times dark and light means twelve env files — is there a per-scenario way?0 answers