mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-12-04 00:20:50 +00:00
ci(build): state the Windows relinker retry count
The Windows relinker keeps its three attempts, so a test can fail twice and still pass; the documented single retry and the flaky warning text only held for the other jobs.
This commit is contained in:
1 parent
34c4f3550c
commit
0089ba3496
2 files changed
+3
-3
No files matched your search
@@ -363,7 +363,7 @@ jobs:
|
||||
[ -f ctest.log ] || exit 0
|
||||
awk '/Test +#[0-9]+: / && $NF == "sec" { for (i = 1; i <= NF; i++) if ($i ~ /^#[0-9]+:$/) name = $(i + 1); t = $(NF - 1) + 0; if (t > max[name]) max[name] = t }
|
||||
END { for (name in max) if (max[name] > 30) printf "::warning title=Slow test::%s took %.1f s on %s; tests must finish in 30 s (CONTRIBUTING.md)\n", name, max[name], ENVIRON["RUNNER_OS"] }' ctest.log
|
||||
awk '/Test +#[0-9]+: / { line = $0; sub(/^.*Test +#[0-9]+: /, "", line); if (line ~ /\*\*\*(Failed|Timeout|Exception)/) { sub(/[ .]+\*\*\*.*$/, "", line); failed[line] = 1 } else if (line ~ /[ .]+Passed/) { sub(/[ .]+Passed.*$/, "", line); if (failed[line] && !reported[line]) { reported[line] = 1; printf "::warning title=Flaky test::%s failed once and passed on the retry on %s; a test that needs a retry is still flaky (CONTRIBUTING.md)\n", line, ENVIRON["RUNNER_OS"] } } }' ctest.log
|
||||
awk '/Test +#[0-9]+: / { line = $0; sub(/^.*Test +#[0-9]+: /, "", line); if (line ~ /\*\*\*(Failed|Timeout|Exception)/) { sub(/[ .]+\*\*\*.*$/, "", line); failed[line] = 1 } else if (line ~ /[ .]+Passed/) { sub(/[ .]+Passed.*$/, "", line); if (failed[line] && !reported[line]) { reported[line] = 1; printf "::warning title=Flaky test::%s failed and then passed on a retry on %s; a test that needs a retry is still flaky (CONTRIBUTING.md)\n", line, ENVIRON["RUNNER_OS"] } } }' ctest.log
|
||||
|
||||
relinker-asan:
|
||||
needs: eligibility
|
||||
@@ -1000,7 +1000,7 @@ jobs:
|
||||
[ -f ctest.log ] || exit 0
|
||||
awk '/Test +#[0-9]+: / && $NF == "sec" { for (i = 1; i <= NF; i++) if ($i ~ /^#[0-9]+:$/) name = $(i + 1); t = $(NF - 1) + 0; if (t > max[name]) max[name] = t }
|
||||
END { for (name in max) if (max[name] > 30) printf "::warning title=Slow test::%s took %.1f s on %s; tests must finish in 30 s (CONTRIBUTING.md)\n", name, max[name], ENVIRON["RUNNER_OS"] }' ctest.log
|
||||
awk '/Test +#[0-9]+: / { line = $0; sub(/^.*Test +#[0-9]+: /, "", line); if (line ~ /\*\*\*(Failed|Timeout|Exception)/) { sub(/[ .]+\*\*\*.*$/, "", line); failed[line] = 1 } else if (line ~ /[ .]+Passed/) { sub(/[ .]+Passed.*$/, "", line); if (failed[line] && !reported[line]) { reported[line] = 1; printf "::warning title=Flaky test::%s failed once and passed on the retry on %s; a test that needs a retry is still flaky (CONTRIBUTING.md)\n", line, ENVIRON["RUNNER_OS"] } } }' ctest.log
|
||||
awk '/Test +#[0-9]+: / { line = $0; sub(/^.*Test +#[0-9]+: /, "", line); if (line ~ /\*\*\*(Failed|Timeout|Exception)/) { sub(/[ .]+\*\*\*.*$/, "", line); failed[line] = 1 } else if (line ~ /[ .]+Passed/) { sub(/[ .]+Passed.*$/, "", line); if (failed[line] && !reported[line]) { reported[line] = 1; printf "::warning title=Flaky test::%s failed and then passed on a retry on %s; a test that needs a retry is still flaky (CONTRIBUTING.md)\n", line, ENVIRON["RUNNER_OS"] } } }' ctest.log
|
||||
|
||||
pipe-write:
|
||||
needs: eligibility
|
||||
|
||||
+1
-1
@@ -73,7 +73,7 @@ The [pull request template](.github/pull_request_template.md) is the checklist f
|
||||
- An AGC test executable and its tests are registered in `core/libs/prx/libSceAgcDriver/tests/cmake/<executable>.cmake`; the tests of an execution test in `tests/execution/` go in the fragment of its `agc_driver_<name>_tests` executable. `CMakeLists.txt` includes the fragments in sorted order, and only when `BUILD_TESTING` is on, so a fragment uses nothing another fragment defines and needs no `BUILD_TESTING` guard of its own. A pull request whose change to `libSceAgcDriver/CMakeLists.txt` conflicts after the split rebases and runs `python3 tools/agc_test_split.py resolve` during the stopped rebase, which moves its registrations to their fragments and leaves conflict markers where `main` changed the same lines.
|
||||
- A new libc or libkernel test executable and its tests are registered in `core/libs/prx/libc/tests/cmake/<executable>.cmake` or `core/libs/prx/libkernel/tests/cmake/<executable>.cmake`. That library's `CMakeLists.txt` includes the fragments in sorted order after its own registrations, so a fragment can use what `CMakeLists.txt` defines but nothing another fragment defines. Tests already registered in `CMakeLists.txt` stay there.
|
||||
- A pull request that conflicts with `main` and has no activity for 7 days is labeled `stale` with a reminder. It is not closed.
|
||||
- An hourly job gives the `review queue` label to the oldest 30 pull requests that need no more work from their author, `unblocks title` ones first, and lists them in the review queue issue. A pull request needs more work while it is a draft, conflicts with `main`, has a `perf numbers missing` or `open PR limit` label, has a failing or unfinished check other than Intake, Labels, Eligibility, the conflict label job (`pr`) and the progress report, or has a change request whose reviewer was not asked again; pushing alone does not answer a change request. A test that fails in the relinker or the Windows changed-test job is retried once: a test that then passes leaves a `Flaky test` warning and does not fail its check, so the flake stays visible without blocking the pull request. The relinker-asan job keeps a single attempt, because a sanitizer failure that passed on a retry would hide a memory-safety finding. `python3 tools/pr_ready.py --explain <number>` prints what blocks a pull request, and `--author <login>` prints it for each open pull request of one author.
|
||||
- An hourly job gives the `review queue` label to the oldest 30 pull requests that need no more work from their author, `unblocks title` ones first, and lists them in the review queue issue. A pull request needs more work while it is a draft, conflicts with `main`, has a `perf numbers missing` or `open PR limit` label, has a failing or unfinished check other than Intake, Labels, Eligibility, the conflict label job (`pr`) and the progress report, or has a change request whose reviewer was not asked again; pushing alone does not answer a change request. A test that fails in the relinker or the Windows changed-test job is retried once, except the Windows relinker, which keeps its three attempts and so retries twice: a test that then passes leaves a `Flaky test` warning and does not fail its check, so the flake stays visible without blocking the pull request. The relinker-asan job keeps a single attempt, because a sanitizer failure that passed on a retry would hide a memory-safety finding. `python3 tools/pr_ready.py --explain <number>` prints what blocks a pull request, and `--author <login>` prints it for each open pull request of one author.
|
||||
- A pull request whose merge would not change `main` is labeled `already in main` with one comment, checked hourly: GitHub's test merge has the same files as its `main` commit, and no file the pull request touches has changed in `main` since. It is not closed. Close it if it is superseded, or push what is missing.
|
||||
- If a pull request needs another one first, say so on the checklist line (`Depends on: #N`; `none` otherwise).
|
||||
- If a pull request fixes a reported issue, write `Fixes #N` on its checklist line (`none` otherwise). GitHub closes the issue on merge, and the `fix error` label is added within the hour.
|
||||
|
||||
Reference in new issue
Block a user