fix(crane): allow protected files on PR branch pushes#122
Merged
Conversation
9cf960d to
43f548b
Compare
43f548b to
8b374db
Compare
github-actions Bot
added a commit
that referenced
this pull request
Jun 18, 2026
…ration): add Go coverage for crane protected-files tests; advance upstream reviewed_sha - Add TestGoCutoverRealCraneProtectedFilesConstraints in cmd/apm/crane_workflow_test.go to verify crane.md contains instructions for stripping protected workflow files from push patches and that push-to-pull-request-branch has protected-files: allowed - Map two new Python tests added by #122 into python_test_coverage.json: test_crane_base_sync_strips_protected_workflow_files_from_push_patch test_crane_push_to_pr_branch_allows_protected_files - Advance upstream_contract_coverage.yml reviewed_sha from 43a00c21 to 637acb9a7ef6bf1915ad12e9c37750ad43800274 (current microsoft/apm@main) to fix upstream_freshness gate failure on PR #119 All three gates now pass locally: TestGoCutoverPythonTestConversionCoverage reports 23783/23783 Python tests covered, upstream freshness will be satisfied when reviewed_sha == current upstream SHA. Run: https://github.com/githubnext/apm/actions/runs/27770631987 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This was referenced Jun 18, 2026
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.
Summary
push-to-pull-request-branchto push protected files viaprotected-files: allowedgit merge origin/mainare base-sync noise and should be restored before updating an existing Crane PR branch.github/workflows/crane.lock.ymlwith CI-pinnedgh-aw v0.74.4Why
PR #119 failed because the safe-output patch included protected workflow/config files that were being brought in from
main. Base-branch sync noise should not block migration progress, and the workflow should also avoid sending those protected-file changes when the migration does not explicitly target them.Validation
/tmp/gh-aw-v0.74.4/gh-aw compile --no-check-update.venv/bin/ruff format --check tests/unit/test_crane_scheduler.py tests/unit/test_crane_workflow_prompt.py.venv/bin/ruff check src/ tests/.venv/bin/pytest tests/unit/test_crane_scheduler.py tests/unit/test_crane_workflow_prompt.py tests/unit/test_migration_ci_workflow.py(22 passed)git diff --checkLint,Python Unit Tests,Go Tests,Verify gh-aw locks,Detect Migration Changes,Crane / pre_activationRepo Memory
Pushed
memory/craneupdate9899e050to clear the paused state and mark the Python-to-Go migration ready to resume after this config PR lands.