Skip to content

Use unicode characters in temporary test directory if supported - #12619

Open
fendor wants to merge 8 commits into
haskell:masterfrom
fendor:wip/fendor/fix-release-ci-unicode
Open

fendor wants to merge 8 commits into
haskell:masterfrom
fendor:wip/fendor/fix-release-ci-unicode

Conversation

@fendor

@fendor fendor commented Nov 18, 2026 •

Copy link
Copy Markdown
Collaborator

Some test environments struggle with unicode characters in the test directory names.
Workaround this by generating temporary directories containing unicode characters, if we can determine that the getFileSystemEncoding supports it.

This is best effort, and may not run tests with unicode characters if the file system encoding isn't one of the blessed known ones.

Removes the old test that uses the unicode characters directly. Allows us to run the test on windows as well.

My attempt at fixing the issue reported in #12574 (comment)


Template Α: This PR modifies behaviour or interface

Include the following checklist in your PR:

@fendor

fendor commented Nov 18, 2026

Copy link
Copy Markdown
Collaborator Author

Can I run this on the release CI to see whether the issue is fixed?

@zlonast

zlonast commented Nov 18, 2026

Copy link
Copy Markdown
Collaborator

@fendor I think you have the permissions to add labels, so you can just go ahead and add one.

@fendor

fendor commented Nov 18, 2026

Copy link
Copy Markdown
Collaborator Author

Ah, thank you!

@fendor

fendor commented Nov 18, 2026

Copy link
Copy Markdown
Collaborator Author

This is hell 🙃

image

@fendor
fendor force-pushed the wip/fendor/fix-release-ci-unicode branch from e2e1998 to 850980d Compare November 19, 2026 14:00
@fendor
fendor force-pushed the wip/fendor/fix-release-ci-unicode branch 4 times, most recently from 42f6b8d to 3a40b91 Compare November 19, 2026 17:36
@fendor
fendor force-pushed the wip/fendor/fix-release-ci-unicode branch from 9d3b400 to 563968e Compare November 20, 2026 09:12
@fendor
fendor force-pushed the wip/fendor/fix-release-ci-unicode branch 3 times, most recently from a9d808d to e4cc963 Compare November 20, 2026 09:46
@fendor

fendor commented Nov 20, 2026 •

Copy link
Copy Markdown
Collaborator Author

@zlonast I think this looks good now (bare some CI shuffling), it should fix the release builds, even fixes 4 latent bugs related to unicode, and I created #12626 for further investigations.

I have decided to not generate unicode symbols on windows jobs, mostly because my time on this earth is limited :)

@fendor
fendor force-pushed the wip/fendor/fix-release-ci-unicode branch 2 times, most recently from f69c992 to e59b817 Compare November 20, 2026 14:32
@mergify mergify Bot added the 1️⃣ more approval needed Set by Mergify: has one of the two required approvals label Nov 21, 2026

@zlonast zlonast left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, it looks good; all that’s left is to add a changelog.

@mergify mergify Bot removed the 1️⃣ more approval needed Set by Mergify: has one of the two required approvals label Nov 22, 2026
@zlonast

zlonast commented Nov 22, 2026

Copy link
Copy Markdown
Collaborator

I think we should switch to Template A, since we are implementing a fix in cabal-install and Cabal.

@fendor

fendor commented Nov 23, 2026

Copy link
Copy Markdown
Collaborator Author

@zlonast I was hoping to avoid the changelog :D I added the changelog

fendor added a commit to fendor/cabal that referenced this pull request Nov 23, 2026
Some test environments struggle with unicode characters in the
test directory names.
Workaround this by generating temporary directories containing unicode
characters, if we can determine that the `getFileSystemEncoding`
supports it.

This is best effort, and may not run tests with unicode characters if
the file system encoding isn't one of the blessed known ones.

Removes the old test that uses the unicode characters directly.
Allows us to run the test on windows as well.
Normalise the temporary cabal storedir instead of using the
GLOBALTMPDIR.
Similar, use the build root dir instead of the GLOBALTMPDIR in the
test output.
@fendor
fendor force-pushed the wip/fendor/fix-release-ci-unicode branch from 6bc2697 to 6a316ee Compare November 23, 2026 09:00
@fendor fendor added squash+merge me Tell Mergify Bot to squash-merge and removed attention: needs-review labels Nov 23, 2026
@mergify mergify Bot added ready and waiting Mergify is waiting out the cooldown period merge delay passed Applied (usually by Mergify) when PR approved and received no updates for 2 days queued labels Nov 23, 2026
@mergify

