Commit graph

469 commits

Author SHA1 Message Date
Boshen
9e301755ea
ci: pass secret to reusable workflow 2024-07-23 22:50:50 +08:00
Boshen
4246a21c6d
ci: run cargo check before cargo release-oxc 2024-07-23 22:25:40 +08:00
Boshen
52f65e976d
ci: remove top level env 2024-07-23 22:24:10 +08:00
Boshen
f005416bc3
ci: run cargo check in prepare_release_crates 2024-07-23 22:18:46 +08:00
Boshen
6beef7414c
ci: add check job (publish --dry-run) in prepare_release_crates 2024-07-23 22:05:21 +08:00
Boshen
269151d7f0
ci: use bot account with PAT in reusable_prepare_release 2024-07-23 22:01:41 +08:00
Boshen
97c7678343
ci: fix cargo-bins/cargo-binstall@v1.7.4 2024-07-21 20:42:14 +08:00
Boshen
3708fba9e5
ci: use cargo-bins/cargo-binstall@1.7.4 2024-07-21 20:40:14 +08:00
Boshen
8e2fd8c5f3
ci: remove graphite optimize_ci
The savings does not out weight the confusion this feature brings yet.
2024-07-16 21:26:33 +08:00
Boshen
4a50b88af4
ci: remove instructions for sccache
Performance improvement does not out weight cost yet.
2024-07-16 21:24:32 +08:00
renovate[bot]
fef5d053e7
chore(deps): update crate-ci/typos action to v1.23.2 (#4260)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [crate-ci/typos](https://togithub.com/crate-ci/typos) | action | patch
| `v1.23.1` -> `v1.23.2` |

---

### Release Notes

<details>
<summary>crate-ci/typos (crate-ci/typos)</summary>

###
[`v1.23.2`](https://togithub.com/crate-ci/typos/releases/tag/v1.23.2)

[Compare
Source](https://togithub.com/crate-ci/typos/compare/v1.23.1...v1.23.2)

#### \[1.23.2] - 2024-07-10

##### Features

-   Automatically ignore JWT tokens

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "before 10am on monday" in timezone
Asia/Shanghai, Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/oxc-project/oxc).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MzEuNCIsInVwZGF0ZWRJblZlciI6IjM3LjQzMS40IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-14 21:15:01 +00:00
Boshen
91dc0f7866
chore(benchmark): add codegen benchmark (#4207) 2024-07-11 23:58:37 +08:00
Boshen
8c54a2f1ed fix(tasks/ast_codegen): run cargo fmt synchronously (#4181)
relates #4152

This is my wild guess, because it works in my other script 143685deb1/xtask/src/main.rs (L21)
2024-07-11 02:59:30 +00:00
Boshen
07506ece83
ci: add a git diff check after running tests 2024-07-11 10:18:56 +08:00
rzvxa
e1279da55c chore(ci): fix the formatting issues on AST Changes. (#4153)
I'm not sure what causes this issue so this PR is going to start as an experimentation
2024-07-10 13:38:05 +00:00
rzvxa
e6c407d1c3
chore(ci): add Codegen to the CI workflow. (#4144)
It should be marked as `required`.
Closes #4138

---------

Co-authored-by: Boshen <boshenc@gmail.com>
2024-07-10 09:47:30 +08:00
renovate[bot]
4a49e4cc96
chore(deps): update crate-ci/typos action to v1.23.1 (#4089)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [crate-ci/typos](https://togithub.com/crate-ci/typos) | action | minor
| `v1.22.9` -> `v1.23.1` |

---

### Release Notes

<details>
<summary>crate-ci/typos (crate-ci/typos)</summary>

###
[`v1.23.1`](https://togithub.com/crate-ci/typos/releases/tag/v1.23.1)

[Compare
Source](https://togithub.com/crate-ci/typos/compare/v1.23.0...v1.23.1)

#### \[1.23.1] - 2024-07-05

##### Fixes

- Add missing [June
2024](https://togithub.com/crate-ci/typos/issues/1024) changes

###
[`v1.23.0`](https://togithub.com/crate-ci/typos/releases/tag/v1.23.0)

[Compare
Source](https://togithub.com/crate-ci/typos/compare/v1.22.9...v1.23.0)

#### \[1.23.0] - 2024-07-05

##### Fixes

- Updated the dictionary with the [June
2024](https://togithub.com/crate-ci/typos/issues/1024) changes

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "before 10am on monday" in timezone
Asia/Shanghai, Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/oxc-project/oxc).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MjEuOSIsInVwZGF0ZWRJblZlciI6IjM3LjQyMS45IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-07 18:26:02 +00:00
Boshen
eb379188da
ci: fix version not set in release_oxlint.yml 2024-07-07 20:12:42 +08:00
Boshen
94bac93550
ci: pin cargo-shear to v1 2024-07-07 19:09:00 +08:00
Dunqing
54b3b6c0da
chore(benchmark): add isolated declarations (#4078) 2024-07-07 17:14:48 +08:00
Boshen
cdd4ee5dff
ci: cargo-shear v1 2024-07-05 23:46:15 +08:00
Dunqing
a50ce3d299 fix(transformer/typescript): missing initializer for class constructor arguments with private and protected modifier (#3996)
close: #3992
2024-07-01 15:10:32 +00:00
Boshen
34e8cfc9e5
ci: trigger eslint-plugin-oxlint after release 2024-07-01 17:29:58 +08:00
Boshen
e388758f8b
ci: split job in prepare_release_oxlint.yml 2024-07-01 17:24:33 +08:00
Boshen
253eea1938
ci: trigger eslint-plugin-oxlint when release oxlint 2024-07-01 16:43:52 +08:00
Boshen
e44963acda
Revert "chore(napi/transform): support wasm build (#3933)"
This reverts commit 3e9e4c9912.
2024-06-30 22:04:36 +08:00
Dunqing
3e9e4c9912
chore(napi/transform): support wasm build (#3933)
~~Encountered the same problem as
https://github.com/oxc-project/oxc-resolver/issues/190. Fixed in
napi@2.16.7, but oxc use `3.x`~~

Fixed in napi@3.0.0-alpha.3
2024-06-30 19:49:02 +08:00
Boshen
1d74db7774
ci: fix oxlint build 2024-06-27 15:37:59 +08:00
Boshen
7b5abf647f
ci: fix build 2024-06-27 15:19:38 +08:00
Boshen
75592e0d4d
ci: fix reusable_prepare_release version output 2024-06-27 15:08:31 +08:00
Boshen
a85d313a43
chore(deps): update oven-sh/setup-bun action to v2 (#3874)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-24 18:28:48 +08:00
renovate[bot]
bef7f2b836
chore(deps): update github-actions (#3857)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [crate-ci/typos](https://togithub.com/crate-ci/typos) | action | patch
| `v1.22.7` -> `v1.22.9` |
|
[mozilla-actions/sccache-action](https://togithub.com/mozilla-actions/sccache-action)
| action | patch | `v0.0.4` -> `v0.0.5` |

---

### Release Notes

<details>
<summary>crate-ci/typos (crate-ci/typos)</summary>

###
[`v1.22.9`](https://togithub.com/crate-ci/typos/releases/tag/v1.22.9)

[Compare
Source](https://togithub.com/crate-ci/typos/compare/v1.22.8...v1.22.9)

#### \[1.22.9] - 2024-06-22

##### Fixes

-   Stop correcting `reoccurrence`

###
[`v1.22.8`](https://togithub.com/crate-ci/typos/compare/v1.22.7...v1.22.8)

[Compare
Source](https://togithub.com/crate-ci/typos/compare/v1.22.7...v1.22.8)

</details>

<details>
<summary>mozilla-actions/sccache-action
(mozilla-actions/sccache-action)</summary>

###
[`v0.0.5`](https://togithub.com/Mozilla-Actions/sccache-action/releases/tag/v0.0.5)

[Compare
Source](https://togithub.com/mozilla-actions/sccache-action/compare/v0.0.4...v0.0.5)

##### What's Changed

- add missing quotes to `configure` example in readme by
[@&#8203;altendky](https://togithub.com/altendky) in
[https://github.com/Mozilla-Actions/sccache-action/pull/103](https://togithub.com/Mozilla-Actions/sccache-action/pull/103)
- chore: fix a typo in a comment by
[@&#8203;Alphare](https://togithub.com/Alphare) in
[https://github.com/Mozilla-Actions/sccache-action/pull/109](https://togithub.com/Mozilla-Actions/sccache-action/pull/109)
- Bump outdated CI workflows and packages by
[@&#8203;orf](https://togithub.com/orf) in
[https://github.com/Mozilla-Actions/sccache-action/pull/114](https://togithub.com/Mozilla-Actions/sccache-action/pull/114)
- Output sccache stats as a notice and a summary table by
[@&#8203;orf](https://togithub.com/orf) in
[https://github.com/Mozilla-Actions/sccache-action/pull/113](https://togithub.com/Mozilla-Actions/sccache-action/pull/113)

##### Dependencies

- Bump [@&#8203;types/node](https://togithub.com/types/node) from
20.12.11 to 20.13.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/Mozilla-Actions/sccache-action/pull/115](https://togithub.com/Mozilla-Actions/sccache-action/pull/115)
- Bump
[@&#8203;typescript-eslint/parser](https://togithub.com/typescript-eslint/parser)
from 7.8.0 to 7.11.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/Mozilla-Actions/sccache-action/pull/117](https://togithub.com/Mozilla-Actions/sccache-action/pull/117)
- Bump braces from 3.0.2 to 3.0.3 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/Mozilla-Actions/sccache-action/pull/120](https://togithub.com/Mozilla-Actions/sccache-action/pull/120)
- Bump ts-jest from 29.1.2 to 29.1.4 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/Mozilla-Actions/sccache-action/pull/118](https://togithub.com/Mozilla-Actions/sccache-action/pull/118)
- Bump prettier from 3.2.5 to 3.3.2 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/Mozilla-Actions/sccache-action/pull/121](https://togithub.com/Mozilla-Actions/sccache-action/pull/121)
- Bump [@&#8203;actions/core](https://togithub.com/actions/core) from
1.10.0 to 1.10.1 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/Mozilla-Actions/sccache-action/pull/95](https://togithub.com/Mozilla-Actions/sccache-action/pull/95)
- Bump eslint-config-prettier from 9.0.0 to 9.1.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/Mozilla-Actions/sccache-action/pull/96](https://togithub.com/Mozilla-Actions/sccache-action/pull/96)
- Bump [@&#8203;actions/github](https://togithub.com/actions/github)
from 5.1.1 to 6.0.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/Mozilla-Actions/sccache-action/pull/97](https://togithub.com/Mozilla-Actions/sccache-action/pull/97)
- Bump [@&#8203;types/node](https://togithub.com/types/node) from
20.10.6 to 20.11.24 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/Mozilla-Actions/sccache-action/pull/102](https://togithub.com/Mozilla-Actions/sccache-action/pull/102)
- Bump eslint-plugin-jest from 27.6.0 to 27.9.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/Mozilla-Actions/sccache-action/pull/101](https://togithub.com/Mozilla-Actions/sccache-action/pull/101)
- Bump undici from 5.28.2 to 5.28.3 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/Mozilla-Actions/sccache-action/pull/99](https://togithub.com/Mozilla-Actions/sccache-action/pull/99)

##### New Contributors

- [@&#8203;altendky](https://togithub.com/altendky) made their first
contribution in
[https://github.com/Mozilla-Actions/sccache-action/pull/103](https://togithub.com/Mozilla-Actions/sccache-action/pull/103)
- [@&#8203;Alphare](https://togithub.com/Alphare) made their first
contribution in
[https://github.com/Mozilla-Actions/sccache-action/pull/109](https://togithub.com/Mozilla-Actions/sccache-action/pull/109)
- [@&#8203;orf](https://togithub.com/orf) made their first contribution
in
[https://github.com/Mozilla-Actions/sccache-action/pull/114](https://togithub.com/Mozilla-Actions/sccache-action/pull/114)

**Full Changelog**:
https://github.com/Mozilla-Actions/sccache-action/compare/v0.0.4...v0.0.5

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "before 10am on monday" in timezone
Asia/Shanghai, Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

👻 **Immortal**: This PR will be recreated if closed unmerged. Get
[config help](https://togithub.com/renovatebot/renovate/discussions) if
that's undesired.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/oxc-project/oxc).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MTMuMiIsInVwZGF0ZWRJblZlciI6IjM3LjQxMy4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-23 18:54:00 +00:00
Boshen
f8fe583a0b
ci: run cargo check first 2024-06-20 23:38:21 +08:00
Boshen
25b607cde1
ci: fix 2024-06-20 23:18:42 +08:00
Boshen
152195b67b
ci: try fix graphite optimize ci 2024-06-20 23:14:17 +08:00
overlookmotel
24df88099a
ci: enable semantic benchmarks (#3784)
#3776 does seem to have stabilized the benchmark results. Re-enable
semantic benchmarks which we disabled because they were showing wild
variance, and see if they still do.
2024-06-20 14:55:33 +08:00
Boshen
a94ef68c0f
ci: add JEMALLOC_SYS_WITH_LG_PAGE=16 to aarch64 systems
closes #3783
2024-06-20 14:30:17 +08:00
Boshen
a658ca8675
ci: try graphite ci optimizer (#3770) 2024-06-19 23:07:35 +08:00
Boshen
527bfc82f5
feat(npm/oxc-transform): setup npm/oxc-transform and publish 2024-06-18 22:12:47 +08:00
renovate[bot]
810ac13511
chore(deps): update crate-ci/typos action to v1.22.7 (#3701)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [crate-ci/typos](https://togithub.com/crate-ci/typos) | action | patch
| `v1.22.4` -> `v1.22.7` |

---

### Release Notes

<details>
<summary>crate-ci/typos (crate-ci/typos)</summary>

###
[`v1.22.7`](https://togithub.com/crate-ci/typos/releases/tag/v1.22.7)

[Compare
Source](https://togithub.com/crate-ci/typos/compare/v1.22.6...v1.22.7)

#### \[1.22.7] - 2024-06-12

##### Fixes

-   Remove Linux arm64 binary support

###
[`v1.22.6`](https://togithub.com/crate-ci/typos/releases/tag/v1.22.6)

[Compare
Source](https://togithub.com/crate-ci/typos/compare/v1.22.5...v1.22.6)

#### \[1.22.6] - 2024-06-12

###
[`v1.22.5`](https://togithub.com/crate-ci/typos/releases/tag/v1.22.5)

[Compare
Source](https://togithub.com/crate-ci/typos/compare/v1.22.4...v1.22.5)

#### \[1.22.5] - 2024-06-12

##### Features

-   Linux arm64 binaries

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "before 10am on monday" in timezone
Asia/Shanghai, Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/oxc-project/oxc).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zOTMuMCIsInVwZGF0ZWRJblZlciI6IjM3LjM5My4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-16 21:36:08 +00:00
Boshen
2173f23d9c
ci: add workflow_dispatch to release oxlint 2024-06-14 15:29:29 +08:00
Boshen
c8e41601b2
ci: fix release oxlint missing target dir 2024-06-14 15:28:32 +08:00
Boshen
86556cef96
ci: simplify release scripts 2024-06-14 14:42:43 +08:00
Boshen
14b44062c2
ci: pin typos to a specific version (#3647) 2024-06-13 00:04:46 +08:00
Boshen
a798ff4e89
ci: add actions: write permission to release_crates 2024-06-12 18:00:50 +08:00
Boshen
c95d691af6
ci: use node-version-file (#3607) 2024-06-10 22:06:09 +08:00
Boshen
b09092c9ec
ci: use personal access token to push tag 2024-06-08 17:05:14 +08:00
Boshen
532510d714
ci: fix tag push for release_crates 2024-06-07 17:52:19 +08:00
Boshen
05342c6080
ci: fix release oxlint 2024-06-07 17:33:37 +08:00
Boshen
e0bfd85254
ci: pass changelog to action-gh-release 2024-06-07 16:30:41 +08:00
Boshen
101d0ccefa
ci: trigger ecosystem ci and website task from prepare_release_oxlint 2024-06-07 00:09:42 +08:00
Boshen
2cdc4085f7
ci: only run "update rules" when rules.rs changes 2024-06-06 16:04:41 +08:00
Boshen
604b7cf92b
ci: prepare release oxlint 2024-06-06 16:04:41 +08:00
Boshen
6db4d7dc09
chore: update cliff.toml 2024-06-06 15:09:07 +08:00
Boshen
509ed2bcf3
ci: update prepare release crates; regenerate the changelogs 2024-06-06 14:28:51 +08:00
Boshen
19bc7eb20f
ci: fix mac build in release_napi_parser 2024-06-04 18:40:24 +08:00
Boshen
119d87510d
ci: fix release crate push tag permission 2024-06-04 18:22:22 +08:00
Boshen
20f1754f57
chore: update Cargo.lock 2024-06-04 18:05:57 +08:00
Boshen
9706c3b533
ci: adjust publish workflow 2024-06-04 16:40:15 +08:00
Boshen
ebd683bb4b
chore: add oxc_release.toml 2024-06-04 16:05:08 +08:00
Boshen
28cc351cf3
ci: add prepare release workflow 2024-06-03 00:54:13 +08:00
renovate[bot]
ef35792623
chore(deps): update samypr100/setup-dev-drive action to v3 (#3505)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
|
[samypr100/setup-dev-drive](https://togithub.com/samypr100/setup-dev-drive)
| action | major | `v2` -> `v3` |

---

### Release Notes

<details>
<summary>samypr100/setup-dev-drive (samypr100/setup-dev-drive)</summary>

###
[`v3`](https://togithub.com/samypr100/setup-dev-drive/releases/tag/v3)

[Compare
Source](https://togithub.com/samypr100/setup-dev-drive/compare/v2...v3)

#### What's Changed

- See
[CHANGELOG.md](https://togithub.com/samypr100/setup-dev-drive/blob/v3/CHANGELOG.md)

**Full Changelog**:
https://github.com/samypr100/setup-dev-drive/compare/v2...v3

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "before 10am on monday" in timezone
Asia/Shanghai, Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/oxc-project/oxc).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zNzcuOCIsInVwZGF0ZWRJblZlciI6IjM3LjM3Ny44IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-02 16:08:16 +00:00
Boshen
851318b413
ci(): install rust before cache in windows-test 2024-05-31 10:01:09 +08:00
Boshen
8fe58921e9
ci: speed up windows build (#3474)
Windows warm cache run reduced from 3 mins to 2 mins 20 seconds.

Unsung heros of the internet, who led me here to speed up window's
slowness:
* `https://github.com/actions/cache/issues/752#issuecomment-1847036770`
*
502e04200d/.github/workflows/ci.yml (L158)
2024-05-31 09:48:28 +08:00
Boshen
0f4bcc0a68
ci: fix cache for clippy and docs 2024-05-30 23:43:41 +08:00
Boshen
41d67fe6f6
ci: clean up the bloat action 2024-05-30 23:26:34 +08:00
Boshen
0d35f227b5
ci: fix sccache in "check conformance" 2024-05-30 00:46:47 +08:00
Boshen
0a61843ea8
ci: fix smoke test failing because bash is not installed on alpine 2024-05-28 23:47:10 +08:00
Boshen
0355c9d116
ci: remove actions/rustup in favor of Boshen/rustup (#3429) 2024-05-27 16:34:18 +08:00
rzvxa
56cbdf5f0e ci(oxlint): add oxc_language_server binary to the oxlint package. (#3350)
I didn't introduce a new set of native packages for the `oxc_language_server` binary, This change temporarily bundles them as part of oxlint, We most probably would want to make it an optional dependency in the future if we start to add more futures like formatting, jump to definition, etc to it.
2024-05-27 02:46:43 +00:00
Boshen
d80e9b4187
ci: add sccache to linter benchmark (#3418) 2024-05-26 20:27:24 +08:00
Boshen
31c8e3340d
ci: build test first to speed up ci runs by a little bit 2024-05-26 16:28:18 +08:00
Boshen
3855579eb4 ci: apply default shell: bash to all CI jobs (#3416) 2024-05-26 08:05:11 +00:00
Boshen
21505e885c refactor(cli): move crates/oxc_cli to apps/oxlint (#3413)
We need to split the cli crate up to reduce dependencies,
the current cli crate is pulling in `oxc_prettier`, which is redundant
for the linter.
2024-05-26 05:00:30 +00:00
Boshen
7d73fb33e8
ci: disable RUSTC_WRAPPER from forks 2024-05-26 01:46:14 +08:00
Boshen
217594d21f
ci: setup sccache (#3403) 2024-05-25 23:38:43 +08:00
Boshen
68c1bf4018
ci: disable the flaky semantic benchmark 2024-05-24 15:01:11 +08:00
Boshen
c8e3ca0816
ci: add secret CARGO_REGISTRY_TOKEN to cargo publish 2024-05-22 18:19:40 +08:00
Boshen
16d8dcda76
ci: allow branch renovate/** 2024-05-20 13:35:31 +08:00
Boshen
cc1882d221
ci: remove ecosystem ci, moved to https://github.com/oxc-project/oxlint-ecosystem-ci 2024-05-16 01:32:45 +08:00
overlookmotel
f0cbbbe28c
ci: build each benchmark only with deps it needs (#3221)
This PR builds on #3201 to further speed up the benchmarks and reduce CI
time.

* Build and run each benchmark as separate job (like before).
* But now each bench is only built with the dependencies it needs.
* For linter benchmarks, build benchmark in 1 job (like #3201 does).
* Run each linter fixture in a separate job as they're slow.

This reduces total time to complete benchmarks from between 6m-7m to
~4m40s.

All the individual jobs complete in under 1m30s, except for building
linter benchmark which takes 2m30s. So there won't be the problem of
blocking the CI queue that there was before.

NB: I did try this before, and didn't see a benefit. But I realized
today what I was doing wrong - it only works once the caches are
populated by a previous run on main branch.

So the CI times in this PR won't look good, but once it's merged to
main, it will take effect. Here it is running on main branch of my fork:

https://github.com/overlookmotel/oxc/actions/runs/9030511348

I also added a step to delete the temp artefacts which aren't needed
once the run has completed.
2024-05-10 22:01:24 +08:00
Boshen
be2aaa1d7e
ci: add release crates workflow
closes #2518
2024-05-08 22:32:05 +08:00
Boshen
5683aceae9
ci: improve benchmark build time by only building once (#3201)
relates #3200
2024-05-08 14:54:10 +08:00
Boshen
ed3fa399a6
feat(linter): add --format github for github check annotation (#3191)
closes #480
2024-05-07 20:55:10 +08:00
Boshen
8fbba03afd
ci: reduce the total number of linter benchmarks (#3172)
closes #2981
2024-05-06 12:54:50 +08:00
Boshen
cf2db1ef3a
ci: fix broken cargo bloat command 2024-05-04 00:03:21 +08:00
Boshen
5d0f165f51
ci: "Coverage and check diff" -> "Check Conformance" 2024-04-26 21:31:44 +08:00
Boshen
fe37da63ae
ci: remove some redundant lines that are showing warnings 2024-04-20 14:23:34 +08:00
renovate[bot]
ec1ca3ac98
chore(deps): update peaceiris/actions-gh-pages action to v4 (#2986)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
|
[peaceiris/actions-gh-pages](https://togithub.com/peaceiris/actions-gh-pages)
| action | major | `v3` -> `v4` |

---

### Release Notes

<details>
<summary>peaceiris/actions-gh-pages
(peaceiris/actions-gh-pages)</summary>

###
[`v4`](https://togithub.com/peaceiris/actions-gh-pages/compare/v3...v4)

[Compare
Source](https://togithub.com/peaceiris/actions-gh-pages/compare/v3...v4)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "before 8am on monday" in timezone
Asia/Shanghai, Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/oxc-project/oxc).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4yOTMuMCIsInVwZGF0ZWRJblZlciI6IjM3LjI5My4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-15 10:11:26 +08:00
Boshen
93ce5a919a
chore: fix internal doc warnings 2024-04-13 15:59:24 +08:00
Boshen
9df5001543
ci: explicitly disable incremental build and deny warnings for cargo and rust 2024-04-13 15:40:10 +08:00
Boshen
adabbac696
ci: only run cargo-shear when Rust changes (#2953) 2024-04-13 13:24:09 +08:00
Boshen
063b281c39
feat(allocator): make Box's PhantomData own the passed in T (#2952) 2024-04-13 12:31:40 +08:00
Boshen
b05c26374c
ci: fix codecov stack overflow by increasing the stack size
The underlying cause is oxc_prettier recursively printing assignment expressions.
2024-04-12 20:17:53 +08:00
Boshen
ced0721b3b
ci: cache codecov; enable code coverage for oxc_transformer 2024-04-11 16:16:02 +08:00
Boshen
659e891615
ci: skip benchmark-napi because it is flaky (#2918)
The flakiness and all the noise produced by it is starting to hurt
maintenance because I can no longer tell if main or PR is failing
properly :-(

codspeed doesn't have the feature "let it run but don't report as error"
or "different thresholds on different benchmarks"
2024-04-08 19:21:57 +08:00
Boshen
ab26099281
Publish @oxc-parser/wasm with web and node builds (#2916)
Co-authored-by: Saeid Zareie <saeid.za98@gmail.com>
2024-04-08 15:47:02 +08:00
Boshen
c767a2ede0
ci: fix ecosystem-ci build 2024-04-02 17:47:05 +08:00
Boshen
d63127d009
chore: only build the allocators in release mode because they are slow to build (60s) 2024-04-02 17:39:01 +08:00
Boshen
3ca6721783
ci: always run cargo shear 2024-03-31 16:06:22 +08:00
Boshen
52a9f08a57
chore: remove release-plz 2024-03-30 13:50:41 +08:00
Boshen
348c3e9bb3
ci: rename and tweak publish crates action 2024-03-30 13:20:29 +08:00
underfin
b199cb89a2
feat: add oxc sourcemap crate (#2825)
The sourcemap implement port from
[rust-sourcemap](https://github.com/getsentry/rust-sourcemap), but has
some different with it.

- Encode sourcemap at parallel, including quote `sourceContent` and
encode token to `vlq` mappings.
- Avoid `Sourcemap` some methods overhead, like `SourceMap::tokens()`
caused extra overhead at common cases. Here using `SourceViewToken` to
instead of it.
2024-03-28 19:36:38 +08:00
Boshen
c5ccd5e7a1
ci: add release-plz 2024-03-26 18:18:16 +08:00
Dunqing
224299fe5c
ci: ci should run when clone-submodules/action.yml changes (#2816)
When we change `clone-submodules/action.yml`, the snapshot will probably be updated as well, so I'd run ci to make sure the snapshot is correct.
2024-03-26 11:58:55 +08:00
Boshen
66117b10aa
ci: cargo doc --no-deps 2024-03-26 01:56:16 +08:00
Boshen
06a81409f1
ci: actions/checkout@v4 -> taiki-e/checkout-action@v1 (#2811)
This does not depend on node.js, and sets persist-credentials to false
2024-03-26 01:24:51 +08:00
Boshen
e32a3b3783
ci: use cargo-shear (#2810) 2024-03-26 00:43:10 +08:00
overlookmotel
29d8a64bc9
perf(tasks): speed up NAPI parser benchmark build (#2787)
The `parser_napi` pseudo-benchmark does not depend on any Oxc crates, so
remove all dependencies for this benchmark. This reduces build time of
this benchmark on CI by ~1 minute.

After #2780, NAPI parser benchmark sometimes took the longest of all the
benchmarks, so making it faster reduces time to complete the benchmarks
overall.
2024-03-22 12:09:32 +00:00
overlookmotel
2fe158d0d6
refactor(tasks): separate NAPI benchmark CI job (#2783)
Not a substantive change. This just prevents the other benchmark jobs
showing greyed-out "Build NAPI benchmark" steps, and makes the workflow
file easier to follow.

CI tasks were stuck at "Waiting for status to be reported", and unable
to merge until they passed. Problem was that CI task doesn't run if only
`.yml` files are altered. So have added a dummy comment to a random Rust
file just to get it to run. Will make another PR after to remove the
comment again!
2024-03-21 23:30:38 +00:00
overlookmotel
508091314f
feat(tasks): benchmark NodeJS parser (#2770)
Add NodeJS parser to benchmarks.

Previous attempt #2724 did not work due CodSpeed producing very
inaccurate results (https://github.com/CodSpeedHQ/action/issues/96).

This version runs the actual benchmarks without CodSpeed's
instrumentation. Then another faux-benchmark runs within Codspeed's
instrumented action and just performs meaningless calculations in a loop
for as long as is required to take same amount of time as the original
uninstrumented benchmarks took.

It's unfortunate that we therefore don't get flame graphs on CodSpeed,
but this seems to be the best we can do for now.
2024-03-20 05:06:09 +00:00
overlookmotel
5edd196836
fix(tasks): fix codspeed upload for PRs from forks (#2759)
#2751 contained a mistake, which was pointed out by Adrian @ CodSpeed on
Discord.

For PRs from forks, `CODSPEED_TOKEN` is not provided, and the submission
to CodSpeed is "tokenless". #2751 wrongly assumed all runs are submitted
with a token. This PR fixes that.
2024-03-18 20:29:16 +00:00
overlookmotel
68f304faa3
feat(tasks): shard linter benchmarks in CI (#2752)
Follow-on from #2751. Further shards linter benchmarks so each fixture runs in its own job.

This reduces total time to run benchmarks by another ~75 secs. So approx 2.5 mins shaved off in total.
2024-03-18 10:50:44 +08:00
overlookmotel
93e1ea4419
feat(tasks): shard benchmarks in CI (#2751)
This PR shards benchmarks when running on CI. Each benchmark (parser, minifier etc) runs as a separate job, and then a final job combines the results and uploads to Codspeed.

A bit of a hacky implementation. Uses a small NodeJS HTTP server to intercept the results from `codspeed-runner`, and then another NodeJS script to combine them all together, and upload to CodSpeed.

I will submit PRs on Codspeed's runner + action to do it properly, but as I imagine it'll be a slow process getting that merged upstream, I wanted to see if it worked first. We can replace this once it's supported upstream.

Sharding only reduces total time to run the benchmarks by about 70 secs at present, because linter benchmark takes 6 mins alone and holds up the whole process (all the rest are done in ~2 mins). If we can split up the linter benchmark, we can likely get total run time down to around 3 mins. I'll try that in a follow-on PR.

I guess the other upside is we can now add as many benchmarks as we like with impunity - they'll run in parallel, and so won't slow things down overall.
2024-03-18 10:45:44 +08:00
overlookmotel
78f1adc043
chore(napi): remove oxc-parser from benchmarks (#2738)
#2724 added CodSpeed benchmarks for NodeJS `oxc-parser`.

Unfortunately it turns out CodSpeed's results are wildly inaccurate.
Unclear why, but have raised an issue with CodSpeed
(https://github.com/CodSpeedHQ/action/issues/96). In meantime it seems
best to remove the benchmarks as they're not useful at present.
2024-03-16 23:39:23 +08:00
overlookmotel
af47aebc7c
chore(napi): add oxc-parser to benchmarks (#2724)
Closes #2616.

Adds benchmarks for NodeJS NAPI build. Measurement includes `JSON.parse`
of the AST on JS side, since that's how it'll be used 99% of the time.

Benchmarks run against same files as Rust parser benchmarks, so we can
see the overhead of transferring AST to JS.
2024-03-15 19:45:02 +08:00
renovate[bot]
68c01d304e
chore(deps): update softprops/action-gh-release action to v2 (#2676) 2024-03-11 15:33:50 +08:00
Boshen
8bb1084863
feat(codegen): add sourcemap (#2565)
Co-authored-by: underfin <2218301630@qq.com>
2024-03-03 14:44:49 +08:00
Boshen
4f22eaaf96
ci: check cargo doc for all crates 2024-02-21 18:03:49 +08:00
Boshen
160498be18
ci: add publish to open vsx registry 2024-02-18 16:55:22 +08:00
Boshen
24a9255610
Release napi oxc-parser@v0.4.0 2024-02-11 12:37:44 +08:00
Boshen
5723690fdf
Release napi oxc-parser@v0.4.0-alpha.0 2024-02-11 11:56:46 +08:00
overlookmotel
1baf9c33d2
ci: run benchmarks on branches called bench-* (#2365)
I've recently switched over from hacking on a fork to working directly
on upstream, in order to be able to use Graphite.

One thing I miss now is ability to create branches and run CodSpeed on
them while developing. Compared to running benches locally, CodSpeed has
the advantage of giving you a visual history, showing how each commit
you push moves the dials.

This PR makes the benchmarks run for any branch named `bench-*`, in
order to enable this workflow on upstream, without having to open a
draft PR for every experiment.
2024-02-09 20:57:37 +08:00
Boshen
5d9b0f3312
ci: speed up benchmark build (#2343)
closes #2299

Managed to figure out what `cargo codspeed build` is doing :-)
2024-02-08 19:47:50 +08:00
Boshen
0f28dc8894
ci: move conformance.yml to ci.yml 2024-02-06 23:01:58 +08:00
Boshen
a928eeaff8
ci: skip benchmark for codegen 2024-02-06 22:55:52 +08:00
Boshen
3b7dfb9bd1
Release oxlint and vscode extension v0.2.8 2024-02-06 15:57:00 +08:00
Boshen
839e7c5c22
feat(napi/parser): add more linux-musl targets 2024-02-06 00:04:25 +08:00
renovate[bot]
7138432541
chore(deps): update codecov/codecov-action action to v4 (#2305)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [codecov/codecov-action](https://togithub.com/codecov/codecov-action)
| action | major | `v3` -> `v4` |

---

### Release Notes

<details>
<summary>codecov/codecov-action (codecov/codecov-action)</summary>

### [`v4`](https://togithub.com/codecov/codecov-action/compare/v3...v4)

[Compare
Source](https://togithub.com/codecov/codecov-action/compare/v3...v4)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "before 8am on monday" in timezone
Asia/Shanghai, Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/oxc-project/oxc).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xNzAuMCIsInVwZGF0ZWRJblZlciI6IjM3LjE3MC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-05 13:08:56 +08:00
Boshen
6002560fa1
feat(span): fix memory leak by implementing inlineable string for oxc_allocator (#2294)
closes #1803

This string is currently unsafe, but I want to get miri working before
introducing more changes.

I want to make a progress from memory leak to unsafe then to safety.
It's harder to do the steps in one go.
2024-02-04 19:28:23 +08:00
Boshen
3569e42475
ci: install just in conformance 2024-02-02 22:49:15 +08:00
Boshen
b2040ed2ec
ci: use node.js 20 2024-02-02 22:28:23 +08:00
Boshen
54dfd91729
ci: temporary fix git clones 2024-02-02 22:27:15 +08:00
Dunqing
3cb85778bc
ci: incorrect uses value (#2276) 2024-02-02 21:53:10 +08:00
Boshen
d2f7ea2923
chore: manually clone git modules instead of using submodules (#2274)
closes #2231

Submodules are a blocker for beginners, we should make it clone on
demand.

It is also a blocker for people who wants to target this repo as a crate
for testing purposes, cargo will do a full clone if you specify
oxc_parser = { git = "this repo" } in Cargo.toml
2024-02-02 11:56:18 +00:00
Boshen
d6ba058f77
ci: paths-filter v3 (#2267) 2024-02-02 16:21:34 +08:00
Boshen
a3df55e7ed
ci: unify the usage of concurrency.group
github.ref refers to the branch
2024-02-02 11:20:44 +08:00
Boshen
c0bdd050ee
ci: s/macos-latest/macos-14 (#2244) 2024-02-01 13:30:49 +08:00
Boshen
9c6c17b9aa
feat(wasm/parser): improve FFI (#2232) 2024-01-31 15:53:32 +08:00
Boshen
b2894c6a38
Release @oxc-parser/wasm v0.0.2 2024-01-30 21:43:41 +08:00
Boshen
5ac61f09a0
feat: setup wasm parser for npm (#2221) 2024-01-30 21:40:10 +08:00
Nicholas Roberts
cd5026c015
feat(ast): TypeScript definition for wasm target (#2158)
Closes #2151
2024-01-30 15:43:03 +08:00
Boshen
ab8a3114a2
feat(cli): add --version (#2182)
closes #2154
2024-01-26 19:13:17 +08:00
Yuji Sugiura
cba8a4c131
feat(tasks): Enable tasks/lint_rules(JS ver) (#2177)
- [x] Remove old task(Rust ver)
- [x] Migrate to new task(JS ver)
- [x] Confirm CI works w/o `--output`
-
https://github.com/oxc-project/oxc/actions/runs/7663961642/job/20887579432?pr=2177
- [x] Confirm CI works w/ fake issue no
  - https://github.com/oxc-project/oxc/issues/2117
- [x] Enable

- - -

I've noticed that

- eslint/no-extra-semi
- eslint/no-mixed-spaces-and-tabs

are maked as deprecated and also recommended.

This is ESLint side
[issue](https://github.com/eslint/eslint/pull/17696#issuecomment-1792452766)
and will fix after v9.
2024-01-26 15:45:05 +08:00
xc2
8e332b20a1
ci(oxlint): run smoke test against both glibc and musl (#2155) 2024-01-24 11:10:53 +08:00
Boshen
382a187175
fix(npm): fix bin script for musl / gnu 2024-01-23 19:09:11 +08:00
Boshen
fda2d7c334
deps(website): bump deps (#2146) 2024-01-23 17:15:42 +08:00
Yuji Sugiura
71173a9181
feat(tasks): Add @typescript-eslint to lint_rules CI task (#2134)
Part of #2020

- Add `@typescript-eslint` plugin rules
- w/ refactoring
  - Fix compile errors to add other plugins
  - Remove not intended unsupported rule in `eslint`

(Use #2117 for updating for a while?)
2024-01-23 12:29:55 +08:00
Boshen
e81e8c7124
ci: release oxlint with linux-{x64-gnu, arm64-gnu, x64-musl, arm64-musl} (#2126)
closes #1736
2024-01-22 19:56:27 +08:00
Boshen
fe7c4d09d2
ci: improve ecosystem ci (#2099) 2024-01-22 17:05:25 +08:00