-
Notifications
You must be signed in to change notification settings - Fork 8
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
Making CI tests only on push #64
Making CI tests only on push #64
Conversation
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.
/lgtm
cbbbb1f
to
d4dae1f
Compare
shouldn't we try to run the tests on any given pr before its merged to know if its a breaking change? |
Ideally yes. But the problem is github secrets are not available for fork PRs which will try to fetch our QE ES server credentials while executing the CI tests. Only main repo has access to secrets, which is a limitation with github. So the idea behind this change is to get tests triggered after a merge which will help us detect issues atleast before we cut a release solving our purpose. |
@vishnuchalla thoughts on maybe just loading some data into the public es instance that we wouldn't have to use a secret but could still run pr based tests |
Yeah, thought about it too. But the issue is we have to hardcode its URL in the tests which will make it available to the internet. So literally anyone will be able to use our ES instance and we will be charged for it. |
Thoughts on adding in documentation somewhere on how to run the github tests locally. or even completely remove them as to run in github/actions and just have them documented to run before opening a pr |
+1 I wonder instead of trying to use live data, we just store the json in a var to test? instead of querying ES, we just load the json, so we know the expected outcome? @vishnuchalla / @shashank-boyapally - Could we close out on this? |
The idea was to have functional tests that are close to the ones that execute in our CI. So I think we should keep them as is but have clear documentation on how to trigger github actions for the ease of contributors. Having the data input mocked as json will transition these tests into unit based rather than functionality taking us far away from our purpose. |
I think we can either add this in the readme on how to test before pushing the changes or have a contributing.md, either way works.. |
Orion shouldn't need to functionally test connectivity to ES / OpenSearch that is more of a fmatch function. |
Its not about what orion has, these tests are all about what orion does in an end-to-end workflow. |
sure - the complexity is verifying the end to end -- however since we have limitations on connectivity for each PR either Having the CI run at push into main IMHO lacks why we have a CI - because if identifies a breaking change, we will have to revert vs testing IN the PR. |
d4dae1f
to
64a6734
Compare
Signed-off-by: Vishnu Challa <vchalla@vchalla-thinkpadp1gen2.rmtusnc.csb>
64a6734
to
ce3ddec
Compare
Updated with appropriate docs as discussed offline. PTAL 👋🏼 |
Merging! |
Type of change
Description
Making CI tests to run only on push because they use secrets that work only on the mainstream repo.
Checklist before requesting a review
Testing
Will be tested against every PR after merge into main branch.