mergify Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

🟠 Testing · estimated merge 13:05 UTC

Tested on top of #12623.

Waiting for

  • any of · required by GitHub branch protection:
    • check-neutral = Validate post job
    • check-skipped = Validate post job
    • check-success = Validate post job
  • ⏳ #12623 ahead to merge

So far

  • ✅ Entered the queue Wed 25 Nov, 10:56 · rule squash-merge · triggered by rule Put pull requests in the squash+merge queue
  • 🟠 Testing · draft #12658
11 merge conditions met
  • #review-threads-unresolved = 0 · required by GitHub branch protection
  • github-review-approved · required by GitHub branch protection
  • any of · required by GitHub branch protection:
    • check-success = Doctest Cabal
    • check-neutral = Doctest Cabal
    • check-skipped = Doctest Cabal
  • any of · required by GitHub branch protection:
    • check-success = Meta checks
    • check-neutral = Meta checks
    • check-skipped = Meta checks
  • any of · required by GitHub branch protection:
    • check-success = docs/readthedocs.org:cabal
    • check-neutral = docs/readthedocs.org:cabal
    • check-skipped = docs/readthedocs.org:cabal
  • any of · required by GitHub branch protection:
    • check-success = fourmolu
    • check-neutral = fourmolu
    • check-skipped = fourmolu
  • any of · required by GitHub branch protection:
    • check-success = hlint
    • check-neutral = hlint
    • check-skipped = hlint
  • any of · required by GitHub branch protection:
    • check-success = Bootstrap post job
    • check-neutral = Bootstrap post job
    • check-skipped = Bootstrap post job
  • any of · required by GitHub branch protection:
    • check-success = whitespace
    • check-neutral = whitespace
    • check-skipped = whitespace
  • any of · required by GitHub branch protection:
    • check-success = Check sdist post job
    • check-neutral = Check sdist post job
    • check-skipped = Check sdist post job
  • any of · required by GitHub branch protection:
    • check-success = Changelogs
    • check-neutral = Changelogs
    • check-skipped = Changelogs
Queue rule squash-merge: all 16 queue conditions still met
  • -closed
  • -conflict
  • -draft
  • any of:
    • -mergify-configuration-changed
    • check-success = @mergify/Configuration changed
    • check-success = @mergify/Configuration has been deleted
  • #review-threads-unresolved = 0 · required by GitHub branch protection
  • github-review-approved · required by GitHub branch protection
  • any of · required by GitHub branch protection:
    • check-success = Doctest Cabal
    • check-neutral = Doctest Cabal
    • check-skipped = Doctest Cabal
  • any of · required by GitHub branch protection:
    • check-success = Meta checks
    • check-neutral = Meta checks
    • check-skipped = Meta checks
  • any of · required by GitHub branch protection:
    • check-success = docs/readthedocs.org:cabal
    • check-neutral = docs/readthedocs.org:cabal
    • check-skipped = docs/readthedocs.org:cabal
  • any of · required by GitHub branch protection:
    • check-success = Validate post job
    • check-neutral = Validate post job
    • check-skipped = Validate post job
  • any of · required by GitHub branch protection:
    • check-success = fourmolu
    • check-neutral = fourmolu
    • check-skipped = fourmolu
  • any of · required by GitHub branch protection:
    • check-success = hlint
    • check-neutral = hlint
    • check-skipped = hlint
  • any of · required by GitHub branch protection:
    • check-success = Bootstrap post job
    • check-neutral = Bootstrap post job
    • check-skipped = Bootstrap post job
  • any of · required by GitHub branch protection:
    • check-success = whitespace
    • check-neutral = whitespace
    • check-skipped = whitespace
  • any of · required by GitHub branch protection:
    • check-success = Check sdist post job
    • check-neutral = Check sdist post job
    • check-skipped = Check sdist post job
  • any of · required by GitHub branch protection:
    • check-success = Changelogs
    • check-neutral = Changelogs
    • check-skipped = Changelogs

Times in UTC · dashboard · how the merge queue works

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

Labels

merge delay passed Applied (usually by Mergify) when PR approved and received no updates for 2 days queued ready and waiting Mergify is waiting out the cooldown period run release build squash+merge me Tell Mergify Bot to squash-merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants