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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add context #304

Merged
merged 1 commit into from
Oct 9, 2024
Merged

add context #304

merged 1 commit into from
Oct 9, 2024

Conversation

jmank88
Copy link
Contributor

@jmank88 jmank88 commented Jan 12, 2024

@jmank88 jmank88 force-pushed the BCF-2887-context-propagation branch 3 times, most recently from 1dd41d1 to 88cfd02 Compare January 14, 2024 14:08
@jmank88
Copy link
Contributor Author

jmank88 commented Jan 14, 2024

The linter is very confused. I tried updating to a new version of golangci-lint and using the regular one instead of our custom action, but it is still failing the same way 🤔

@jmank88 jmank88 force-pushed the BCF-2887-context-propagation branch from 88cfd02 to 95c1ac3 Compare January 16, 2024 19:20
@jmank88 jmank88 force-pushed the BCF-2887-context-propagation branch 2 times, most recently from 36b1bd8 to 88ec42a Compare February 11, 2024 01:04
@jmank88 jmank88 force-pushed the BCF-2887-context-propagation branch 2 times, most recently from f85e998 to ea2dc06 Compare March 13, 2024 19:22
@jmank88 jmank88 force-pushed the BCF-2887-context-propagation branch 2 times, most recently from 67354bd to 57aca69 Compare March 23, 2024 11:32
@@ -28,11 +24,12 @@ require (
github.com/beorn7/perks v1.0.1 // indirect
github.com/bits-and-blooms/bitset v1.10.0 // indirect
github.com/btcsuite/btcd/btcec/v2 v2.3.2 // indirect
github.com/btcsuite/btcd/chaincfg/chainhash v1.0.3 // indirect
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Including this line prevents the ambiguous package problem that the btcd replace was addressing.

go.mod Outdated
@@ -2,24 +2,20 @@ module github.com/smartcontractkit/chainlink-automation

go 1.21

replace (
github.com/btcsuite/btcd => github.com/btcsuite/btcd v0.23.3
golang/github.com/gogo/protobuf => golang/github.com/gogo/protobuf v1.3.3
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The protobuf module was unused.

go.mod Outdated
golang.org/x/tools v0.15.0 // indirect
google.golang.org/protobuf v1.31.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
rsc.io/tmplfunc v0.0.3 // indirect
)

exclude golang/github.com/influxdata/influxdb v1.8.3
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is unused

@jmank88 jmank88 force-pushed the BCF-2887-context-propagation branch 2 times, most recently from eb3df23 to 2240834 Compare March 24, 2024 18:38
@jmank88 jmank88 marked this pull request as ready for review March 24, 2024 18:38
@jmank88 jmank88 marked this pull request as draft March 27, 2024 19:39
@jmank88 jmank88 force-pushed the BCF-2887-context-propagation branch 2 times, most recently from 5583a02 to 1ba5b9d Compare April 25, 2024 15:38
@jmank88 jmank88 force-pushed the BCF-2887-context-propagation branch 3 times, most recently from f38254c to 4376363 Compare August 1, 2024 16:35
@jmank88 jmank88 force-pushed the BCF-2887-context-propagation branch from 4376363 to 28291d2 Compare August 5, 2024 12:41
@jmank88 jmank88 force-pushed the BCF-2887-context-propagation branch 2 times, most recently from c651a5b to 9746144 Compare August 19, 2024 23:11
@jmank88 jmank88 force-pushed the BCF-2887-context-propagation branch 2 times, most recently from 84f4240 to 2458875 Compare August 30, 2024 22:31
@jmank88 jmank88 force-pushed the BCF-2887-context-propagation branch 2 times, most recently from d5a4d24 to 599dee4 Compare September 24, 2024 12:29
@jmank88 jmank88 force-pushed the BCF-2887-context-propagation branch 2 times, most recently from 0c951d2 to cf4560b Compare October 7, 2024 19:16
@jmank88 jmank88 force-pushed the BCF-2887-context-propagation branch 2 times, most recently from b75760c to 88c427d Compare October 8, 2024 17:45
@@ -49,7 +49,7 @@ jobs:
go-version-file: "go.mod"

- name: Run Unit Tests
run: go test -v ./... -coverpkg=./... -coverprofile=coverage.txt
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Dropping -v prints only relevant logs, leading to a succinct summary of passing packages, with full logs only for failing tests.

@jmank88 jmank88 force-pushed the BCF-2887-context-propagation branch from 88c427d to d7be4e4 Compare October 9, 2024 12:51
@jmank88 jmank88 marked this pull request as ready for review October 9, 2024 12:58
@jmank88 jmank88 merged commit 78acf19 into main Oct 9, 2024
8 checks passed
@jmank88 jmank88 deleted the BCF-2887-context-propagation branch October 9, 2024 15:29
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.

3 participants