Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Merged by Bors] - Move staticcheck step to lint job #4762

Closed
wants to merge 2 commits into from

Conversation

fasmat
Copy link
Member

@fasmat fasmat commented Aug 1, 2023

Motivation

Quicktests recently have often timed out when they should pass or fail quickly to catch easy detectable mistakes (primarily formatting and dependency issues at the moment).

The staticcheck fits well into the lint job with the other linters invoked by golangci-lint (btw. shouldn't staticcheck already be called by golangci-lint? 馃 ) If the lint job takes longer that's not a big deal; it runs in parallel to most other jobs and unittests take much longer anyway so the overall time for CI won't increase by this.

Changes

  • Move staticcheck from quicktests job to lint job.
  • Set new timeouts that should be long enough to avoid being triggered in a normal run.

Test Plan

TODO

  • Explain motivation or link existing issue(s)
  • Test changes and document test plan
  • Update documentation as needed

DevOps Notes

  • This PR does not require configuration changes (e.g., environment variables, GitHub secrets, VM resources)
  • This PR does not affect public APIs
  • This PR does not rely on a new version of external services (PoET, elasticsearch, etc.)
  • This PR does not make changes to log messages (which monitoring infrastructure may rely on)

@fasmat fasmat self-assigned this Aug 1, 2023
@codecov
Copy link

codecov bot commented Aug 1, 2023

Codecov Report

Merging #4762 (c4b66db) into develop (f1f5c60) will decrease coverage by 0.1%.
The diff coverage is n/a.

@@            Coverage Diff            @@
##           develop   #4762     +/-   ##
=========================================
- Coverage     76.8%   76.8%   -0.1%     
=========================================
  Files          259     259             
  Lines        29432   29432             
=========================================
- Hits         22617   22610      -7     
- Misses        5378    5383      +5     
- Partials      1437    1439      +2     

see 5 files with indirect coverage changes

@fasmat
Copy link
Member Author

fasmat commented Aug 2, 2023

bors merge

bors bot pushed a commit that referenced this pull request Aug 2, 2023
## Motivation
Quicktests recently have often timed out when they should pass or fail quickly to catch easy detectable mistakes (primarily formatting and dependency issues at the moment).

The staticcheck fits well into the lint job with the other linters invoked by `golangci-lint` (btw. shouldn't staticcheck already be called by golangci-lint? 馃 ) If the lint job takes longer that's not a big deal; it runs in parallel to most other jobs and unittests take much longer anyway so the overall time for CI won't increase by this.

## Changes
- Move `staticcheck` from quicktests job to lint job.
- Set new timeouts that should be long enough to avoid being triggered in a normal run.

## Test Plan
<!-- Please specify how these changes were tested 
(e.g. unit tests, manual testing, etc.) -->

## TODO
<!-- This section should be removed when all items are complete -->
- [x] Explain motivation or link existing issue(s)
- [x] Test changes and document test plan
- [x] Update documentation as needed

## DevOps Notes
<!-- Please uncheck these items as applicable to make DevOps aware of changes that may affect releases -->
- [x] This PR does not require configuration changes (e.g., environment variables, GitHub secrets, VM resources)
- [x] This PR does not affect public APIs
- [x] This PR does not rely on a new version of external services (PoET, elasticsearch, etc.)
- [x] This PR does not make changes to log messages (which monitoring infrastructure may rely on)
@bors
Copy link

bors bot commented Aug 2, 2023

Pull request successfully merged into develop.

Build succeeded!

The publicly hosted instance of bors-ng is deprecated and will go away soon.

If you want to self-host your own instance, instructions are here.
For more help, visit the forum.

If you want to switch to GitHub's built-in merge queue, visit their help page.

@bors bors bot changed the title Move staticcheck step to lint job [Merged by Bors] - Move staticcheck step to lint job Aug 2, 2023
@bors bors bot closed this Aug 2, 2023
@bors bors bot deleted the move-staticcheck-to-lint branch August 2, 2023 14:06
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.

None yet

2 participants