Skip to content

Conversation

@sellout
Copy link
Contributor

@sellout sellout commented Aug 28, 2025

Overview

The interpreter tests are broken by #5819 which (wisely) fails transcript.fork when it’s run with the same source and target codebase. This updates the interpreter tests to use transcript.in-place instead.

Implementation notes

This also updates CI to use interpreter-tests.sh rather than duplicating the logic, so CI will catch similar in future. And it makes a couple other fixes to the CI job.

Test coverage

This fixes broken tests.

Avoid duplicating the logic, and ensure we keep the test script working.

This also fixes the guards on the `interpreter-tests` job steps and adds
the workflow to the cache hashes.
The interpreter tests are broken by unisonweb#5819 which (wisely) fails
`transcript.fork` when it’s run with the same source and target
codebase. This updates the interpreter tests to use
`transcript.in-place` instead.

(cherry picked from commit dc61f22)
@sellout sellout requested a review from a team as a code owner August 28, 2025 18:20
@sellout
Copy link
Contributor Author

sellout commented Aug 28, 2025

Ok, these are now failing because the cached codebase is out of date and needs to be migrated. Wondering how to manage that in CI.

  1. Can ucm transcript* have a flag to auto-migrate, for non-interactive runs?
  2. Can we check whether the codebase is compatible before running interpreter-tests.sh?

I’m guessing ucm transcript.fork auto-migrates (because it doesn’t touch the original codebase), and that’s why CI did this differently than interpreter-tests.sh.

If an explicit UCM isn’t specified, build before looking for the
executable.
@sellout
Copy link
Contributor Author

sellout commented Aug 29, 2025

Ok, these are now failing […]

They’re fixed now (found UNISON_MIGRATION=auto).

@sellout sellout requested a review from aryairani August 29, 2025 21:50
@aryairani aryairani merged commit 53590b4 into unisonweb:trunk Sep 3, 2025
17 checks passed
@sellout sellout deleted the fix-interpreter-tests branch September 3, 2025 14:42
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