Fix repo-memory validation to skip non-matching files instead of failing #8286
+27
−8
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.
Campaign workflows fail during
push_repo_memorywhen the branch contains legacy files from previous runs that don't match current FILE_GLOB_FILTER patterns. Thememory/campaignsbranch has old files nested asmemory/default/...from before PR #8283, which fail validation against the patterngo-file-size-reduction-project64/**.Changes
Modified
actions/setup/js/push_repo_memory.cjs:Added test coverage:
push_repo_memory.test.cjsExample
Before (fails entire push):
After (skips non-matching files):
This enables gradual migration from old branch structures without requiring manual cleanup or workflow failures.
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
https://api.github.com/repos/githubnext/gh-aw/actions/jobs/59216298621/logs/usr/bin/curl curl -sL REDACTED(http block)https://api.github.com/user/usr/bin/gh gh api user --jq .login ithub/workflows -timeout=3m /usr/bin/gh integration -run=^Test ./... gh api .git --jq by/f8e27215b084c2f956dfd7867e70e6b6a52a1e1f487129228cbbdbe01cc8cde3/log.json l t /home/REDACTED/go//tmp/validate-js-3856699581.cjs /usr/lib/git-core/git(http block)/usr/bin/gh gh api user --jq .login ithub/workflows -buildtags(http block)/usr/bin/gh gh api user --jq .login -java.git by/f8e27215b084c2f956dfd7867e70e6b6a52a1e1f487129228cbbdbe01cc8cde3 eefa3f7014b46aae07d35b2e3bda3e084c8/log.json by/f8e27215b084cnode 8cbbdbe01cc8cde3--check l/linux_amd64/li/tmp/validate-js-2175771153.cjs infocmp -1 3440-15068/test-2943651985/.github/workflows l/linux_amd64/link /usr/bin/git runs/20251231-12/usr/bin/containerd-shim-runc-v2 -buildtags ache/node/24.12.moby git(http block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.