can we move testcoreedgetargetunreachablemidsync() and…
- User
can we move test_core_edge_target_unreachable_mid_sync() and test_core_us_job_arch_as7_interrupt_terminates_job() from test_end_to_end_sync.py to test_interrupt_integration.py?
Assistant· claude-opus-5
I'll look at both test files first.
Assistant· claude-opus-5
Both moves are clean. Note
sync_ready_source(the 4s-duration fixture) intest_end_to_end_sync.pyis already dead — no test there uses it — so it goes too, along with_TEST_CONFIG_TEMPLATEwhich only the moved tests need.Assistant· claude-opus-5
Now remove the two test methods from the end of the class.
Assistant· claude-opus-5
Now the destination file.
Assistant· claude-opus-5
Moved. Both tests are now module-level functions in
test_interrupt_integration.py(the file'spytestmark = pytest.mark.area_corereplaces their per-test marks), along with the three things only they needed:_TEST_CONFIG_TEMPLATE,sync_ready_source_long_duration, and thePc1ToPc2TrafficBlockerdataclass + fixture. Test bodies are unchanged apart from dedent.Also removed:
sync_ready_sourceintest_end_to_end_sync.py— it was already dead (no test in that module used it;test_sync_order_gates.pyhas its own same-named local fixture). Both module docstrings updated to match what each file now covers.Verified: ruff, ruff format, basedpyright clean; collection shows 8 tests in the interrupt file and 1 in the e2e file, 9 total (unchanged).
Unrelated staleness spotted:
CLAUDE.md:46citestest_end_to_end_sync.py::TestInstallOnTargetIntegration::test_install_on_target_fresh_machine, which does not exist in that file — say the word and I'll fix the example.- User
fix
Assistant· claude-opus-5
Fixed: the example now points at
tests/integration/jobs/test_install_on_target_job.py, whereTestInstallOnTargetIntegration::test_install_on_target_fresh_machineactually lives.- User
Set mark "smoke" mark on entire file test_end_to_end_sync.py. Rename test_sync_runs_every_job_and_replicates_home_both_directions() to be more general. We can't describe everything it does (and we will add package-sync to it) in its name. Is dummy_success used in TestEndToEndSync?
Assistant· claude-opus-5
Done:
pytestmark = pytest.mark.smokeat module level; removed the per-test@pytest.mark.smoke, kept@pytest.mark.area_folder. Verified-m smokestill collects the test.- Renamed to
test_full_sync_pipeline_both_directions— matches_FULL_PIPELINE_CONFIGand stays true when package-sync joins. No other references to the old name outside.planning/. - Lint/format/basedpyright clean.
dummy_success— yes, used:_FULL_PIPELINE_CONFIGenables it with 2s/2s phases (test_end_to_end_sync.py:41,53-55), and_assert_job_integrationasserts on it twice — that it's logged (:74) and that the target's synced config containsdummy_success: true(:82). It's the "generic job" half of the AS1 standardized-interface check, alongsidefolder_sync.- User
duration of 2+2s not needed? --> make smaller. Again some cheap seconds won :-)
Assistant· claude-opus-5
Only 1 is smaller: durations are integers with
minimum: 1, and the job doesiterations = duration // 2with a hard-coded 2s sleep per iteration. So 2 = one iteration = ~2s sleep per phase (~4s total); 1 = zero iterations = no sleeps at all.Assistant· claude-opus-5
Cut to
1/1— schema minimum, and below the job's 2s tick granularity, so both phases run with zero sleeps (saves ~4s per run). The job still starts, executes a command on the target, and finishes, which is all this test asserts of it.Two consequences handled:
- Added a comment at
_FULL_PIPELINE_CONFIGexplaining why1is deliberate, so nobody "fixes" it back up. _assert_job_integrationdropped itsor "source phase"fallback — with zero iterations the job emits no phase lines, so that branch is dead. The remaining check stands onJob dummy_success started, which the orchestrator logs at INFO (orchestrator.py:1343) and the file sink keeps at its DEBUG default.
ruff, basedpyright, codespell clean. Not yet run against VMs — this is an integration test, so real confirmation needs
tests/run-integration-tests.sh tests/integration/test_end_to_end_sync.pyor CI.- Added a comment at
- User
commit your changes
Assistant· claude-opus-5
Two commits on
pc-216, tree clean:9018be41— the test move, smoke mark, rename, and duration cuta4784ee9— the CLAUDE.md path fix
Not pushed.