290 Commits

Author SHA1 Message Date
Jason Jean
f0e419b04f
chore(repo): update pnpm to v9.8 (#27637)
<!-- Please make sure you have read the submission guidelines before
posting an PR -->
<!--
https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr
-->

<!-- Please make sure that your commit message follows our format -->
<!-- Example: `fix(nx): must begin with lowercase` -->

<!-- If this is a particularly complex change or feature addition, you
can request a dedicated Nx release for this pull request branch. Mention
someone from the Nx team or the `@nrwl/nx-pipelines-reviewers` and they
will confirm if the PR warrants its own release for testing purposes,
and generate it for you if appropriate. -->

## Current Behavior
<!-- This is the behavior we have today -->

This repo uses pnpm `9.2.0`

## Expected Behavior
<!-- This is the behavior we should expect with the changes in this PR
-->

This repo uses pnpm `9.8.0`

## Related Issue(s)
<!-- Please link the issue being fixed so it gets closed when this is
merged. -->

Fixes #
2024-08-26 13:31:07 -04:00
Jason Jean
088a95b7e5
chore(repo): update to pnpm 9 (#27624)
<!-- Please make sure you have read the submission guidelines before
posting an PR -->
<!--
https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr
-->

<!-- Please make sure that your commit message follows our format -->
<!-- Example: `fix(nx): must begin with lowercase` -->

<!-- If this is a particularly complex change or feature addition, you
can request a dedicated Nx release for this pull request branch. Mention
someone from the Nx team or the `@nrwl/nx-pipelines-reviewers` and they
will confirm if the PR warrants its own release for testing purposes,
and generate it for you if appropriate. -->

## Current Behavior
<!-- This is the behavior we have today -->

This repo uses pnpm v8

## Expected Behavior
<!-- This is the behavior we should expect with the changes in this PR
-->

This repo uses pnpm v9

## Related Issue(s)
<!-- Please link the issue being fixed so it gets closed when this is
merged. -->

Fixes #

---------

Co-authored-by: “JamesHenry” <james@henry.sc>
2024-08-23 16:02:00 -04:00
Jason Jean
cade5bc671
feat(core): add sqlite db for nx (#26891)
## Current Behavior
<!-- This is the behavior we have today -->

Nx has some persistent storage managed as separate files on disk. For
example, the local cache queries the file system for existing
directories.

## Expected Behavior
<!-- This is the behavior we should expect with the changes in this PR
-->

Nx has a new more performant persistent storage via SQLite database. The
db is used for the following purposes now:
1. Storing task details of different hashes (This serves as reference
for other tables to get more information about a hash)
2. Storing a record of cached artifacts
3. Storing a history of tasks which have run

The cache in particular has the following benefits:
* It's faster, YMMV but it's definitely faster because it writes and
reads less from disk.
* It's able to track access of different cached artifacts
* It purges cached artifacts more intelligently by looking at when
artifacts were last ACCESSED rather than when they were CREATED. This
will also eliminate cache misses due to the cached artifacts being
purged simply because they were CREATED.

## Related Issue(s)
<!-- Please link the issue being fixed so it gets closed when this is
merged. -->

Fixes #
2024-08-21 13:12:20 -04:00
Jason Jean
37f0ccaa20
chore(repo): update freebsd publish to run on ubuntu and use latest f… (#26924)
…reebsd to fix issue

<!-- Please make sure you have read the submission guidelines before
posting an PR -->
<!--
https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr
-->

<!-- Please make sure that your commit message follows our format -->
<!-- Example: `fix(nx): must begin with lowercase` -->

<!-- If this is a particularly complex change or feature addition, you
can request a dedicated Nx release for this pull request branch. Mention
someone from the Nx team or the `@nrwl/nx-pipelines-reviewers` and they
will confirm if the PR warrants its own release for testing purposes,
and generate it for you if appropriate. -->

## Current Behavior
<!-- This is the behavior we have today -->

There's an issue with running `npm` when building on freebsd

## Expected Behavior
<!-- This is the behavior we should expect with the changes in this PR
-->

There are no issues building on freebsd

## Related Issue(s)
<!-- Please link the issue being fixed so it gets closed when this is
merged. -->

Fixes #
2024-07-12 15:26:09 -05:00
LongYinan
981eb30a0f
feat(core): support compile to wasi target (#22870)
This pull request is trying to add wasm32-wasi target support for the
nx/native

To test the build, you can run the following commands:

- `rustup target add wasm32-wasip1-threads`
- `pnpm exec napi build --release --platform --package-json-path
packages/nx/package.json --manifest-path packages/nx/Cargo.toml --js
./native-bindings.js -o packages/nx/src/native --target
wasm32-wasip1-threads`

And the wasm file will be built at
packages/nx/src/native/nx.wasm32-wasi.wasm

Blocked by:

- Support @napi-rs/cli 3.0  Cammisuli/monodon#48
- https://github.com/napi-rs/napi-rs/issues/2009

The pseudo_terminal mod is excluded on the wasm32 targets, which is as
expected.

The watch mod is excluded because of the upstream `watchexec` deps
introduced by ignore-files don't support the wasi target at this moment
(but we can improve it).

## Related Issues
Fixes https://github.com/nrwl/nx/issues/21860
Fixes https://github.com/nrwl/nx/issues/23821

---------

Co-authored-by: FrozenPandaz <jasonjean1993@gmail.com>
2024-07-05 15:55:35 -04:00
James Henry
b61546fc1a
chore(repo): remove pnpm cache from data step, improve messages (#26552) 2024-06-14 08:14:45 -04:00
James Henry
42749b8225
chore(repo): refactor publish.yml for PR releases (#26550)
Redo of #26509, with more guards for unexpected missing/relative values
within full releases in GitHub Actions.

---

Refactors our publish workflow to support PR releases, in addition to
our previous triggers.

**Tests:**

---

- Example of failure on non-PR release (comment skipped):
https://github.com/nrwl/nx/actions/runs/9480869812

---

- Example of failure on PR release (comment created on PR):
  - https://github.com/nrwl/nx/actions/runs/9480852880
  - https://github.com/nrwl/nx/pull/26515#issuecomment-2162646682

---

- Example of dry-run of full release (`workflow_dispatch` with no PR
number provided): https://github.com/nrwl/nx/actions/runs/9497871483

---

- Real PR release created here:

| Release details | 📑 |
  | ------------- | ------------- |
| **Published version** |
[0.0.0-pr-26515-856ef7f](https://www.npmjs.com/package/nx/v/0.0.0-pr-26515-856ef7f)
|
  | **Triggered by** | @JamesHenry |
| **Branch** |
[JamesHenry-patch-1](https://github.com/nrwl/nx/tree/JamesHenry-patch-1)
|
| **Commit** |
[856ef7f](856ef7f353)
|
| **Workflow run** |
[9497298216](https://github.com/nrwl/nx/actions/runs/9497298216) |

---------

Co-authored-by: Katerina Skroumpelou <sk.katherine@gmail.com>
2024-06-14 07:07:06 -04:00
Jason Jean
73c8c3343d
Revert publish (#26544)
<!-- Please make sure you have read the submission guidelines before
posting an PR -->
<!--
https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr
-->

<!-- Please make sure that your commit message follows our format -->
<!-- Example: `fix(nx): must begin with lowercase` -->

<!-- If this is a particularly complex change or feature addition, you
can request a dedicated Nx release for this pull request branch. Mention
someone from the Nx team or the `@nrwl/nx-pipelines-reviewers` and they
will confirm if the PR warrants its own release for testing purposes,
and generate it for you if appropriate. -->

## Current Behavior
<!-- This is the behavior we have today -->

The below commit caused the publish pipeline to publish a `minor`
version when it should have been a `next` version.

## Expected Behavior
<!-- This is the behavior we should expect with the changes in this PR
-->

This reverts commit
3750366ebc.

## Related Issue(s)
<!-- Please link the issue being fixed so it gets closed when this is
merged. -->

Fixes #
2024-06-13 14:27:36 -04:00
James Henry
92c94d8212
chore(repo): tweak publish.yml wording (#26542) 2024-06-13 11:47:00 -04:00
James Henry
3750366ebc
chore(repo): refactor publish.yml for PR releases (#26509) 2024-06-13 09:28:43 -04:00
Isaac Mann
508fd862c6
chore(nx-dev): skip website publish for older minor versions (#26272)
Update the website publish flow to not publish if the current minor is
not the latest version.
Moves the logic into a node script
2024-06-12 15:14:17 -04:00
Miroslav Jonaš
8403f03822
feat(core): add support for pnpm lockfile v9 (#22906)
- [X] Fix parenthesis separator detection
- [x] Fix leading dash detection
- [x] Migrate existing pnpm normalizer to latest code
- [X] Add unit tests for v9
- [X] Dogfooding Pnpm v9 to Nx repo and agents

Fixes regression with alias packages introduced via
https://github.com/nrwl/nx/pull/23017

## Benchmarks

PNPM v9 Branch (migrated to branch's code)
```
  Time (mean ± σ):      3.526 s ±  0.081 s    [User: 0.717 s, System: 0.948 s]
  Range (min … max):    3.390 s …  3.714 s    20 runs
```
Master (running nx 19.1.0-beta.3)
```
  Time (mean ± σ):     11.160 s ±  0.112 s    [User: 0.799 s, System: 0.979 s]
  Range (min … max):   10.955 s … 11.379 s    20 runs
```

## Current Behavior
<!-- This is the behavior we have today -->

## Expected Behavior
<!-- This is the behavior we should expect with the changes in this PR
-->

## Related Issue(s)
<!-- Please link the issue being fixed so it gets closed when this is
merged. -->

Fixes #22850
Fixes #23256

---------

Co-authored-by: James Henry <james@henry.sc>
2024-05-27 16:12:18 -04:00
Colum Ferry
61b7549ba9
chore(repo): e2e matrix (#23363)
## Current Behavior
<!-- This is the behavior we have today -->
E2E Matrix is not running because python 3 on macos does not come with
required modules pre-installed

## Expected Behavior
<!-- This is the behavior we should expect with the changes in this PR
-->
Install the required python modules before running `pnpm install`

## Related Issue(s)
<!-- Please link the issue being fixed so it gets closed when this is
merged. -->

Fixes #
2024-05-14 10:44:29 +01:00
Jason Jean
dc20a3b462
chore(repo): update stale bot configuration (#23255) 2024-05-08 18:07:51 -04:00
Leosvel Pérez Espinosa
35dec92b92
chore(repo): fix windows nightly pipeline definition (#23191)
<!-- Please make sure you have read the submission guidelines before
posting an PR -->
<!--
https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr
-->

<!-- Please make sure that your commit message follows our format -->
<!-- Example: `fix(nx): must begin with lowercase` -->

## Current Behavior
<!-- This is the behavior we have today -->

## Expected Behavior
<!-- This is the behavior we should expect with the changes in this PR
-->

## Related Issue(s)
<!-- Please link the issue being fixed so it gets closed when this is
merged. -->

Fixes #
2024-05-06 16:30:46 +02:00
Jason Jean
5ded713c3c
fix(repo): set version of pnpm for docker publishes (#23129)
<!-- Please make sure you have read the submission guidelines before
posting an PR -->
<!--
https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr
-->

<!-- Please make sure that your commit message follows our format -->
<!-- Example: `fix(nx): must begin with lowercase` -->

## Current Behavior
<!-- This is the behavior we have today -->

The version of pnpm changed with the docker image.

## Expected Behavior
<!-- This is the behavior we should expect with the changes in this PR
-->

The version of pnpm is installed over the one in the docker image to
ensure the right version is being used.

## Related Issue(s)
<!-- Please link the issue being fixed so it gets closed when this is
merged. -->

Fixes #
2024-05-01 18:40:53 -04:00
Jason Jean
9c6532ca68
fix(repo): fix pnpm version on freebsd (#23045) 2024-04-29 07:50:40 -04:00
Jason Jean
df7e40d547
feat(repo): split e2e tests (#22927) 2024-04-25 10:13:03 -04:00
Jack Hsu
8cd326e71a
fix(misc): fix publish script (#22981) 2024-04-24 18:49:36 -04:00
Jason Jean
f76b8c63c1
fix(repo): downgrade to macos-13 in publish workflow (#22961) 2024-04-23 13:05:44 -04:00
Colum Ferry
455742a8d6
chore(testing): increase windows e2e test timeout (#22821) 2024-04-15 13:56:44 +01:00
Jason Jean
910fa947b6
chore(repo): move feature requests to discussions (#22564) 2024-03-28 13:39:05 -04:00
Jason Jean
814f767bdb
chore(repo): install playwright browsers into .local-browsers (#22463) 2024-03-22 14:37:51 -04:00
Jason Jean
286e83dbe9
chore(repo): prefer ts node on freebsd publish (#22457) 2024-03-22 13:03:05 -04:00
Isaac Mann
a059f1ae7b
chore(core): fix docs release (#22430) 2024-03-21 10:01:41 -04:00
Isaac Mann
537e8aec26
chore(core): website branches by major version (#21954) 2024-03-19 08:29:18 -04:00
Miroslav Jonaš
0a00bfef15
chore(repo): bump version of actions/checkout for nightly (#21810) 2024-03-06 13:02:13 -05:00
Leosvel Pérez Espinosa
47df7f94af
chore(repo): add missing e2e-gradle to e2e matrix projects (#22124) 2024-03-04 11:01:42 +01:00
Emily Xiong
42ad573405
feat(core): add gradle plugin (#21055) 2024-02-29 14:15:54 -05:00
Miroslav Jonaš
4caa6be71a
feat(core): add option to disable log grouping on CI (#21782) 2024-02-12 19:07:03 +01:00
James Henry
4916b8e72f
chore(repo): only run steps within publish.yml if not on fork (#21527) 2024-02-02 18:20:15 +04:00
Jason Jean
d43d5365c8
chore(repo): use large macos 13 agents for freebsd (#21468) 2024-01-31 15:28:29 -05:00
James Henry
b8a82cfa7c
chore(repo): bump cross-platform-actions to latest (#21459) 2024-01-31 18:45:03 +04:00
Miroslav Jonaš
192d36f493
chore(repo): bump pnpm and nx-orb versions (#21143) 2024-01-18 00:11:43 +01:00
Miroslav Jonaš
cbb26cb368
fix(repo): update nightly matrix with new packages (#20911) 2023-12-26 21:51:54 +01:00
Miroslav Jonaš
cb09f25c8a
chore(repo): update nightly node version matrix (#20907) 2023-12-22 17:09:14 +01:00
Miroslav Jonaš
a851c13517
fix(repo): add missing packages to nightly (#20908) 2023-12-22 17:09:02 +01:00
Colum Ferry
8abf1c631a
chore(react): split module federation tests into their own e2e project (#20824) 2023-12-19 12:01:28 -05:00
Colum Ferry
79cab697bf
chore(angular): split module-federation tests into their own project (#20721) 2023-12-13 11:00:30 -05:00
Isaac Mann
ec8daed487
chore(core): add write permissions to publish (#20665) 2023-12-08 14:01:55 -05:00
Jason Jean
8fbf915db6
fix(core): publish next versions of Nx with support for FreeBSD (#20659) 2023-12-08 10:50:15 -05:00
James Henry
57cef5d979
chore(repo): ignore build-freebsd from canary releases (#20566) 2023-12-04 13:23:18 -05:00
James Henry
1b4b463b21
chore(core): add nightly canary release (#20540) 2023-12-02 00:39:04 +04:00
Jason Jean
b4622783b2
chore(repo): disable freebsd support for beta releases (#20396) 2023-11-23 16:26:02 -05:00
Isaac Mann
dc3e1404b7
fix(nx-dev): publish docs when on the latest tag (#20182) 2023-11-20 09:11:43 -05:00
Jason Jean
f28fc3bc84
fix(repo): fix freebsd hanging issue (#20042) 2023-11-03 16:10:56 -04:00
Isaac Mann
ba426a2821
chore(nx-dev): do not publish docs for patches (#20037) 2023-11-03 15:59:13 -04:00
Isaac Mann
d1042cd194
chore(core): publish docs when nx release runs (#19568)
Co-authored-by: James Henry <james@henry.sc>
2023-11-02 14:05:28 -04:00
Jonathan Cammisuli
babb2e0569
chore(repo): fix publishing on freebsd (#19907) 2023-10-27 17:16:43 -04:00
Jason Jean
900c1c9b37
chore(repo): schedule nightly tests later (#19768) 2023-10-25 17:57:16 -04:00