-
-
Notifications
You must be signed in to change notification settings - Fork 69
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
workflows/tests: use container
#923
Conversation
566044b
to
51ce17d
Compare
28c82d3
to
e5e795e
Compare
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.
Seems much better (if you can get it working)!
Not optimistic 🙃 |
setup-ruby is not supported in containers. The expectation is you install it yourself. The reason being that containers won't necessarily match the host OS, and the toolcache is from the host OS. |
I think the easiest solution is to split the rspec stuff into their own job without a container. No |
Agreed 👍🏻 |
e5e795e
to
e23a214
Compare
- uses: actions/checkout@main | ||
|
||
- name: Set up Ruby | ||
if: runner.os == 'Linux' |
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: runner.os == 'Linux' |
as this only runs on Linux
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.
Not anymore! I thought it would be less confusing if all RSpec tests ran inside only the rspec
job, instead of a weird Linux-macOS split. But I can change it back to making the rspec
job Linux-only if desired.
3c1776a
to
87bf309
Compare
This should help simplify this workflow a bit.
2942999
to
6c842fd
Compare
We need `setup-ruby` to do this, but this isn't supported inside containers. As a workaround, let's run the RSpec tests in a separate job that does not use a container.
6c842fd
to
ec2da07
Compare
Seems to be erroring at homebrew-test-bot/lib/tests/formulae.rb Line 333 in 7d0f680
on Linux. Not entirely clear on why... |
@carlocab Need to run it from another directory so it's not trying to create a symlink across multiple devices/mount points. |
This is needed to avoid Error: Invalid cross-device link @ rb_file_s_link - (./testbottest--0.1.x86_64_linux.bottle.1.tar.gz, /github/home/.cache/Homebrew/downloads/9688e5b8937a63085d076f920b62cbb0139525ccca316ad61fb81e9e314a9382--testbottest--0.1.x86_64_linux.bottle.1.tar.gz)
Thanks; fixed now. Required tests need updating though. |
Thanks again @carlocab! |
This should help simplify this workflow a bit.