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

fix(ruby): Require shared lib from correct subdir #53

Merged
merged 2 commits into from
Oct 22, 2024

Conversation

felipecsl
Copy link
Member

rake-compiler puts the shared lib in a subdirectory of eppo_client when we build with multiple ruby target versions, so we need to load the lib from the correct subdir.

Again, shamelessly stolen from wasmtime.

Also fixed the CI step so it runs properly (it wasnt)

@felipecsl felipecsl requested a review from rasendubi October 22, 2024 00:54
Copy link
Member

@leoromanovsky leoromanovsky left a comment

Choose a reason for hiding this comment

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

Any steps to demonstrate a more favorable build?

* Run `cargo update --workspace --verbose` to update `Cargo.lock` and `Gemfile.lock`.
* Bump versions in `ruby-sdk/lib/eppo_client/version.rb` and `ruby-sdk/ext/eppo_client/Cargo.toml`
* Run `cargo update --workspace --verbose` to update `Cargo.lock`
* Run `bundle` to update `Gemfile.lock`
Copy link
Member

Choose a reason for hiding this comment

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

The developer needs to do this and check on it?

Copy link
Member Author

Choose a reason for hiding this comment

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

correct. right now these are manual steps but we can certainly automate this in the future

@felipecsl
Copy link
Member Author

Any steps to demonstrate a more favorable build?

The new Smoke gem install should fail now upon cutting a new release if there are any issues 🤞🏽

@felipecsl felipecsl merged commit e5c725f into main Oct 22, 2024
26 checks passed
@felipecsl felipecsl deleted the fix--ruby-load-path branch October 22, 2024 09:00
@felipecsl
Copy link
Member Author

Looks like it did indeed fail https://github.com/Eppo-exp/rust-sdk/actions/runs/11456821053/job/31875784240 but looks like a false negative, just forgot to add quotes around the grep argument

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.

2 participants