-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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 Ruby 3.1 to Circle tests #2129
Merged
+24
−8
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,11 @@ | ||
default: &default | ||
secret_key_base: <%= ENV["SECRET_KEY_BASE"] %> | ||
|
||
development: | ||
<<: *default | ||
secret_key_base: 1a022e4f335d24af3d6bd622b9daef5a44808afbe16d4f1c8bed03675ab91ecd9c76ddc1a30f3fbb668b02c00abcba2ecc3714c95943b8f4af86289a2a46d5e1 | ||
|
||
test: | ||
secret_key_base: test_secret | ||
|
||
staging: | ||
<<: *default | ||
secret_key_base: <%= ENV["SECRET_KEY_BASE"] %> | ||
|
||
production: | ||
<<: *default | ||
secret_key_base: <%= ENV["SECRET_KEY_BASE"] %> |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need the browsers image here, or is the standard
ruby:3.1
with the orb enough?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I understand correctly, the
browsers
variant supplies the dependencies needed for the orb to work:https://circleci.com/developer/images/image/cimg/ruby#browsers
But I'll push up a quick test commit just to confirm.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nickcharlton I pushed a commit with
cimg/ruby:3.1
and it seems to work just fine. And looking at the 4 test runs of the previous commit vs the 4 test runs of that commit and it doesn't seem to take significantly longer to install chrome or anything like that oncimg/ruby:3.1
afaict. Shall we just go with this? I'm also opening a ticket w/ CircleCI to ask them what the-browsers
image is needed for. Do you read that blurb from them differently? I'm not sure why one would need it.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, actually I forgot for a bit that this PR only uses
cimg/ruby
in the 3.1 tests. And there is a difference of 7s (with-browsers
) vs 23s (without `-browsers) for "Install Google Chrome". We could try testing each version a few more times to confirm the speed difference. I've also opened that ticket w/ Circle to confirm.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nickcharlton I went ahead and did some speed testing and it does seem like the difference is probably that some stuff is preinstalled on
-browsers
, which makes the browser installation faster. However, I'd bet it probably makes the image download longer also.What I saw:
Lmk what you think and which you prefer. Circle has enough variability in timing that it's hard to really get a firm idea of things 😕
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh I see. Right, it is intentional on Circle's part. I didn't think to even look at that, so thanks for highlighting it.
I think we should go with what they recommend — it's a pity your table shows how variable the runs are (thanks for doing that!).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 sounds good. I've force-pushed to remove the commit that tried out the non-
-browsers
variant.