Commit a7e9711
fix(ci): a PR cannot trigger a full workspace run any more (#394)
Every reason to distrust the diff used to escalate to the whole workspace.
On a PR that is the wrong trade twice over: it buries the change under ~22
shards of unrelated work, and it puts the PR's own legs behind an hour of
queue, so the thing under review is the last thing to report.
Touching this file was enough to trigger it, which is the case that keeps
biting: a one-line CI edit cannot be reviewed against a fast signal.
Measured three times today -- #390, #391 and #392 each ran a full matrix to
validate a change whose blast radius was one job.
`full` now answers only where "check everything" IS the request: the weekly
cron and a manual `workflow_dispatch`. On a PR or a push, the same reasons
call `widen` instead, which records them, prints them, and writes them to
the run summary so a reviewer sees WITHOUT opening a job that this run
deliberately tested less -- and that the sweep is one manual dispatch away.
Degraded, with their reasons kept:
.github/workflows/validate.yml, tests/*.sh
mcpp.toml non-member change
unclassified path
push with no predecessor / predecessor not in history
NOT weakened: descriptor and member changes select their members exactly as
before. The only thing that changed is what happens when the diff cannot be
classified.
One consequence handled. `widen` does not exit, so the push-with-no-
predecessor path has to leave a usable range behind. `HEAD` alone would diff
root-to-HEAD, name every file and select every member -- a full run by
another name, which is what this change exists to stop. It leaves the range
EMPTY instead: nothing selected, the reason already said, the summary
carrying it to a human. Rare either way, since merges here are squashes and
`event.before` is present on every normal push.
The weekly Sunday 06:00 sweep is deliberately kept. It is the only thing
that would have caught the windows vulkan regression before a user did --
main's leg was pinned to `windows-2022` in #385 and the vulkan members were
never re-tested there until a full run happened to fire today. Removing the
automatic full run on PRs and keeping the periodic net is the same shape
openxlings/xim-pkgindex#815 just added on the other side.
Verified: the rendered fragment on `pull_request` with a validate.yml edit
plus an unclassified path selects only the member its descriptor change
names, and the same input under `workflow_dispatch` still goes full.
Co-authored-by: sunrisepeak <x.d2learn.org@gmail.com>1 parent e5bc33a commit a7e9711
1 file changed
Lines changed: 75 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
496 | 496 | | |
497 | 497 | | |
498 | 498 | | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
499 | 518 | | |
500 | 519 | | |
501 | 520 | | |
502 | 521 | | |
503 | 522 | | |
504 | 523 | | |
505 | 524 | | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
506 | 536 | | |
507 | 537 | | |
508 | 538 | | |
| |||
528 | 558 | | |
529 | 559 | | |
530 | 560 | | |
531 | | - | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
532 | 572 | | |
533 | 573 | | |
534 | | - | |
| 574 | + | |
535 | 575 | | |
536 | | - | |
537 | | - | |
538 | | - | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
539 | 581 | | |
540 | 582 | | |
541 | 583 | | |
542 | | - | |
543 | | - | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
544 | 590 | | |
545 | 591 | | |
546 | 592 | | |
547 | 593 | | |
548 | 594 | | |
549 | | - | |
| 595 | + | |
550 | 596 | | |
551 | 597 | | |
552 | 598 | | |
553 | 599 | | |
554 | 600 | | |
555 | 601 | | |
556 | 602 | | |
557 | | - | |
| 603 | + | |
558 | 604 | | |
559 | 605 | | |
560 | 606 | | |
| |||
595 | 641 | | |
596 | 642 | | |
597 | 643 | | |
598 | | - | |
| 644 | + | |
599 | 645 | | |
600 | 646 | | |
601 | 647 | | |
| |||
606 | 652 | | |
607 | 653 | | |
608 | 654 | | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
609 | 674 | | |
610 | 675 | | |
611 | 676 | | |
| |||
0 commit comments