Skip to content

fix(tests): wait for the background native save before reloading the native file - #308

Merged
BenPinet merged 6 commits into
nextfrom
fix/e2e_user_data_per_worker
Nov 26, 2026
Merged

BenPinet merged 6 commits into
nextfrom
fix/e2e_user_data_per_worker

Conversation

@MaxNumerique

Copy link
Copy Markdown
Contributor

Closes #307

generate_files_from_file saves the native file in background and returns once the viewables are saved. Two tests of test_utils_functions.py reloaded the native file right after, without waiting: they failed when the save thread had not finished yet (seen in https://github.com/Geode-solutions/Versions/actions/runs/45805553458/job/139860443276).

Both now call utils_functions.wait_native_saved(...) before load_one, as the other tests already do:

  • test_generate_files_from_non_native_file_twice_shares_geode_id
  • the multi object import test (two_surfaces.ts)

The branch has the same name as Geode-solutions/Vease#935, so the ecosystem branch check runs both fixes together.

🤖 Generated with Claude Code

…native file

The native file is saved in background: reloading it right after
generate_files_from_file failed when the save thread had not finished.

Closes #307

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
MaxNumerique and others added 4 commits November 26, 2026 14:43
…s test

The two imports of test_concurrent_imports_save_in_parallel wrote the SQLite
database from two threads at once, which corrupted it on Windows CI
("unsupported file format", then "database disk image is malformed" for
every next test). Each import answers while its native save is blocked:
issued one after the other, both saves are still pending at once.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@BenPinet
BenPinet merged commit aa3e94c into next Nov 26, 2026
32 checks passed
@BenPinet
BenPinet deleted the fix/e2e_user_data_per_worker branch November 26, 2026 16:35
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.

3 participants