Skip to content

CI: don't hide installer build failures and exclude stale ENV specs - #487

Closed
fs-bmedkouri wants to merge 1 commit into
oneclick:masterfrom
fs-bmedkouri:ci-fix-env-spec-and-build-status
Closed

fs-bmedkouri wants to merge 1 commit into
oneclick:masterfrom
fs-bmedkouri:ci-fix-env-spec-and-build-status

Conversation

@fs-bmedkouri

Copy link
Copy Markdown
Contributor

Two CI fixes:

1. The "Build the installer" step can't fail. rake ... & gpgconf --kill all returns the exit code of gpgconf, so a failing rake ri:... is reported as success and only shows up in the next step (e.g. the current head failure surfaces in "Build the RubyInstaller-Devkit installer"). The step now keeps rake's exit code and still kills gpg-agent.

2. Stale ENV specs on 4.0.7 and 3.4.11. "Run the MRI copy of Ruby Spec Suite" fails on all 4.0.7 and 3.4.11 jobs since those versions were added (run):

ENV.each_key returns keys in the locale encoding FAILED
Expected #<Encoding:UTF-8> == #<Encoding:IBM437>
ENV.keys returns the keys in the locale encoding FAILED

Both releases backport Bug #20958 (ENV keys in UTF-8 on Windows; ruby/ruby@137e40a, ruby/ruby@d784a0b), but the specs bundled in these tags weren't updated. ruby/spec already adjusted the guard (ruby/spec@af6351a). The two examples are excluded until the release branches pick that up. mspec's --exclude is a substring match, so the new "UTF-8" examples on head still run.

Verification: I checked the exit-code handling locally with the same cmd /D /E:ON /V:OFF /S /C "CALL ..." wrapper Actions uses, against a .bat that exits 7: the gpgconf line ran and the step exited 7. The full matrix was not run; this PR's CI is the end-to-end check.

…specs

"rake ... & gpgconf --kill all" returned the exit code of gpgconf, so
a failing installer build only surfaced in the following step.

Ruby-4.0.7 and 3.4.11 return ENV keys in UTF-8 on Windows (backport of
https://bugs.ruby-lang.org/issues/20958), but the specs bundled with
these tags still expect the locale encoding. ruby/spec fixed this in
ruby/spec@af6351a
larskanis added a commit that referenced this pull request Oct 2, 2026
@larskanis

Copy link
Copy Markdown
Member

Thank you for this PR! I picked the early failure exit patch, but merged #488 instead for the spec fix. I try to avoid any exclusion of tests.

@larskanis larskanis closed this Oct 2, 2026
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