-
Notifications
You must be signed in to change notification settings - Fork 18
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
test: try running tests on github action #341
Conversation
0107023
to
2b98157
Compare
bc611bd
to
77c141a
Compare
For some reason, gh action is not triggered |
Yes, this is an unfortunate behaviour. When the repository never had a GH actions workflow before. Will create one, and let's try to get it merged. |
I can see GH workflow working now, thank you, @reakaleek! What do you suggest we proceed from here? I did the bare minimum of moving running tests to gh workflows, but further insight from the robot teams sounds great as there are certain things need more attention, for instance, do we want to keep all the extra feature we were getting from Jenkins, such as test result summary or alerting etc. also the tests are failing should be fixed by #346 |
Glad it works now! Yes, when migrating to GH Actions we want to keep all behaviours the same if possible.
If we are okay with missing this functionality temporarily you can go ahead with this one and only apply what is important for you. As I'm currently working mainly on Jenkins to GHActions migrations, I could prioritize this repo and implement/migrate the missing pieces after you merged this. Note: Looking at my migration spreadsheet I can see the migration for this repo is actually undecided yet (according to the sheet) @cachedout / @elastic/observablt-ci WDYT? |
Thanks, @reakaleek!
We are not running tests when releasing even now(see comment here), so this is not a new behavior. |
7de7b35
to
5314b5a
Compare
995e929
to
b6883cc
Compare
@@ -43,108 +43,6 @@ pipeline { | |||
} | |||
} | |||
} | |||
stage('Install') { |
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.
Removing Install, build, and lint stages too, as lint
is moved to test.yml and Release stage does npm ci
and npm run build
within its stage.
Co-authored-by: Victor Martinez <victormartinezrubio@gmail.com>
b6883cc
to
bd9a848
Compare
Also I've double-checked that the release CI is unaffected and successfully release the apps. |
Skipping Post-FF Testing as this feature is integral to the merge process and if there were problems we'd see/remediate them as part of normal day-to-day workflow. |
Summary
Use github actions for
Test
step to simplify the process and reduce the maintenance burdenImplementation details
We have had many issues with the testing environment in the past year, often caused by npm changing its behaviour or when using newer node versions (some contexts can be found here )
Having the permission issue #338 recently, and the possible fix #339 causing another issue affecting test results, I wanted to explore the github actions for running tests. I've tried to run the tests on macos(this let us bypass the setup for
Xvfb
) and It seems quite promising. Here's the impact I've found when opting in for github actions:Pros:
package-lock.json
changes) so it can reduce the time for checks significantlyCons:
Next Steps
If we are happy to go forward with github actions, we need to rearrange the Jenkins file and clean-up related scripts, it will be used mainly for the release pipelines(currently release pipeline is triggered when a tag is pushed).
How to validate this change
push to this branch