chore(many): Upgrade nx#20740
Conversation
2b8953a to
b7e896c
Compare
vbudhram
left a comment
There was a problem hiding this comment.
@dschom I tested this locally and it runs fine. There does not seem to be a big increase in start up speed? Just the couple questions otw probably good to merge.
###########################################################
# ✅ Services ready in 123s (infrastructure was started earlier)
###########################################################
📍 Verifying started services:
fxa-content-server http://localhost:3030 OK
fxa-profile-server http://localhost:1111/__heartbeat__ OK
fxa-auth-server http://localhost:9000/__heartbeat__ OK
fxa-settings http://localhost:3000/settings/static/js/bundle.js OK
123done http://localhost:8080 OK
All started services responded.
💡 Run 'yarn ports' to see all service ports
###########################################################
|
Leaving a comment here from a slack thread, perhaps this fix can be rolled into this PR: The But, maybe there's a better way to handle this? The short version is just, content-server fails to boot because of an incomplete cache, forcing a full rebuild of the stack for functional-tests. |
de9494a to
05db00f
Compare
Because: - Now that we are node 24, we can use the latest version of NX. - There are supposed perf benefits This Commit: - Upgrades NX, Next, Jest, and other support deps - Updates deprecated Jest assertions - Fixes a couple caching issues - Sets robust nx defaults that work well with our project - Removes NX commands from package.json 'scripts'. They are no longer permitted by nx.
Because
This pull request
Issue that this pull request solves
Closes: FXA-14141
Checklist
Put an
xin the boxes that applyHow to review (Optional)
Screenshots (Optional)
Due to improved caching response, we now see faster service startup times, which are particular noticeable in the CI. For example current state (from randomly selected run):
With this PR's changes:

Other information (Optional)
There are some commands that now just have
exit 0in them. This is because dependencies are now managed by NX. This means you need use NX to run certain common commands. You can still run the 'sub' commands with yarn workspace directly.For example,
yarn workspace fxa-settings buildis nownx run fxa-settings:buildORyarn workspace fxa-settings:build-ts && yarn workspace fxa-settings build-css.