Remove TestGetActionPinSemverPreference test#16084
Merged
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix missing upload-artifact@v6.0.0 pin in action tests
Remove TestGetActionPinSemverPreference test
Feb 16, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR removes a brittle test that was failing due to mismatched version expectations between the test and the action pins dataset. The maintainer chose to delete the test rather than maintain patch-level version pins.
Changes:
- Removed
TestGetActionPinSemverPreferencetest function (55 lines) frompkg/workflow/action_pins_test.go
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
TestGetActionPinSemverPreferencefailed because the action pins dataset containedactions/upload-artifact@v6but the test expectedv6.0.0. Rather than maintaining patch-level pins for semver preference validation, the test is removed.Changes
TestGetActionPinSemverPreferencefrompkg/workflow/action_pins_test.go(55 lines)TestGetActionPinWithData_SemverPreference,TestGetActionPinByRepo) remain and continue to validate version resolution behaviorWarning
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/graphql/usr/bin/gh /usr/bin/gh api graphql -f query=query($owner: String!, $name: String!) { repository(owner: $owner, name: $name) { hasDiscussionsEnabled } } -f owner=github -f name=gh-aw ply.github.com>(http block)/usr/bin/gh gh repo view --json owner,name --jq .owner.login + "/" + .name ache/node/24.13.0/x64/bin/node se 5192707/b191/vetcheckout ache/go/1.25.0/x.github/workflows/test.md git estl�� --show-toplevel ache/go/1.25.0/x64/pkg/tool/linux_amd64/vet ache/node/24.13.0/x64/bin/node copilot/fix-uplogit(http block)/usr/bin/gh gh repo view --json owner,name --jq .owner.login + "/" + .name ache/node/24.13.0/x64/bin/node k/gh-aw/gh-aw/pkgit(http block)https://api.github.com/repos/actions/ai-inference/git/ref/tags/v1/usr/bin/gh gh api /repos/actions/ai-inference/git/ref/tags/v1 --jq .object.sha(http block)/usr/bin/gh gh api /repos/actions/ai-inference/git/ref/tags/v1 --jq .object.sha pkg/workflow/data/action_pins.json git 0/x64/bin/node nner/work/gh-aw/git x_amd64/vet e/git 0/x64/bin/node -o /tmp/go-build1765729558/b389/_pkg_.a -trimpath 64/bin/bash -p main -lang=go1.25 gh(http block)https://api.github.com/repos/actions/checkout/git/ref/tags/v3/usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v3 --jq .object.sha(http block)/usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v3 --jq .object.sha 3625-15054/test-2241153354/.github/workflows /opt/hostedtoolcache/go/1.25.0/x64/pkg/tool/linux_amd64/vet 0/x64/bin/node rkflow/js/**/*.jgit -buildtags erignore sh ash.�� vaScript4270846557/001/test-empty-frontmatter.md-test.timeout=10m0s git ache/go/1.25.0/x64/pkg/tool/linux_amd64/vet ./../.prettieriggit -tests /usr/bin/git ache/go/1.25.0/x64/pkg/tool/linuconfig(http block)https://api.github.com/repos/actions/checkout/git/ref/tags/v4/usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v4 --jq .object.sha(http block)/usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v4 --jq .object.sha rd(http block)/usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v4 --jq .object.sha runs/20260216-103625-15054/test--errorsas git 5729558/b357/vet.cfg ettierignore(http block)https://api.github.com/repos/actions/checkout/git/ref/tags/v5/usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v5 --jq .object.sha(http block)/usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v5 --jq .object.sha celain --ignore-submodules | head -n 10 --local ache/go/1.25.0/x64/pkg/tool/linux_amd64/vet http.https://gitgit(http block)/usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v5 --jq .object.sha -unreachable=false /tmp/go-build3135192707/b044/vet.cfg ad-artifact-pin-test(http block)https://api.github.com/repos/actions/github-script/git/ref/tags/v8/usr/bin/gh gh api /repos/actions/github-script/git/ref/tags/v8 --jq .object.sha(http block)/usr/bin/gh gh api /repos/actions/github-script/git/ref/tags/v8 --jq .object.sha rd(http block)/usr/bin/gh gh api /repos/actions/github-script/git/ref/tags/v8 --jq .object.sha -c=4 -nolocalimports -importcfg /tmp/go-build1765729558/b123/importcfg -pack /home/REDACTED/work/gh-aw/gh-aw/cmd/gh-aw/main.go /home/REDACTED/work/gh-aw/gh-aw/cmd/gh-aw/capitalization_test.go rev-�� --show-toplevel 64/pkg/tool/linux_amd64/vet /usr/bin/git(http block)https://api.github.com/repos/actions/setup-go/git/ref/tags/v4/usr/bin/gh gh api /repos/actions/setup-go/git/ref/tags/v4 --jq .object.sha(http block)/usr/bin/gh gh api /repos/actions/setup-go/git/ref/tags/v4 --jq .object.sha runs/20260216-103625-15054/test--errorsas git /home/REDACTED/node_modules/.bin/n-nilfunc l(http block)https://api.github.com/repos/actions/setup-node/git/ref/tags/v4/usr/bin/gh gh api /repos/actions/setup-node/git/ref/tags/v4 --jq .object.sha(http block)/usr/bin/gh gh api /repos/actions/setup-node/git/ref/tags/v4 --jq .object.sha "prettier" --write 'scripts/**/*-errorsas git 5729558/b375/vet.cfg ettierignore(http block)https://api.github.com/repos/github/gh-aw/actions/runs/1/artifacts/usr/bin/gh gh run download 1 --dir test-logs/run-1 ache/go/1.25.0/x64/pkg/tool/linumain ache/node/24.13.0/x64/bin/node se 5192707/b229/vet-unsafeptr=false ache/go/1.25.0/x-unreachable=false git estl�� --show-toplevel /bin/sh ache/node/24.13.0/x64/bin/node f() { test "$1" git f() { test "$1" rev-parse tnet/tools/bash git(http block)https://api.github.com/repos/github/gh-aw/actions/runs/12345/artifacts/usr/bin/gh gh run download 12345 --dir test-logs/run-12345 ortcfg ache/node/24.13.0/x64/bin/node path.sh' '/usr/bgit g/workflow/imporrev-parse ache/go/1.25.0/x--show-toplevel git _inc�� '**/*.ts' '**/*.json' --ignore-path ../../../.prettierignore ache/go/1.25.0/x64/pkg/tool/linux_amd64/vet h -v origin ache/go/1.25.0/x--show-toplevel git(http block)https://api.github.com/repos/github/gh-aw/actions/runs/12346/artifacts/usr/bin/gh gh run download 12346 --dir test-logs/run-12346 ache/go/1.25.0/x64/pkg/tool/linu-ifaceassert ache/node/24.13.0/x64/bin/node path.sh' '' && egit 5192707/b227/vetrev-parse ache/go/1.25.0/x--show-toplevel git _har�� '**/*.ts' '**/*.json' --ignore-premote.origin.url ache/go/1.25.0/x64/pkg/tool/linux_amd64/compile bin/sh 5192707/b339/_pkgit origin bin/bash git(http block)https://api.github.com/repos/github/gh-aw/actions/runs/2/artifacts/usr/bin/gh gh run download 2 --dir test-logs/run-2 ache/go/1.25.0/x64/pkg/tool/linu-w ache/node/24.13.0/x64/bin/node se 5192707/b212/vetrev-parse ache/node/24.13.--show-toplevel git estl�� --show-toplevel /bin/sh ache/node/24.13.0/x64/bin/node f() { test "$1" git f() { test "$1" rev-parse bash git(http block)https://api.github.com/repos/github/gh-aw/actions/runs/3/artifacts/usr/bin/gh gh run download 3 --dir test-logs/run-3 ache/go/1.25.0/x64/pkg/tool/linu-ifaceassert x_amd64/compile se 5192707/b231/vetrev-parse k/_temp/ghcca-no--show-toplevel x_amd64/compile 0/x6�� --show-toplevel bash ache/node/24.13.0/x64/bin/node --noprofile(http block)https://api.github.com/repos/github/gh-aw/actions/runs/4/artifacts/usr/bin/gh gh run download 4 --dir test-logs/run-4 ache/go/1.25.0/x64/pkg/tool/linu-test.run=^Test x_amd64/compile se 5192707/b232/vetrev-parse /opt/hostedtoolc--show-toplevel x_amd64/compile 0/x6�� --show-toplevel bash ndor/bin/sh --noprofile(http block)https://api.github.com/repos/github/gh-aw/actions/runs/5/artifacts/usr/bin/gh gh run download 5 --dir test-logs/run-5 ache/go/1.25.0/x64/pkg/tool/linu-test.run=^Test 64/bin/node se 5192707/b234/vetrev-parse cal/bin/bash git 0/x6�� --show-toplevel bash ache/node/24.13.0/x64/bin/node --noprofile(http block)https://api.github.com/repos/github/gh-aw/actions/workflows/usr/bin/gh gh workflow list --json name,state,path --show-toplevel 9280aabf08554fe4**/*.json /usr/bin/git(http block)Co-au-atomic 64/pkg/tool/linu-bool git /pre�� --show-toplevel 64/pkg/tool/linu-ifaceassert 0/x64/bin/node` (http block)
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.