feat(pr-build): allow selecting and stacking multiple open PRs with pre-build conflict preview #271
No reviewers
Labels
No labels
area/build
area/install
area/mods
area/saves
area/tooling
area/ui
area/updates
ci: approved
good first issue
gpu/amd
gpu/intel
gpu/nvidia
help wanted
kind
bug
kind
chore
kind
docs
kind
feature
kind
performance
kind
question
platform/linux
platform/steam-deck
platform/windows
priority
critical
priority
high
priority
low
risk
high
risk
low
risk
medium
status
blocked
status
confirmed
status
duplicate
status
invalid
status
needs-info
status
wontfix
ci: approved
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/LongshotLauncher!271
Loading…
Reference in a new issue
No description provided.
Delete branch "Jer9/LongshotLauncher:feat/pr-build-multi-stack"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Rebases and ports
#271onto the Rust + Slint launcher (#284,main@560f789), decoupled from dropped#270:src/game/pr_stack.rs):>= 2open PRs) with deterministicpr-stack-<n1>-<n2>-<hash8>version tags (<= 64characters forlongshot-builder, hashing both ordered PR heads and the merged commit SHA so rebuilding aftermainmoves never reuses a stale build).gitavailability, serializes allpr-stack-cache.gitoperations behindGIT_CACHE_LOCK(held across fetch, merge/archive, andWorktreeGuarddrop), cleans stale*.lockfiles under that lock before invokinggit, fetches+refs/pull/<N>/headinto a bare cache with-c core.hooksPath=<null_device>and exact head-SHA verification, performs an isolated detached-worktree dry-run merge with structured file-level conflict preview and RAIIWorktreeGuardcleanup, and emits a PAX-commented (comment=<sha40>).tar.gzarchive forlongshot-builder from-source --archive.src/game/{channel,actions,autocheck,catalog,jobs,mod,releases,report,versions,wizard}.rs):Channel::PullRequestStackinsrc/game/channel.rs(label() == "Pull request stack",registry_name() == "pr",is_source() == true) and prevents single-PR tag parsers (channel::tag_prandreleases::single_pr_tag_number) from misparsingpr-stack-*tags.#284's BigBean approval trust gate for unapproved PRs in a stack viaSource.confirm: Option<String>, requiring the user to type every unapproved PR number ("10, 20") when multiple unapproved PRs are stacked.ui/pr-stack.slint,ui/build-files.slint,ui/game-model.slint,ui/game-versions.slint,ui/game.slint,ui/main.slint,docs/pull-requests.md,assets/lang/*.json):PrStackPickerunderVersionChoice("Pull request stack"channel inui/build-files.slint) usingInk.sagefor clean-merge status.main-only base and multi-unapproved confirmation) indocs/pull-requests.mdand updates translations across all 12 fullassets/lang/*.jsoncatalogs (all 15 launcher catalogs validated).Risks
mainonly because Beanstalk's public pulls feed (api/v1/public/pulls) does not expose target base branches; stacking PRs targeting a non-mainintegration branch (such asmod-api) will merge againstmainor report conflicts.Testing
All verification below ran on Windows (
1.99.1-x86_64-pc-windows-gnu) against commit469c1f4rebased ontoorigin/main(560f789). UI screenshot ofPrStackPickeris pending manual capture (no real saves).cargo fmt --all --check: PASScargo clippy --workspace --all-targets --locked -- -D warnings: PASS (0 warnings)python -I scripts/translations.py: PASS (Validated 15 launcher catalogs.)cargo test --workspace --locked -- game::pr_stack:: game::catalog:: game::releases:: game::tag_tests:: game::channel_tests::): 14/14 PASS:game::pr_stack::tests::stack_tag_format_determinism_order_and_parsinggame::pr_stack::tests::selection_ordering_dedup_validation_and_unapproved_gate(including multi-unapproved"10, 20"confirmation)game::pr_stack::tests::missing_git_fails_cleanlygame::pr_stack::tests::fetch_commits_self_heals_stale_ref_lock_filegame::pr_stack::tests::conflict_detection_attribution_noop_merge_and_worktree_cleanupgame::pr_stack::tests::bare_repo_fetch_verifies_head_and_rejects_stale_shagame::pr_stack::tests::clean_multi_pr_merge_and_pax_archive_verificationgame::catalog::tests::each_install_follows_its_own_channelgame::channel_tests::promotion_controls_stable_game_defaults_and_new_buildsgame::tag_tests::game_tags_classify_and_order_by_trackgame::releases::tests::refuses_other_repo_for_named_prgame::releases::tests::bootstrap_checks_version_platform_and_signed_namegame::releases::tests::prefetched_builder_stays_in_cache_until_installationgame::releases::tests::moving_future_builds_reuses_prefetched_release_without_networkcargo test --workspace --lockedon Windows (prior run onbc18790before addingfetch_commits_self_heals_stale_ref_lock_fileabove): 125 passed, 11 failed, 2 ignored (all 11 failures reproduced identically on cleanorigin/main560f789on Windows; CIbuild-testruns onubuntu-24.04).Ported
#271(multi-PR stack selection and pre-build dry-run merge) onto the Rust + Slint launcher rewrite (#284) on branchJer9:port/271-pr-stack-rust, decoupled from#270(closed as superseded bylongshot-builder):>= 2PRs), deterministicpr-stack-<n1>-<n2>-<hash8>tags,+refs/pull/<N>/headfetch with exact head-SHA check, isolated detached worktree dry-run merge with file-level conflict preview andDropcleanupcomment=<sha40>).tar.gzdirectly intolongshot-builder from-source --archive(failing closed ifmainmoves between preview and build)cargo fmt,cargo clippy,scripts/translations.py, andgame::pr_stack6/6 tests passing)Ready to rebase onto
mainas soon as#284merges.1701405acf0738a6f4e00738a6f4e0efc23a98ccefc23a98cc469c1f4d88Include screenshots please
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.