Skip to content

CI: fix I386_LINUX CMake toolchain; AMD64_DARWIN 120 minutes; per-branch CI queue - #1275

Merged
hosking merged 3 commits into
masterfrom
ci-fixes
Nov 21, 2026
Merged

hosking merged 3 commits into
masterfrom
ci-fixes

Conversation

@hosking

@hosking hosking commented Nov 21, 2026 •

Copy link
Copy Markdown
Member

Update: the I386_LINUX toolchain change below does not fix that job. On this PR's own run it still fails in CMake 4.5's compiler check (CMAKE_C_COMPILER not set, after EnableLanguage, in try_compile). The cause isn't the compiler names. A follow-up PR will pin CMake for that job. The rest of this PR (per-branch queue, ARM64_DARWIN matrix, AMD64_DARWIN timeout) stands on its own.

Two CI fixes for failures that hit every branch, master included.

I386_LINUX (c, gcc). Every run has failed since the 20261116 update of the ubuntu-26.04 image. The last pass was 11-20 11:37, the first failure 12:08. The bootstrap configure step stops in CMake's compiler checks with:

CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: The detected version of Ninja () is less than the version of Ninja required by CMake (1.3).

The failing image uses CMake 4.5. The Ninja package is identical to the passing runs, and AMD64_LINUX still passes with Ninja on the same image, so the cross toolchain file looks like the culprit. It only added -m32 via CMAKE_C_COMPILER_ARG1. This change names the cross compilers the job already installs (i686-linux-gnu-gcc and i686-linux-gnu-g++) and passes -m32 through CMAKE_*_FLAGS_INIT. I couldn't reproduce the failure locally (CMake 4.4.5), so this PR's run is the test.

AMD64_DARWIN (c). The job has hit its 80-minute timeout-minutes in 10 of the last 11 integration runs on macos-15-intel. The one run that finished took 72 minutes. This raises the limit to 120.

