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

opensearch-dashboards-functional test repo should always checkout release branch head commit #4057

Closed
gaiksaya opened this issue Sep 21, 2023 · 8 comments · Fixed by #4419
Closed

Comments

@gaiksaya
Copy link
Member

gaiksaya commented Sep 21, 2023

Is your feature request related to a problem? Please describe

opensearch-dashboards-functional test repo is also added to the input manifest list file creating a distribution. This repository only hosts the tests to all the dashboards' plugins and core engine.
The current test process downloads build manifest and checkouts the commit head commit during RC build. See code block

However for past few releases and with new release window model exit criteria we need to fix the failing tests and remove the flaky ones.
Hence, today, if there are changes to the test code in opensearch-dashboards-functional test repo we need to rebuild the release candidate to include those changes. This is because, the way test workflow code is written, we use build manifest to fetch the commit ids to checkout the repository. See code block
Since there is no change in the actual software code shipped to the customer but just the tests and the fact that opensearch-dashboards-functional test repo is not shipped to the custome, re-creating RC is irrelevant.

Describe the solution you'd like

We would like to always checkout the head-commit of the release branch (mentioned in the input manifest). For example, if the release version is 2.10.0 the release branch would be 2.10
This branch can either be grabbed from input manifest (preferred) or regex to major.minor branch to be checkout each time we run tests.

Describe alternatives you've considered

  • Keep what we have
  • Pass branch to run test against as an input paramater

Additional context

No response

@gaiksaya gaiksaya added enhancement New Enhancement untriaged Issues that have not yet been triaged labels Sep 21, 2023
@gaiksaya gaiksaya changed the title opensearch-dashboards-functional test repo should always checkout head commit opensearch-dashboards-functional test repo should always checkout release branch head commit Sep 21, 2023
@gaiksaya
Copy link
Member Author

Would like to get some input from developers here: @kavilla @dblock @amsiglan @kavithacm
Thanks!

@Divyaasm Divyaasm removed the untriaged Issues that have not yet been triaged label Oct 10, 2023
@gaiksaya gaiksaya added the good first issue Good for newcomers label Oct 19, 2023
@gaiksaya
Copy link
Member Author

Hi @tranngocsongtruc, assigning this issue to you. Please go through it and let us know if you have any questions.
Thanks!

@gaiksaya gaiksaya removed the v2.11.0 label Oct 19, 2023
@tranngocsongtruc
Copy link

Hi @tranngocsongtruc, assigning this issue to you. Please go through it and let us know if you have any questions. Thanks!

Please assign me this issue. Thank you

@gaiksaya
Copy link
Member Author

Hi @tranngocsongtruc looks like there is no progress on this issue. Please let us know if you need any help or have questions. Un-assigning you from this issue for now so that it can be picked up by someone else.

@chawinphat
Copy link
Contributor

I'd like to try submit a PR for this.

@chawinphat
Copy link
Contributor

chawinphat commented Dec 1, 2023

@gaiksaya I talked to @peterzhu1992 at office hours this week and he suggested that grabbing the ref from the input manifest wouldn't work since the test does not read from the input manifest.

An alternative suggestion he gave was to add a new parameter that accepts either a ref or a sha256 hash pointing to a commit. This would let users checkout whichever commit they want, including their own branches. Furthermore, the default behavior would still be to grab the commit from the build manifest.

@gaiksaya
Copy link
Member Author

gaiksaya commented Dec 8, 2023

An alternative suggestion he gave was to add a new parameter that accepts either a ref or a sha256 hash pointing to a commit. This would let users checkout whichever commit they want, including their own branches. Furthermore, the default behavior would still be to grab the commit from the build manifest.

Sounds like a plan. Makes sense to keep the default behavior same as it is right now but it a non-null value is provided, it should be able to check that ref out. One correction, you still cannot use the fork/own branches since the github repo_url comes from build manifest but whatever is in repo_url is in build manifest, many ref should be good to use.

@peterzhuamazon
Copy link
Member

peterzhuamazon commented Feb 7, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment