Skip to content

Cleanup pass on Go code in repository#2951

Merged
skmcgrail merged 1 commit intoaws:mainfrom
skmcgrail:fix-go-mods
Jan 21, 2026
Merged

Cleanup pass on Go code in repository#2951
skmcgrail merged 1 commit intoaws:mainfrom
skmcgrail:fix-go-mods

Conversation

@skmcgrail
Copy link
Copy Markdown
Member

Description of changes:

  • Go 1.17 is still the targeted "base" Go version our tools are targeting. This limits us to using a golang.org/x/crypto module version that was still compatible with Go 1.17. This module version has tagged CVEs, but they aren't relevent to our build/test tools. This is only used for the ssl/test/runner, we could in the future be smarter about running or not running tests that require this program based off the detected Go compiler version.
  • I added go:build ignore tag to the Go programs that were pulling in github.com/ethereum/go-ethereum. So this won't be recorded in the top-level go.mod file anymore. We could move these into a separate nested module, but these only exist if in the rare event we want to regenerate test cases / understand what generated test cases for us.
  • Ran go fmt on the code in the repository, need to add a CI job that actually enforces this....

Call-outs:

  • Will need to fix the AWS-LC-Build-Glue script that drops an alternative go.mod file, as the path will now be incorrect and will cause build failures when trying to build ssl/test/runner.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and the ISC license.

@skmcgrail skmcgrail requested a review from a team as a code owner January 21, 2026 19:38
@skmcgrail
Copy link
Copy Markdown
Member Author

This should resolve:
#2950 and #2949

@skmcgrail skmcgrail requested a review from sgmenda January 21, 2026 20:28
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Jan 21, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 78.08%. Comparing base (d4cc872) to head (d3f529b).
⚠️ Report is 55 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2951   +/-   ##
=======================================
  Coverage   78.07%   78.08%           
=======================================
  Files         682      682           
  Lines      118355   118355           
  Branches    16609    16610    +1     
=======================================
+ Hits        92406    92415    +9     
+ Misses      25060    25050   -10     
- Partials      889      890    +1     

☔ View full report in Codecov by Sentry.
📢 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.

Copy link
Copy Markdown
Contributor

@sgmenda sgmenda left a comment

Choose a reason for hiding this comment

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

lgtm

@skmcgrail skmcgrail merged commit 5533284 into aws:main Jan 21, 2026
393 of 400 checks passed
@skmcgrail skmcgrail deleted the fix-go-mods branch January 21, 2026 22:36
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.

4 participants