Skip to content

Conversation

devversion
Copy link
Member

Patch port of #29371

@angular-robot angular-robot bot added the area: build & ci Related the build and CI infrastructure of the project label Jan 17, 2025
@devversion devversion added target: patch This PR is targeted for the next patch release action: merge The PR is ready for merge by the caretaker and removed area: build & ci Related the build and CI infrastructure of the project labels Jan 17, 2025
@devversion devversion marked this pull request as ready for review January 17, 2025 14:03
@devversion devversion force-pushed the more-jasmine-tests-patch branch from 472b5ec to 1205543 Compare January 17, 2025 14:13
@angular-robot angular-robot bot added the area: build & ci Related the build and CI infrastructure of the project label Jan 17, 2025
@devversion devversion requested a review from clydin January 17, 2025 15:30
We'll be using `workspace:*` protocol links to link first-party packages
together in the pnpm workspace. For this reason, we need to make sure
they are properly replaced in `package.json` files, before packaging.
Integrates `@angular/cli` into the pnpm workspace and wires up the
native `rules_js` rules.

One nice benefits that highlight here:

- `resolve` runtime dependency is only installed in the CLI folder, and
  we can pull it from there. --> Locally managed deps! :yay:
Migrates `@angular-devkit/core` jasmine rules to the native `rules_js`
variant.
Migrates `@angular-devkit/schematics` jasmine rules to the
native `rules_js` variant.

As part of this commit, we are performing a few adjustments that we've
discussed as preparation for this migration:

- cross package imports are always using the module name
- inside package imports are always using relative imports, matching
  existing tests, fixing a few outliers.
Migrates `@angular-devkit/architect-cli` jasmine rules to the
native `rules_js` variant.
`rules_js` doesn't integrate source maps by default, so we are enabling it by default via `defaults2.bzl`.
The strategy tests are extremely time-sensitive with regards to the RxJS
job logic executing, and the tests currently rely on `setImmediate` to
flush/trigger job execution. This seems to be rather unstable via Remote
execution, and sensitive to changes with the execution (e.g. injecting
source map support or not), so we are stabilizing the tests further by
having better time delays for job execution, and by using `setTimeout`
for flushing. This seems very sufficient.
@devversion devversion force-pushed the more-jasmine-tests-patch branch from 1205543 to 1901c3e Compare January 20, 2025 11:59
@alan-agius4 alan-agius4 removed the request for review from clydin January 20, 2025 13:29
@alan-agius4 alan-agius4 merged commit 3ce086a into angular:19.1.x Jan 20, 2025
29 of 30 checks passed
@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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Feb 20, 2025
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.

2 participants