Skip to content

build: share Saucelabs browsers between karma test targets using background Saucelabs daemon and custom karma launcher#49200

Closed
gregmagolan wants to merge 4 commits intoangular:mainfrom
aspect-forks:saucelabs_daemon
Closed

build: share Saucelabs browsers between karma test targets using background Saucelabs daemon and custom karma launcher#49200
gregmagolan wants to merge 4 commits intoangular:mainfrom
aspect-forks:saucelabs_daemon

Conversation

@gregmagolan
Copy link
Contributor

@gregmagolan gregmagolan commented Feb 24, 2023

Picks up the work that @devversion started in the components repo.

Plan is to move this to the dev tools in a follow-up.

@gregmagolan gregmagolan force-pushed the saucelabs_daemon branch 3 times, most recently from c7041de to eb4438a Compare February 24, 2023 22:37
@angular-robot angular-robot bot added the area: build & ci Related the build and CI infrastructure of the project label Feb 24, 2023
@ngbot ngbot bot added this to the Backlog milestone Feb 24, 2023
@gregmagolan gregmagolan changed the title saucelabs daemon build: share Saucelabs browsers between test targets using background saucelabs daemon Feb 24, 2023
@gregmagolan gregmagolan marked this pull request as ready for review February 24, 2023 22:47
@pullapprove pullapprove bot requested a review from josephperrott February 24, 2023 22:47
@gregmagolan gregmagolan changed the title build: share Saucelabs browsers between test targets using background saucelabs daemon build: share Saucelabs browsers between karma test targets using background Saucelabs daemon and custom karma launcher Feb 24, 2023
@pullapprove pullapprove bot requested a review from dylhunn February 24, 2023 22:51
@devversion devversion self-requested a review February 24, 2023 22:54
@gregmagolan gregmagolan force-pushed the saucelabs_daemon branch 3 times, most recently from d7ce225 to 3c4aca3 Compare February 24, 2023 23:01
@gregmagolan gregmagolan force-pushed the saucelabs_daemon branch 6 times, most recently from e90f275 to d61891f Compare February 25, 2023 13:31
@pullapprove pullapprove bot requested a review from JiaLiPassion February 25, 2023 14:22
Copy link
Member

@devversion devversion left a comment

Choose a reason for hiding this comment

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

Overall LGTM- but I'm definitely biased a bit 😄

Next steps would be:

  1. Addressing the feedback & landing this
  2. Making sure all parts are tested, like with the legacy job
  3. Replace the legacy job & delete code, in favor of just the Bazel job

@josephperrott josephperrott removed their request for review March 15, 2023 17:04
@pullapprove pullapprove bot requested a review from dgp1130 March 15, 2023 17:04
Copy link
Contributor

@JiaLiPassion JiaLiPassion left a comment

Choose a reason for hiding this comment

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

LGTM!
Reviewed-for: fw-zones

Copy link
Contributor

@dgp1130 dgp1130 left a comment

Choose a reason for hiding this comment

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

Reviewed-for: code-ownership

I'll defer to others on the actual implementation, but I can at least LGTM the PullApprove change.

Copy link
Member

@devversion devversion left a comment

Choose a reason for hiding this comment

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

LGTM. Couple of more comments, but close. Can you please push feedback as fixup commits?

@gregmagolan gregmagolan requested a review from devversion May 7, 2023 22:38
@gregmagolan gregmagolan force-pushed the saucelabs_daemon branch 2 times, most recently from 9c601fe to e687ce2 Compare May 7, 2023 22:40
@gregmagolan
Copy link
Contributor Author

Overall LGTM- but I'm definitely biased a bit 😄

Next steps would be:

  1. Addressing the feedback & landing this
  2. Making sure all parts are tested, like with the legacy job
  3. Replace the legacy job & delete code, in favor of just the Bazel job

Ready for another pass @devversion. Changes since last review: e687ce2

Copy link
Member

@devversion devversion left a comment

Choose a reason for hiding this comment

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

LGTM. final comments. thanks Greg!

…ground Saucelabs daemon and custom karma launcher

This upgrades the Saucelabs Bazel step on CI to use the more efficient Saucelabs daemon
@gregmagolan gregmagolan force-pushed the saucelabs_daemon branch 3 times, most recently from abcf220 to 4954589 Compare May 14, 2023 03:08
…s.sh script for local testing

more chars to meet the linters requirements
…onal chars to meet commit msg formatting requirements

plus more additional chars here
@gregmagolan
Copy link
Contributor Author

Last CI run with saucelabs tests enabled on PRs with passing tests: https://app.circleci.com/pipelines/github/angular/angular/60980/workflows/049e20fc-1957-45c2-b21c-4b0908577ee5/jobs/1335782

Removing the job from this PR now for landing as enabling it will be in a follow-up

…followup

additional test to make linter happy
# Start the saucelabs-daemon background service in the background. Run directly from the generated
# bash script instead of using bazel run so we get the PID of the node process. Otherwise killing
# the child process in kill_background_service doesn't kill the spawn node process.
cd dist/bin/tools/saucelabs-daemon/background-service/background-service.sh.runfiles/angular
Copy link
Member

Choose a reason for hiding this comment

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

I'm good with the code as is, but it seems a little unexpected to me. the Node process should be a child of the bazel run process, so it should be killed.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It was surprising to me as well. Could use some more investigation in the future.

Copy link
Member

Choose a reason for hiding this comment

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

this is just the convenience script anyway right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, this is not used on CI at all

Copy link
Member

@devversion devversion left a comment

Choose a reason for hiding this comment

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

LGTM

Reviewed-for: global-dev-infra-approvers

@devversion devversion added action: merge The PR is ready for merge by the caretaker target: patch This PR is targeted for the next patch release labels May 15, 2023
@AndrewKushnir
Copy link
Contributor

This PR was merged into the repository by commit d0262cd.

AndrewKushnir pushed a commit that referenced this pull request May 15, 2023
…s.sh script for local testing (#49200)

more chars to meet the linters requirements

PR Close #49200
AndrewKushnir pushed a commit that referenced this pull request May 15, 2023
…onal chars to meet commit msg formatting requirements (#49200)

plus more additional chars here

PR Close #49200
AndrewKushnir pushed a commit that referenced this pull request May 15, 2023
…followup (#49200)

additional test to make linter happy

PR Close #49200
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

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

Labels

action: merge The PR is ready for merge by the caretaker area: build & ci Related the build and CI infrastructure of the project target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants