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

Implemented Cache for Unreleased OpenSearch images #154

Merged

Conversation

nhtruong
Copy link
Collaborator

@nhtruong nhtruong commented Mar 6, 2023

Description

Reduce unreleased integration tests workflow runtime

Issues Resolved

closes #144

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: Theo Truong <theotr@amazon.com>
VachaShah
VachaShah previously approved these changes Mar 6, 2023
#
Signed-off-by: Theo Truong <theotr@amazon.com>
- name: opensearch-api
run: cd opensearch-api && bundle exec rake test:spec
working-directory: ruby-client/opensearch-api
run: bundle exec rake test:spec
Copy link
Member

Choose a reason for hiding this comment

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

For another time, we should probably make this test:all as well.

Copy link
Collaborator Author

@nhtruong nhtruong Mar 8, 2023

Choose a reason for hiding this comment

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

test:all will also include unit tests with mocked transport layer, which doesn't hit the OS cluster that we setup for each Matrix entry. Wouldn't that be redundant for this workflow where we focus on integration tests of different unreleased versions of OS?

Copy link
Member

Choose a reason for hiding this comment

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

It would. I still think it's mental overhead, maybe there's a better solution. Either way it's NBD.

@@ -53,14 +87,32 @@ jobs:
ruby -v
rake bundle:clean
rake bundle:install
working-directory: ruby-client

- name: opensearch-ruby
Copy link
Member

Choose a reason for hiding this comment

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

For another time, make we can have a top level Rakefile to build and test, since I don't think we want gemspecs that are wildly incompatible across these gems anyway?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We have to working-directory: ruby-client because the client was cloned into ruby-client folder to avoid collision with the opensearch repo that is also being pulled into the same machine. We do have a top level Rakefile and Gemfile.

@dblock dblock requested a review from VachaShah March 7, 2023 22:42
@harshavamsi harshavamsi merged commit da913e2 into opensearch-project:main Mar 13, 2023
@nhtruong nhtruong deleted the unrleased_integration_speed branch February 6, 2025 17:20
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.

Improve the time taken by Github Actions on pull requests
4 participants