Skip to content

Conversation

G-Rath
Copy link
Collaborator

@G-Rath G-Rath commented Mar 31, 2025

Apparently since Go v1.15 os.Exit will be called automatically by the runner with the result of m.Run if a call to exit has not been made when TestMain finishes, so we can omit doing it ourselves

@codecov-commenter
Copy link

codecov-commenter commented Mar 31, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 65.02%. Comparing base (1ad7012) to head (4a8257e).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1772   +/-   ##
=======================================
  Coverage   65.02%   65.02%           
=======================================
  Files         163      163           
  Lines       15941    15941           
=======================================
  Hits        10365    10365           
  Misses       4897     4897           
  Partials      679      679           

☔ 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@another-rex another-rex merged commit fd90ed1 into google:main Apr 1, 2025
14 checks passed
@another-rex another-rex deleted the linting/enable-redundant-test-main-exit branch April 1, 2025 01:51
another-rex pushed a commit that referenced this pull request May 27, 2025
)

We've already addressed the violations of this in #1772, but could not
enable the rule at the time as it was mistakenly omitted from the schema
used by the action to valid the linter config - now though
golangci/golangci-lint#5692 has been released
and we've upgraded, that is no longer an issue 🎉
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