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

Move CI to GHA; update supported Ruby, ddtrace, Redis versions [DEM-331] #72

Merged
merged 16 commits into from
Nov 8, 2023

Conversation

kraila
Copy link
Contributor

@kraila kraila commented Oct 25, 2023

What did we change?

  • BREAKING: Drop support for Ruby 2.6 and 2.7 as they are past end of life
  • BREAKING: Drop support for ddtrace <= 1.8.0
  • BREAKING: Drop support for Redis 5.x
  • (internal) Move CI to Github workflows

Why are we doing this?

Moving to Github workflows for CI unearthed a number of incompatibilities across versions of ruby, ddtrace, and redis. As some of these were past EOL, we (Demand Scalability team) decided to drop support for them and prepare to release a new gem version as well.

I've also added testing through Redis 7 and Postgres 16, as this did not need any additional changes and ensures the gem will be tested against the most recent versions of both.

How was it tested?

  • Specs
  • Locally
  • Staging

@kraila kraila force-pushed the kr/gha-ci branch 2 times, most recently from 5260b41 to 0ae0d14 Compare October 25, 2023 21:48
.github/workflows/ci.yml Outdated Show resolved Hide resolved
.github/workflows/ci.yml Outdated Show resolved Hide resolved
@kraila kraila force-pushed the kr/gha-ci branch 5 times, most recently from f4b4219 to fd38f2e Compare November 6, 2023 21:37
@kraila kraila changed the title Move CI to GHA workflow Move CI to GHA workflow & update supported Ruby, ddtrace, Redis, Postgres versions Nov 6, 2023
@kraila kraila marked this pull request as ready for review November 6, 2023 21:53
@kraila kraila requested a review from a team November 6, 2023 21:53
@kraila kraila changed the title Move CI to GHA workflow & update supported Ruby, ddtrace, Redis, Postgres versions Move CI to GHA; update supported Ruby, ddtrace, Redis, Postgres versions [DEM-331] Nov 6, 2023
.github/workflows/ci.yml Outdated Show resolved Hide resolved
sidekiq_publisher.gemspec Outdated Show resolved Hide resolved
spec/sidekiq_publisher/datadog_apm_spec.rb Outdated Show resolved Hide resolved
spec/sidekiq_publisher/datadog_apm_spec.rb Outdated Show resolved Hide resolved
Comment on lines 42 to 43
postgres: [ '12', '13', '14', '15', '16' ]
redis: [ '6', '7' ]

Choose a reason for hiding this comment

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

Curious if you think we need to test all the PG and Redis versions. I don't think we were before. Are we using anything beyond normal PG queries or Redis commands? Either way I think we can probably drop PG 12 and 13 at least, since the monolith along with other projects being on 14 now.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Tbh this is almost certainly overkill; I was on a bit of a "Test All The Things" spree yesterday, given how many weird version issues we ran into with moving this project to GHA in the first place, but you make a good point re: redis and postgres queries

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think I will tell the CI workflow to use latest of each and that way we'll see on any new PR if something breaks when one of the images gets updates

@kraila kraila changed the title Move CI to GHA; update supported Ruby, ddtrace, Redis, Postgres versions [DEM-331] Move CI to GHA; update supported Ruby, ddtrace, Redis versions [DEM-331] Nov 7, 2023
CHANGELOG.md Outdated
@@ -1,6 +1,10 @@
# sidekiq_publisher

## (Unreleased)
## (unreleased; 3.0.0)
Copy link

Choose a reason for hiding this comment

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

Do we have to change this after we push out the actual release? Just curious why we're labeling this as "unreleased"?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I was planning to one final update to this PR to remove that -- good question

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I may as well do that now!

Copy link

@j-sm-n j-sm-n left a comment

Choose a reason for hiding this comment

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

Just one question, but everything looks good to me! Thanks for tackling this!

@kraila kraila merged commit e389e6f into main Nov 8, 2023
10 checks passed
@kraila kraila deleted the kr/gha-ci branch November 8, 2023 15:17
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