Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Add opnode makefile, lints, and go1.18 #272

Merged
merged 9 commits into from
Mar 22, 2022
Merged

Add opnode makefile, lints, and go1.18 #272

merged 9 commits into from
Mar 22, 2022

Conversation

trianglesphere
Copy link
Contributor

@trianglesphere trianglesphere commented Mar 22, 2022

Description
This does the following:

  • Add a makefile to the opnode package
  • Add the misspell lint to the makefiles, docs, and CI
  • Use the supplied git versions in the opnode
  • Quiet logging during opnode tests
  • Require go 1.18

Notes

The misspell lint is good, but not perfect. The only false positive that I found was it was trying to correct strat to start.

Metadata

Primarily for easier building and linting.
@trianglesphere trianglesphere marked this pull request as ready for review March 22, 2022 17:45
@trianglesphere trianglesphere marked this pull request as draft March 22, 2022 17:52
The misspell linter was trying to correct `strat` to `start`. This
is typically correct, but not in this instance.
This enables the nice test ouput with `go test -v` that lists
each test without polluting the output with logs from passing tests.
Required for go version 1.18
@trianglesphere trianglesphere marked this pull request as ready for review March 22, 2022 18:14
@trianglesphere trianglesphere changed the title Jg/add makefile Add opnode makefile, lints, and go1.18 Mar 22, 2022
Copy link
Collaborator

@protolambda protolambda left a comment

Choose a reason for hiding this comment

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

Very nice, looking forward to start using Go fuzzing. Don't forget to update the CI Go version though.

.github/workflows/go-ci.yml Show resolved Hide resolved
@codecov-commenter
Copy link

Codecov Report

Merging #272 (e7e32ed) into main (dd07121) will decrease coverage by 0.11%.
The diff coverage is 40.00%.

❗ Current head e7e32ed differs from pull request most recent head 8ac860e. Consider uploading reports for the commit 8ac860e to get more accurate results

@@            Coverage Diff             @@
##             main     #272      +/-   ##
==========================================
- Coverage   55.32%   55.20%   -0.12%     
==========================================
  Files          39       39              
  Lines        2856     2862       +6     
==========================================
  Hits         1580     1580              
- Misses       1117     1121       +4     
- Partials      159      161       +2     
Impacted Files Coverage Δ
l2os/l2_output_submitter.go 52.13% <ø> (ø)
opnode/cmd/main.go 8.45% <0.00%> (-0.79%) ⬇️
l2os/txmgr/send_state.go 96.36% <100.00%> (ø)
l2os/txmgr/txmgr.go 91.25% <100.00%> (ø)
opnode/backoff/operation.go 88.88% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update dd07121...8ac860e. Read the comment docs.

Copy link
Collaborator

@protolambda protolambda left a comment

Choose a reason for hiding this comment

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

LGTM

@protolambda protolambda merged commit 96915eb into main Mar 22, 2022
@protolambda protolambda deleted the jg/add_makefile branch March 22, 2022 20:29
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Consolidate Makefiles
3 participants