Skip to content

build: enable shard_count for some jasmine tests that have many specs - #29196

Closed
alexeagle wants to merge 1 commit into
angular:masterfrom
alexeagle:sharding
Closed

alexeagle wants to merge 1 commit into
angular:masterfrom
alexeagle:sharding

Conversation

@alexeagle

Copy link
Copy Markdown
Contributor

This partitions the specs across multiple processes so they run in parallel.
I chose the value 4 so that we don't spin up a lot of processes on a machine with few cores (doesn't everyone on angular team have at least 8 now?)

Marketing: https://twitter.com/Jakeherringbone/status/1104174841320501249

before //packages/compiler-cli/test/compliance:compliance                       PASSED in 37.0s
after //packages/compiler-cli/test/compliance:compliance                       PASSED in 14.3s
 Stats over 4 runs: max = 14.3s, min = 8.7s, avg = 10.4s, dev = 2.3s

//packages/compiler-cli/test/ngtsc:ngtsc                                 PASSED in 31.5s
->
//packages/compiler-cli/test/ngtsc:ngtsc                                 PASSED in 10.6s
 Stats over 4 runs: max = 10.6s, min = 9.2s, avg = 9.8s, dev = 0.5s

just for fun, since my machine has 36 cores:
//packages/compiler-cli/test/ngtsc:ngtsc                                 PASSED in 6.2s
 Stats over 30 runs: max = 6.2s, min = 3.0s, avg = 4.1s, dev = 0.7s

@alexeagle
alexeagle requested review from a team and alxhub March 9, 2019 00:39

@alxhub alxhub left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

+1 for fw-compiler

@kara kara added the action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews label Mar 9, 2019
@gregmagolan

Copy link
Copy Markdown
Contributor

Hmmm.

TIMEOUT: //packages/bazel/test/protractor-utils:protractor_utils_tests (Summary)
      /home/circleci/.cache/bazel/_bazel_circleci/9ce5c2144ecf75d11717c0aa41e45a8d/execroot/angular/bazel-out/k8-fastbuild/testlogs/packages/bazel/test/protractor-utils/protractor_utils_tests/test_attempts/attempt_1.log
      /home/circleci/.cache/bazel/_bazel_circleci/9ce5c2144ecf75d11717c0aa41e45a8d/execroot/angular/bazel-out/k8-fastbuild/testlogs/packages/bazel/test/protractor-utils/protractor_utils_tests/test.log
INFO: From Testing //packages/bazel/test/protractor-utils:protractor_utils_tests:
==================== Test output for //packages/bazel/test/protractor-utils:protractor_utils_tests:
Randomized with seed 80587
Started
Server running on port: 34686
.


1 spec, 0 failures
Finished in 0.521 seconds
Randomized with seed 80587 (jasmine --random=true --seed=80587)
================================================================================
==================== Test output for //packages/bazel/test/protractor-utils:protractor_utils_tests:
Randomized with seed 57685
Started
Server running on port: 39585
.


1 spec, 0 failures
Finished in 0.526 seconds
Randomized with seed 57685 (jasmine --random=true --seed=57685)
================================================================================

I'll rerun it to see if its a flake

@alexeagle

Copy link
Copy Markdown
Contributor Author

I think this needs Greg's PR #29210 first

@gregmagolan

Copy link
Copy Markdown
Contributor

I suspect it will work with 0.27.4 as that fixes the failure here. I think the issues with #29210 are related to the changes to rollup_bundle.

@kara kara added the area: build & ci Related the build and CI infrastructure of the project label Mar 12, 2019
@ngbot ngbot Bot added this to the needsTriage milestone Mar 12, 2019
@gregmagolan

Copy link
Copy Markdown
Contributor

#29210 landed. master is now on nodejs rules 0.27.4 so you should be good now after a rebase.

This partitions the spects across multiple processes so they run in parallel.
@alexeagle alexeagle added action: merge The PR is ready for merge by the caretaker target: major This PR is targeted for the next major release and removed action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews labels Mar 14, 2019

@gregmagolan gregmagolan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@matsko matsko closed this in a5c747f Mar 14, 2019
alexeagle added a commit to alexeagle/angular that referenced this pull request Mar 15, 2019
alexeagle added a commit to alexeagle/angular that referenced this pull request Mar 15, 2019
matsko pushed a commit that referenced this pull request Mar 15, 2019
wKoza pushed a commit to wKoza/angular that referenced this pull request Apr 17, 2019
…angular#29196)

This partitions the spects across multiple processes so they run in parallel.

PR Close angular#29196
wKoza pushed a commit to wKoza/angular that referenced this pull request Apr 17, 2019
@angular-automatic-lock-bot

Copy link
Copy Markdown

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.

@angular-automatic-lock-bot angular-automatic-lock-bot Bot locked and limited conversation to collaborators Sep 14, 2019
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 cla: yes target: major This PR is targeted for the next major release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants