Mark skipped-earlier file tails complete before delta re-pulls - #269
Merged
adamziel merged 1 commit intoJun 19, 2026
Merged
Conversation
Contributor
Pull pipeline performance —
|
| Stage | PR | trunk | Δ | Status | Details |
|---|---|---|---|---|---|
playground-sqlite-db-pull |
9.69 s | 9.34 s | ⚪ +350 ms (+3.7%) | ✓ | condition=db-pull in PHP.wasm runtime=php.wasm 8.3 wp_mysql_parser=enabled mode=lexer native_lexer=verified native_token_stream=WP_MySQL_Native_Token_Stream native_token_count=18 native_parser=selected trunk: condition=db-pull in PHP.wasm runtime=php.wasm 8.3 wp_mysql_parser=enabled mode=lexer native_lexer=verified native_token_stream=WP_MySQL_Native_Token_Stream native_token_count=18 native_parser=selected |
playground-sqlite-db-apply |
3.59 s | 3.55 s | ⚪ +43 ms (+1.2%) | ✓ | condition=db-apply to SQLite in PHP.wasm runtime=php.wasm 8.3 wp_mysql_parser=enabled mode=parser native_lexer=verified native_token_stream=WP_MySQL_Native_Token_Stream native_token_count=18 native_parser=verified native_ast=WP_MySQL_Native_Parser_Node sqlite_driver_parser=verified trunk: condition=db-apply to SQLite in PHP.wasm runtime=php.wasm 8.3 wp_mysql_parser=enabled mode=parser native_lexer=verified native_token_stream=WP_MySQL_Native_Token_Stream native_token_count=18 native_parser=verified native_ast=WP_MySQL_Native_Parser_Node sqlite_driver_parser=verified |
| Total | 13.28 s | 12.89 s | ⚪ +392 ms (+3.0%) |
Numbers carry runner noise; treat single-run deltas as directional, not authoritative.
📈 Trunk performance history — commit-by-commit timeline.
adamziel
marked this pull request as ready for review
June 19, 2026 15:23
adamziel
merged commit Jun 19, 2026
bd19678
into
pull/studio-single-invocation
25 of 26 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What it does
Marks a successful
files-pull --filter=skipped-earliertail asstatus=completebefore returning.This lets the existing mid-flight
--filterguard keep its original shape: laterpull --filter=essential-filesruns see the previous files sync as complete instead of bypassing the guard for completed pull pipelines.Rationale
PR #268 correctly identifies that a delta re-pull can be blocked after deferred files are fetched. The root cause is the deferred
skipped-earliertail reopening a completedfiles-pullwithstatus=in_progressand then returning without restoring the completed status after a successful fetch.That leaves stale lifecycle state behind. Fixing the state transition keeps one source of truth: completed work is recorded as complete, and the generic filter guard does not need a pull-specific exception.
Implementation
After
run_files_sync_pipeline()handles thefetch-skippedstage,run_files_sync()now:status=partialfor an interrupted fetch;status=completeand saves state before returning.The pull-level test now models the truthful post-tail state, and a new files-sync test drives the
skipped-earliertail through a no-networkfile_fetchtest double.Testing instructions