Skip to content

fix: remove stale golang.org/x/oauth2 v0.36.0 entry from go.sum#399

Open
vanshika2720 wants to merge 1 commit into
volcano-sh:mainfrom
vanshika2720:main
Open

fix: remove stale golang.org/x/oauth2 v0.36.0 entry from go.sum#399
vanshika2720 wants to merge 1 commit into
volcano-sh:mainfrom
vanshika2720:main

Conversation

@vanshika2720

@vanshika2720 vanshika2720 commented Jun 22, 2026

Copy link
Copy Markdown

What type of PR is this?

/kind bug

What this PR does / why we need it:

This PR removes stale golang.org/x/oauth2 v0.36.0 checksum entries from go.sum.

The repository currently requires golang.org/x/oauth2 v0.32.0 through transitive dependencies, while go.sum still contains checksum entries for v0.36.0 that are not part of the active dependency graph.

The codegen-check CI job executes make gen-check, which runs go mod tidy as part of the generation workflow and then validates that the repository is clean using git diff --exit-code.

Because go mod tidy removes the unused v0.36.0 checksum entries, the working tree becomes dirty and the final diff check fails. As a result, the Codegen Check workflow fails even though no generated artifacts require updates.

This PR applies go mod tidy and commits the resulting cleanup so that go.sum is consistent with the current module graph.

Changes:

  • Remove stale golang.org/x/oauth2 v0.36.0 checksum entries from go.sum
  • No dependency versions are changed
  • No source code or generated code is modified

Which issue(s) this PR fixes:

Fixes the Codegen Check CI failure affecting PR #393 and most of the PR's
#392

Special notes for your reviewer:

  • Verified that go mod tidy only removes the unused golang.org/x/oauth2 v0.36.0 checksum entries.
  • Verified that make gen-check succeeds after this cleanup.
  • This issue is independent of PR chore: secure github workflows #393 and exists on the current main branch.

Does this PR introduce a user-facing change?:

NONE

Copilot AI review requested due to automatic review settings June 22, 2026 17:33
@volcano-sh-bot volcano-sh-bot added the kind/bug Something isn't working label Jun 22, 2026
@volcano-sh-bot

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign kevin-wangzefeng for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@volcano-sh-bot

Copy link
Copy Markdown
Contributor

Welcome @vanshika2720! It looks like this is your first PR to volcano-sh/agentcube 🎉

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot wasn't able to review any files in this pull request.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request cleans up the go.sum file by removing the unused golang.org/x/oauth2 v0.36.0 dependency. There are no review comments, and I have no feedback to provide.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

go.mod pins golang.org/x/oauth2 at v0.32.0 (an indirect dependency via
github.com/coreos/go-oidc/v3). A stale v0.36.0 checksum pair was
introduced in commit e49e608 when the OIDC feature was merged without
running go mod tidy beforehand.

The codegen-check CI job executes 'make gen-check', which internally
runs 'go mod tidy' (via the generate target) and then checks
'git diff --exit-code'. Because go mod tidy removes the unreachable
v0.36.0 entry, the working tree is always dirty after code generation,
causing the check to fail with exit code 1.

This commit applies 'go mod tidy' to bring go.sum back in sync with
go.mod. No dependencies are added or changed; only the stale v0.36.0
checksum entries are removed.

Fixes the Codegen Check CI failure that blocks PR volcano-sh#393.

Signed-off-by: Vanshika <pahalvanshikaa@gmail.com>
@vanshika2720

Copy link
Copy Markdown
Author

@zhzhuang-zju can you review this?

@vanshika2720

vanshika2720 commented Jun 22, 2026

Copy link
Copy Markdown
Author

/cc @RainbowMango
/cc @hzxuzhonghu

@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 58.57%. Comparing base (524e55e) to head (a5cb501).
⚠️ Report is 146 commits behind head on main.
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@             Coverage Diff             @@
##             main     #399       +/-   ##
===========================================
+ Coverage   47.57%   58.57%   +11.00%     
===========================================
  Files          30       37        +7     
  Lines        2819     3491      +672     
===========================================
+ Hits         1341     2045      +704     
+ Misses       1338     1237      -101     
- Partials      140      209       +69     
Flag Coverage Δ
unittests 58.57% <ø> (+11.00%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@zhzhuang-zju

Copy link
Copy Markdown

Hi @vanshika2720, removing the stale entry from go.sum can fix this particular issue. However, as I noted in #401, we also need to update the Codegen Check CI to fully prevent similar problems from happening again.

@zhzhuang-zju

Copy link
Copy Markdown

kindly ping @vanshika2720

@safiya2610

safiya2610 commented Jun 28, 2026

Copy link
Copy Markdown

kindly ping @vanshika2720

#411 I opened this PR fixing this issue, if you want to collaborate, you can @vanshika2720
other of my PR was affecting as codegen failing.

@zhzhuang-zju

Copy link
Copy Markdown

LGTM

I think we could merge this PR first, and then we can rebase #411 and #393.
/cc @RainbowMango

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/bug Something isn't working size/XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants