Commit graph

270 commits

Author SHA1 Message Date
Jared Palmer
0195a6f89e
Remove unused turbo remote cache env vars (#33030) 2022-01-05 07:48:42 -06:00
JJ Kasper
5e5f1df445
Re-enable turbo caching for swc build jobs (#32617)
* Fix build-native jobs

* Update to latest turbo

* fix extra space

* fix windows shell

* Update to latest turbo

* Bump Turbo (#32703)

* Bump turbo to canary

* Bump turbo

* Update yaml too

* add less specific restore key

* update more restore keys

* Fix non-unique key and cache wasm build

* ensure turbo is installed for new jobs

* remove old wasm cache

* update directory check

* bump

* re-add if publish checks

Co-authored-by: Jared Palmer <jared@jaredpalmer.com>
2022-01-04 15:10:16 -06:00
Balázs Orbán
3ad2035ae6
feat(cli): introduce next info CLI command (#32972)
This PR adds a new command to the `next` CLI.

Running `next info` will print useful information to the terminal about how/where Next.js is run. This information can be added to the Bug report when opening an issue in the repository.

This makes reporting issues more accurate and doesn't require the user to guess certain details, the command will retrieve it on their behalf.

Example output:

```sh
$ npx --no-install next info

    Operating System:
      Platform: linux
      Version: #22-Ubuntu SMP Fri Nov 5 13:21:36 UTC 2021
    Binaries:
      Node: 16.13.0
      npm: 8.1.0
      Yarn: 1.22.17
      pnpm: 6.24.2
    Relevant packages:
      next: 12.0.8-canary.14
      react: 17.0.2
      react-dom: 17.0.2


```

The idea is based on #32858

## Bug

- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Errors have helpful link attached, see `contributing.md`

## Feature

- [x] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR.
- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Documentation added
- [ ] Telemetry added. In case of a feature if it's used or not.
- [ ] Errors have helpful link attached, see `contributing.md`

## Documentation / Examples

- [ ] Make sure the linting passes by running `yarn lint`


Co-authored-by: Steven <229881+styfle@users.noreply.github.com>
2022-01-04 15:35:32 +00:00
Balázs Orbán
09456cb43e
chore: decrease stale time before closing issues with no reproduction (#32955)
#32214 intended to only allow 30 days of stale time and then close the issue.

After studying the docs:

- https://github.com/actions/stale#days-before-issue-stale
- https://github.com/actions/stale#days-before-issue-close

and the cron job action: https://github.com/vercel/next.js/actions/runs/1647416426

I realized that we currently mark an inactive issue without reproduction as stale after 60 days and wait another 30 days before actually closing it.

With this PR, we mark issues with no reproduction as stale after 30 days and close them the day after.

This should result in a lower count of issues that are unactionable and the author seems to have moved on.

## Bug

- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Errors have helpful link attached, see `contributing.md`

## Feature

- [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR.
- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Documentation added
- [ ] Telemetry added. In case of a feature if it's used or not.
- [ ] Errors have helpful link attached, see `contributing.md`

## Documentation / Examples

- [ ] Make sure the linting passes by running `yarn lint`
2022-01-03 03:52:28 +00:00
Dan Weaver
13bac7c739
fix popstate detection for safari when basepath is present (#32687)
* fix popstate detection for safari when basepath is present

* Add test case

Co-authored-by: JJ Kasper <jj@jjsweb.site>
2021-12-21 14:11:10 -06:00
JJ Kasper
f244593e19
Disable turbo for build-native temporarily (#32621)
* Disable turbo for build-native temporarily

* update args

* re-add working directory config

* comment out caching
2021-12-17 19:17:57 -06:00
Jared Palmer
f4e49377ac
Remove unused turbo env vars (#32588) 2021-12-16 23:01:35 -06:00
Jared Palmer
ed022eda0f
Add turbo / improve Rust build caching in GitHub Actions (#31464)
Implements Turborepo for the Next.js repository and leverage it for native build caching.

Co-authored-by: Maia Teegarden <2865858+padmaia@users.noreply.github.com>
2021-12-16 20:10:45 +00:00
Steven Tey
d40e6e0e18
Update codeowners (#32583)
* Create CODEOWNERS

* Update .github/CODEOWNERS

Co-authored-by: JJ Kasper <jj@jjsweb.site>

Co-authored-by: JJ Kasper <jj@jjsweb.site>
2021-12-16 13:32:04 -06:00
Rich Haines
dda0afd3a4
Added docs issue template (#32488)
Co-authored-by: Steven <steven@ceriously.com>
Co-authored-by: Tim Neutkens <tim@timneutkens.nl>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-12-15 16:18:28 +01:00
Balázs Orbán
e8977bc364
chore: lock stale & closed issues sooner 2021-12-14 18:06:39 +01:00
JJ Kasper
93ef28bbbc
Update only fetch all tags for publish commits (#32337)
* Update only fetch all tags for publish commits

* still fetch before yarn

* Revert "still fetch before yarn"

This reverts commit 7107f4e80f0713e74c3e56668fa585eff42b58d9.

* lint-fix

* explicitly pass commit sha

* lint-fix

* update check

* remove space in args

* Use specific argv index

* apply suggestions
2021-12-09 16:36:18 -06:00
Balázs Orbán
a5b3f56ff8
chore: lock version on stale action (#32262)
* Update stale.yml

* Update stale.yml
2021-12-07 22:54:44 +01:00
JJ Kasper
dd7c294816
Ensure test wasm does not fail for docs only change (#32259) 2021-12-07 15:29:34 -06:00
JJ Kasper
836334e799
Ensure wasm dev artifact uploads even on cache hit (#32248) 2021-12-07 12:17:13 -06:00
Balázs Orbán
68d6d1ad79
chore: auto close inactive issues without reproduction (#32214)
* chore: close inactive issues without reproduction

* Update .github/workflows/stale.yml

Co-authored-by: Lee Robinson <me@leerob.io>

Co-authored-by: Lee Robinson <me@leerob.io>
2021-12-07 16:50:38 +01:00
Maia Teegarden
21f8c6a7c3
Chore/load bindings improvements (#32191)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-12-07 11:14:38 +01:00
JJ Kasper
df774a9dd7
Make CI build cache key more specific (#32059) 2021-12-02 14:39:37 -06:00
JJ Kasper
25371dd1b0
Lock node version for CI (#32057) 2021-12-02 12:10:05 -06:00
Rich Haines
73d7f9458f
Updated Maedahs name in label gen config (#32005) 2021-12-01 10:20:11 -06:00
Tim Neutkens
1442b582f5
Add Rich, Maedah, and Ismael to the docs label 2021-12-01 13:18:13 +01:00
Tim Neutkens
f8d6441e41
Add next-swc to labeler 2021-12-01 12:00:30 +01:00
Maia Teegarden
7be75bbf2f
Try fix (#31943) 2021-11-29 14:31:19 -08:00
Tobias Koppers
03ecbcf182
Remove some watcher hacks and update version (#31768)
## Bug

- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Errors have helpful link attached, see `contributing.md`

## Feature

- [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR.
- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Documentation added
- [ ] Telemetry added. In case of a feature if it's used or not.
- [ ] Errors have helpful link attached, see `contributing.md`

## Documentation / Examples

- [ ] Make sure the linting passes by running `yarn lint`
2021-11-25 08:31:20 +00:00
Maia Teegarden
1bc9b1ac02
Fix wasm loading (#31772)
* Fix wasm loading

* Remove consoles
2021-11-24 15:33:34 -08:00
Tim Neutkens
e212167fb9 Fix musl build 2021-11-21 15:34:02 +01:00
Maia Teegarden
a79d4fc366
Extract next-swc Rust code into its own package (#31635)
Co-authored-by: JJ Kasper <jj@jjsweb.site>
Co-authored-by: Tim Neutkens <tim@timneutkens.nl>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-11-21 12:59:56 +01:00
Tim Neutkens
143d32746c
Update labeler.json 2021-11-19 09:19:40 +01:00
Tim Neutkens
cfe608403e
Update labeler.json 2021-11-18 15:12:02 +01:00
JJ Kasper
be2e863dde
Re-add native package folders and ensure wasm artifacts are downloaded (#31561)
* Re-add native package folders and update publish-native

* update jobs

* ensure wasm-binaries are downloaded

* only build-wasm on release
2021-11-17 20:23:02 -06:00
Maia Teegarden
b80c378975
Add/wasm build (#31470) 2021-11-17 20:01:02 +01:00
JJ Kasper
e55c42cef0
Maintain co-authors when kodiak merges (#31316) 2021-11-11 12:21:25 -06:00
Steven
ea88ef37ae
Bump cancel-workflow-action to 0.9.1 (#31210) 2021-11-09 10:05:19 -06:00
JJ Kasper
fc096d04bf
Keep using checkout instead of cache for building swc (#30923)
* Keep using checkout instead of cache for building swc

* test build

* re-add isRelease checks
2021-11-03 18:35:26 -05:00
Lee Robinson
2301e615f5
Update lock.yml (#30922) 2021-11-03 17:47:02 -05:00
Steven
72d69179b3
Update codeowners to be more specific (#30908)
* Update codeowners

Co-authored-by: Jiachi Liu <inbox@huozhi.im>
2021-11-03 18:34:33 -04:00
JJ Kasper
a3a592629a
Update to use repo specific napi instead of npx (#30914)
* Update to use repo specific napi instead of npx

* download build cache

* test running musl build

* Ensure napi is available for build-native-dev

* install globally in docker

* re-add isRelease check
2021-11-03 16:58:22 -05:00
JJ Kasper
9439d2711e
Skip next-swc canary postinstall in CI (#30916)
* Skip next-swc canary postinstall in CI

* lint-fix
2021-11-03 16:43:31 -05:00
JJ Kasper
81a4cd2c6b
Re-enable linux-musl-x64 build target (#30910)
* Re-enable linux-musl-x64 build target

* copy swc build command

* uncomment needs

* remove strip

* update napi additional
2021-11-03 15:03:50 -05:00
Lee Robinson
49347f0157
Update lock time and message. (#30902)
* Update lock.yml

* lint-fix

Co-authored-by: jj@jjsweb.site <jj@jjsweb.site>
2021-11-03 13:16:08 -05:00
Steven
beedff291e
Add Node.js 17 to CI (#30760)
This will make sure #30743 doesn't regress
2021-11-01 21:24:15 +00:00
matamatanot
187ad180c2
remove binary-cache (#30658) 2021-11-01 14:11:14 -05:00
JJ Kasper
fc21a20311
Fix a couple more missing doc only checks (#30748) 2021-11-01 11:51:30 -05:00
JJ Kasper
ea91b9def5
Ensure dev binary download skips for docs only change (#30746) 2021-11-01 11:20:46 -05:00
JJ Kasper
d7d1a05208
Ensure native binary is available for release stats (#30649) 2021-10-30 12:54:42 +02:00
JJ Kasper
18a39915b6
Fix check compiled step (#30645)
* Update check compiled step

* update compiled
2021-10-29 23:29:30 -05:00
Maia Teegarden
b5a89160f7
Chore/rust workflow (#30577)
* Remove prebuilt binaries from repo

* Prefer locally built binary

* Add binary packages as optionalDependencies

* Remove build-native workflow for prebuilt binaries

* Remove binaries from checkCompiled job

* Change build-native command to default to dev

* Add build-native-dev and have tests depend on it

* Update contributing

* Run ls to make inspect artifact download

* Use correct artifact download path

* Try using reusable workflows

* Resort to duplication for now

* Inspect artifact download

* Ensure native is copied for PR stats

* Copy after ref checkout and log binaries for PR stats

* fix typo

* copy right before linking/packing

* Use fs.copy

* fix test for now

Co-authored-by: jj@jjsweb.site <jj@jjsweb.site>
2021-10-29 13:56:56 -05:00
Tobias Koppers
515b795bc5
fix lint problem (#30553) 2021-10-28 14:22:23 +00:00
Donny/강동윤
14d3f01a98
Exclude musl from target (#30548) 2021-10-28 14:59:20 +02:00
JJ Kasper
8a445ca8aa
Revert "Make check release job parallel to build job (#30350)" (#30388)
This reverts commit 8d82d7696a.
2021-10-26 19:44:15 -05:00