Skip to content

fix: update TestGetActionPinsSorting expected count from 31 to 34 (#23057948566)#20824

Merged
pelikhan merged 3 commits intomainfrom
copilot/fix-test-failure-issue
Mar 13, 2026
Merged

fix: update TestGetActionPinsSorting expected count from 31 to 34 (#23057948566)#20824
pelikhan merged 3 commits intomainfrom
copilot/fix-test-failure-issue

Conversation

Copy link
Contributor

Copilot AI commented Mar 13, 2026

Summary

Fixes the CI test failure in https://github.com/github/gh-aw/actions/runs/23057948566/job/66976491837.

The test TestGetActionPinsSorting was failing because getActionPins() returned 34 pins but the test expected 31.

Root Cause

Three new backward-compatible action pin entries were added to action_pins.json in commit edd81b6df (for actions/cache/restore@v4, actions/cache/save@v4, and actions/setup-node@v4), bringing the total from 31 to 34. The test's hardcoded expected count was not updated to reflect this.

Changes

  • Updated the expected pin count in TestGetActionPinsSorting from 31 to 34
  • Restored action_pins.json to the correct origin/main state (34 entries) that was incorrectly modified by the initial plan commit

Security Summary

No security vulnerabilities introduced or discovered.

Copilot AI and others added 3 commits March 13, 2026 16:08
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
@pelikhan pelikhan marked this pull request as ready for review March 13, 2026 16:20
Copilot AI review requested due to automatic review settings March 13, 2026 16:20
@pelikhan pelikhan merged commit a5a82d6 into main Mar 13, 2026
@pelikhan pelikhan deleted the copilot/fix-test-failure-issue branch March 13, 2026 16:20
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates a brittle unit test expectation to match the current number of embedded action pins, addressing a CI failure in TestGetActionPinsSorting.

Changes:

  • Update TestGetActionPinsSorting expected pin count from 31 to 34.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Comment on lines +300 to +302
// Verify we got all the pins (34 as of March 2026)
if len(pins) != 34 {
t.Errorf("getActionPins() returned %d pins, expected 34", len(pins))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants