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

Clean GHA workflow files #27

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Clean GHA workflow files #27

wants to merge 5 commits into from

Conversation

Xopherus
Copy link
Contributor

No description provided.

- letting golangci-lint pull latest even if the code isn't tested
  against that version is causing lint issues.

- fixing the versions will allow us to test both before we allow
  support for newer go versions
@Xopherus Xopherus force-pushed the bump-dependencies branch 2 times, most recently from 5ab72fc to 8900cf1 Compare May 17, 2024 20:00
@Xopherus Xopherus changed the title Bump dependencies Clean GHA workflow files May 17, 2024
@Xopherus Xopherus marked this pull request as ready for review May 20, 2024 13:27
go.mod Outdated
@@ -3,6 +3,10 @@ module github.com/zerofox-oss/go-aws-msg
go 1.12

require (
github.com/aws/aws-sdk-go v1.44.199
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Something in this update breaks tests

Copy link
Contributor Author

Choose a reason for hiding this comment

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

v1.45 is fine

% go get -u github.com/aws/aws-sdk-go@v1.45.28
% go test ./...
?       github.com/zerofox-oss/go-aws-msg       [no test files]
?       github.com/zerofox-oss/go-aws-msg/retryer       [no test files]
ok      github.com/zerofox-oss/go-aws-msg/sns   28.781s
ok      github.com/zerofox-oss/go-aws-msg/sqs   16.996s

v1.46 is also fine

% go get -u github.com/aws/aws-sdk-go@v1.46.7 
% go test ./...                              
?       github.com/zerofox-oss/go-aws-msg       [no test files]
?       github.com/zerofox-oss/go-aws-msg/retryer       [no test files]
ok      github.com/zerofox-oss/go-aws-msg/sns   28.767s
ok      github.com/zerofox-oss/go-aws-msg/sqs   16.984s

v1.47 is where it happens

% go get -u github.com/aws/aws-sdk-go@v1.47.13
% go test ./...          
FAIL
FAIL    github.com/zerofox-oss/go-aws-msg/sqs   16.749s
FAIL

Looking more into this...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

JK, so existing tests on GHA don't show the failure because they aren't running with the -race flag. When I add it, it is broken on master.

Going to repurpose this PR for cleaning up the GHA workflow files.

Copy link
Contributor

@shezadkhan137 shezadkhan137 left a comment

Choose a reason for hiding this comment

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

Nice one @Xopherus

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