Commit Graph
6 Commits
Author SHA1 Message Date
Kris Austin 01adacf334 Post 14-day notices on long-inactive PRs (#17886)
stale.yml now starts with a step that posts a notice on PRs that have
been inactive for a long time and adds the labels the stale step needs
to close them 14 days later. It covers PRs waiting on their author for
90 days, PRs with conflicts for 90 days, PRs nobody on the team has
answered for 180 days, and drafts with no activity for 180 days.

The day counts and the nightly notice limit are set once in the job's
environment and used by both steps. A manual run can preview, post or
skip the notices. The notice step logs the REST and GraphQL rate limits
when it finishes.

Drafts are no longer exempt in stale.yml, because the notice step
removes "wait for response" from drafts that have no open notice. The
stale PR messages and CONTRIBUTING describe the new rules.
2026-11-25 09:10:02 -06:00
Kris Austin 5c561b17df Add contributor rules for untested PRs, rewrites and ports (#17813)
* Add contributor rules for untested PRs, rewrites and ports

* List missing explanations and mixed changes as reasons we don't review a PR
2026-11-22 19:00:18 -06:00
HanifKoh f8a2e3d896 Build Windows x64 With cl.exe on the build-windows-msvc Label (#17205)
* Build Windows x64 With cl.exe on the build-windows-msvc Label

CI compiles Windows with clang-cl, so an error only cl.exe reports, such as a
class template's virtual members instantiated with the class where clang
defers, reaches main unseen. The build-windows-msvc label gives a pull
request a cl build of x64 that only compiles: build_orca.yml's Windows
packaging, uploads and deploys belong to the clang build, the one that
ships, and the compiler cache is left out, as the Visual Studio generator
takes no launcher. No push build saves a cl deps cache, so a pull request's
first such build builds the deps too.

* Upload the cl.exe Build's Portable Build, Installer and PDB

Under _msvc names, through the arch suffix build_orca.yml already puts in the
artifact names, so a tester can tell them from the clang build's. The clang
build stays the one tested, checked for throw info, packaged for the Store
and deployed.

* Leave the MSVC Build Out of build-all

build-all stands for the three builds every pull request once got. The MSVC
build is another compiler's, never one a pull request got, and the first one
builds the deps too, so a pull request asking for an Intel Mac DMG with
build-all should not wait on it. pick takes a fourth argument that says
whether build-all covers the build; the three existing lines leave it at the
default.
2026-11-12 14:29:26 +08:00
HanifKoh 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 998e31a99b.

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.
2026-11-12 14:29:26 +08:00
Kris Austin 292deeca06 Ask contributors not to open many PRs at once (#16816) 2026-10-23 14:22:12 -05:00
Kris Austin f423c49f41 Add CONTRIBUTING.md (#16785)
* Add CONTRIBUTING.md

Add a short contributor guide. It covers what every PR description
should answer, what reviewers need for each kind of PR and which label
it gets, rules that are easy to miss, using AI tools, what to do after
opening a PR, and when a PR may be closed. The details for each kind of
PR are on the wiki's How to Contribute page.

AGENTS.md now tells agents to read CONTRIBUTING.md before they open a
PR or post on GitHub. Agents load AGENTS.md automatically but not
CONTRIBUTING.md.

* Link the wiki's How to Contribute page for new contributors

The label bot's comment greets first-time contributors and links the
How to Contribute page. Other authors get the same comment as before,
now with the missing period after the label commands.

CONTRIBUTING.md links the wiki's Opening an Issue section, since
GitHub shows CONTRIBUTING.md on the new issue page too.
2026-10-23 14:04:25 -05:00