Per-branch CI queue (added). integration.yml had concurrency: ci, one group for the whole repository. Each push therefore cancelled the pending run of every other branch and PR, and most PR runs never started (#1271, #1281 and this PR all had theirs cancelled today). Runs are now grouped by ref (ci-${{ github.ref }}), as msir.yml already does. A newer push cancels an in-progress run on the same branch, except on master, where every commit gets a full run.

AMD64_MINGW, for the record. Its recent failures are not CI configuration: the bootstrapped cm3.exe intermittently stops with <*ASSERT*> failed: suspend_cnt = 0 in ThreadWin32.m3 line 798, then a stack overflow (0xC00000FD). It passes on some runs of master and fails on others. It looks like a thread-suspension race in the Windows thread code (Victor posted the same assertion, from master's logs, in #1190; his own branch doesn't show it, so #1190 may be the fix), so it isn't addressed here.

🤖 Generated with Claude Code

I386_LINUX has failed since the ubuntu-26.04 image update (20261116,
CMake 4.5): the bootstrap configure stops with "CMAKE_C_COMPILER not
set, after EnableLanguage".  Name the i686-linux-gnu cross compilers
in the toolchain file and pass -m32 through *_FLAGS_INIT instead of
*_COMPILER_ARG1.

AMD64_DARWIN (macos-15-intel) has hit its 80-minute limit in 10 of the
last 11 runs; the one that finished took 72 minutes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
concurrency: ci put every branch and PR in one group, so each push
cancelled the pending run of every other branch; most PR runs never
started.  Group by ref instead, as msir.yml does, and let a newer push
cancel an in-progress run on the same branch except on master.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@hosking hosking changed the title CI: fix I386_LINUX CMake toolchain; give AMD64_DARWIN 120 minutes CI: fix I386_LINUX CMake toolchain; AMD64_DARWIN 120 minutes; per-branch CI queue Nov 21, 2026
@VictorMiasnikov

Copy link
Copy Markdown
Contributor

= =
{51FD05C5-F297-4E2F-AFBA-02A463B1FE07}

= =

Are you read logs?

llvm and gcc on ARM64_DARWIN -- is "С backend" in fact

@VictorMiasnikov

VictorMiasnikov commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

= =
AMD64_MINGW, for the record. Its recent failures are not CI configuration: the bootstrapped cm3.exe intermittently stops with <ASSERT> failed: suspend_cnt = 0 in ThreadWin32.m3 line 798, then a stack overflow (0xC00000FD). It passes on some runs of master and fails on others. It looks like a thread-suspension race in the Windows thread code (Victor reported the same assertion in #1190), so it isn't addressed here.
= =

"It looks like a thread-suspension race" -- yes. But race create another error (?) in source code.

P.S.

} Victor reported the same assertion in https://github.com/modula3/cm3/pull/1190

I simply copy-paste log from one of your and(or) main branche(s)

(My branch is maximum as possible fine)

Its gcc and llvm matrix entries built every package with
M3_BACKEND_MODE=C (concierge falls back where a back end is unsupported),
so they repeated the C job.  As AMD64_DARWIN already does, run C only.
Pointed out by Victor Miasnikov.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@hosking

hosking commented Nov 21, 2026

Copy link
Copy Markdown
Member Author

Yes, you're right, and thanks. On ARM64_DARWIN the gcc and llvm matrix entries build with M3_BACKEND_MODE=C (concierge falls back because neither backend is supported on Darwin), so they're copies of the C job. The gcc and llvm backends are only really tested on AMD64_LINUX (and gcc on I386_LINUX). I've added a commit here reducing ARM64_DARWIN's matrix to [c], like AMD64_DARWIN's, so the results don't mislead and we save macOS minutes.

@VictorMiasnikov

VictorMiasnikov commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Yes, you're right, and thanks. On ARM64_DARWIN the gcc and llvm matrix entries build with M3_BACKEND_MODE=C (concierge falls back because neither backend is supported on Darwin), so they're copies of the C job. The gcc and llvm backends are only really tested on AMD64_LINUX (and gcc on I386_LINUX). I've added a commit here reducing ARM64_DARWIN's matrix to [c], like AMD64_DARWIN's, so the results don't mislead and we save macOS minutes.

We should fix it in main branch

( I stopped testing "C backend" ( except Win and Darwin). It broken. It's well-known fact)

@hosking

hosking commented Nov 21, 2026

Copy link
Copy Markdown
Member Author

Thanks, I've corrected the description: the assertion you posted in #1190 came from master's logs, and your branch doesn't show it, so #1190 may well be the fix once it's rebased and CI can run on it. On the matrix: this PR targets master, so the change lands there when it merges. On the C backend: AMD64_LINUX's C job builds and passes m3tests on master. If you're seeing a specific failure, could you open an issue with the log?

@hosking
hosking merged commit fc33873 into master Nov 21, 2026
10 of 26 checks passed
@VictorMiasnikov

Copy link
Copy Markdown
Contributor

Thanks, I've corrected the description: the assertion you posted in #1190 came from master's logs,
and your branch doesn't show it,

No problem. Thank you

so #1190 may well be the fix once it's rebased and CI can run on it.
On the matrix: this PR targets master, so the change lands there when it merges.

I try do it.

But: master branch changed every 1 hours . . .

On the C backend: AMD64_LINUX's C job builds and passes m3tests on master.
If you're seeing a specific failure, could you open an issue with the log?

GUI is broken. I wrote issue a time ago.

@hosking

hosking commented Nov 21, 2026

Copy link
Copy Markdown
Member Author

Thanks, Victor. That's #1163 (FormsVBT text not rendering in the Cube and Calculator demos with the C backend on AMD64_LINUX). CI builds the GUI packages but never runs them, so it can't catch a rendering bug like that. We'll look into #1163 once the current round of merges is through. On rebasing #1190: with #1275 merged, CI runs per branch now, so a run on your PR won't be cancelled by other pushes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants