mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-12-04 10:48:00 -05:00
f779174c7b4fc9049786835b54f2fadd71ba40bf
3
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
a4de8cb891 |
Build the Flatpak, macOS x86_64 and Windows arm64 for Pull Requests on Request (#17202)
* Move the Flatpak Jobs Into a Reusable Workflow build_flatpak.yml holds the Flatpak build and its two sandbox unit-test jobs, moved verbatim, so a second workflow can call them. Build all calls it for every event it built the Flatpak for before. * Build the Flatpak, macOS x86_64 and Windows arm64 for Pull Requests on Request Build all no longer builds them for a pull request: the Flatpak is the slowest Linux leg, a macOS x86_64 build holds one of the few hosted macOS runners for an hour, and Windows arm64 doubles the Windows legs. Pushes, the nightly and dispatches still build everything, and a pull request's macOS arm64 build ships as its own DMG in place of the universal one. The new build_optional.yml builds them on a label (build-flatpak, build-macos-x86_64, build-windows-arm64), from when it is added and on every later push, and builds the Flatpak and Windows arm64 without a label when the pull request changes anything outside the sources, tests, profiles, translations and docs, which is where what breaks only those legs lives. Each build keeps its own concurrency group, which cancel_closed_pr_builds.yml joins. The macOS admission script now counts the macOS jobs of both workflows, and build_check_cache.yml names the workflows in its env instead of deriving one from the caller. The label bot lets a contributor ask for the Flatpak. * Run the Windows Build Script Tests Only When a Pull Request Changes Them The three suites build their own fixtures and read nothing else from the tree, so on a pull request a short Linux job looks for a change to the scripts or the suites first, and the Windows builds accept the skipped job. Pushes and the nightly still run them every time. * Read WORKFLOW Through a Checked Expansion Shellcheck's SC2153 takes a bare uppercase reference next to the lowercase variable for a misspelling. * Let the Pull Request Author Ask for Any Optional Build Through the Bot GitHub starts no workflow from an event the job's own token causes, so the label bot mints a GitHub App installation token when the app's secrets exist and adds the build-* labels with it; without them the build starts with the next push. The run a label starts is an ordinary pull_request run, so a first pull request's waits for a maintainer's approval as Build all does. * Build Everything the Labels Ask for in Every Optional Builds Run Each label added starts a run of its own, and the pull request's checks show the newest run only, so a run that built its own label's leg alone left the others looking skipped. Every run now builds everything the labels and the changed files ask for; the concurrency group of each build cancels the one an earlier run of the commit started, so the newest run ends with them all. * Filter Optional Builds Like Build All and Add a build-all Label The workflow takes Build all's pull_request paths plus the Flatpak packaging, so a pull request Build all skips, one that only changes an unrelated workflow or script, gets no optional build and starts none on a label. The build-all label asks for every optional build at once. * Keep the Flatpak on Every Pull Request flatpak-builder compiles with the GNOME SDK's default flags, which include -D_GLIBCXX_ASSERTIONS, so the Flatpak's unit tests are the only pull request check that aborts on an out-of-range vector access where the other legs' Release builds read garbage and pass. Since August that caught four bugs that changed only src/, tests/ or resources/, which the infra rule would not have built, and the leg runs on hosted Linux runners, so gating it freed no macOS runner. Build all calls build_flatpak.yml on pull requests again; the optional builds are the macOS x86_64 and Windows arm64 ones, and build-all means those two. * Revert "Keep the Flatpak on Every Pull Request" This reverts commit 998e31a99b668a288f50d54c296df39a737178d9. The Flatpak stays behind the build-flatpak label and the infra rule, as the maintainers prefer. * Build the Linux Legs With libstdc++'s Assertions flatpak-builder compiles with the GNOME SDK's default flags, which include -D_GLIBCXX_ASSERTIONS, so the Flatpak's unit tests were the only pull request check that aborts on an out-of-range vector access where the other legs' Release builds read garbage and pass. Pull requests build the Flatpak on request only now. SLIC3R_GLIBCXX_ASSERTIONS defines the macro for the OrcaSlicer build, and the Linux legs turn it on, so every pull request keeps those checks on a leg that always runs. The checks are libstdc++'s lightweight subset: no class changes layout, so the prebuilt deps link as they are. |
||
|
|
4f2d2ae11a |
Wait for the PR's Deps Cache in clang-tidy When deps/ Changes (#16374)
* Wait for the PR's Deps Cache in clang-tidy When deps/ Changes * Fail the clang-tidy Deps Wait When Listing Caches Keeps Failing * Wait for Deps Through ci_deps_cache.sh in clang-tidy Reuse the macOS deps wait for Linux: the job names, workflow and cache ref are passed in, and a new 'own' mode waits for the PR's own build when it changes deps/. A PR that keeps deps/ now waits for a running base build with the same deps, and warns when it falls back to older ones. The wait ends as soon as the deps job fails. |
||
|
|
95d3e8eafc |
Queue Pull Request macOS Builds for a Free Runner (#16343)
* ci: wait for the base branch's macOS deps instead of rebuilding them * Hold Pull Request macOS Builds Until a Runner Is Free A pull request's macOS build now waits in one repo-wide line, from a Linux job, until the macOS runners every active Build all run holds or still needs leave two free. A run is let in whole: its first arch takes both runners and its second goes straight through, since letting arches in one at a time deadlocks with every runner held by a run waiting for its other arch. Push, nightly and manual runs reserve two runners until their macOS work is done, and a pull request run keeps its two until its universal build and tests finish, so jobs that never pass the line are accounted for. Queued jobs count as busy. API errors and a four-hour limit let the build in rather than block it. Co-authored-by: raistlin7447 <kris.austin@gmail.com> * Count Pending Runs That Hold macOS Runners Co-authored-by: raistlin7447 <kris.austin@gmail.com> * Show the macOS Admission Checks Live in the Job Log Co-authored-by: raistlin7447 <kris.austin@gmail.com> * Let a Labelled Pull Request Go Ahead of the macOS Line A pull request labelled macos-priority when its run starts waits in its own line under the same rule, and the normal line counts every priority run still waiting as holding two runners, so the next free runners go to it. It still waits for runners in use and for main's reserve. Co-authored-by: raistlin7447 <kris.austin@gmail.com> * Let Each macOS Arch In on Its Own Without Holding an Idle Runner Letting a pull request run in whole deadlocks when its second arch reaches the line behind another pull request: the run holds two runners, the pull request in front waits for them, and the second arch never gets to check. Each arch now waits on its own. A run with one arch let in holds a runner only until that arch's app build is done, and a run with both holds two until its universal build and tests finish, so whoever is first in line always gets in eventually. Co-authored-by: raistlin7447 <kris.austin@gmail.com> * Stop Holding Runners for a Pull Request's Universal Build and Tests Holding two runners from a pull request's second arch until its universal build and tests finished kept one idle through the slower arch's build. Replaying the week of 10-03 against the real queue, that idle capacity pushed the median pull request from under three hours to over sixteen. Those jobs take minutes, so they now queue like any other job, and a pull request holds a runner only for an arch that is still building. Each arch then always needs exactly one runner. Co-authored-by: raistlin7447 <kris.austin@gmail.com> * Count Runs That Move Between Status Lists A run is listed as pending while any of its jobs waits in a concurrency group, so it moves to in_progress the moment its last gate leaves the line. A check made in those seconds read the in_progress list before the move and the pending list after it, missed the run, and let in a second arch the limit had no room for. Runs created in the last day are now listed by creation time as well, and the run doing the check is read directly. Co-authored-by: raistlin7447 <kris.austin@gmail.com> * Log API Calls and the Rate Limit Left on Each macOS Admission Check The calls per check grow with the number of active runs, and the token's hourly limit is shared by the whole repository, so each check now logs how many calls it made and what the last response says is left. * Give the macOS Admission Jobs Fixed Names A skipped job is listed under its unevaluated name, so every Linux and Windows leg showed the label expression. Split the waiting job into a normal and a priority job with fixed names, sharing their steps through a YAML anchor. --------- Co-authored-by: raistlin7447 <kris.austin@gmail.com> |