vitejs / vite-ecosystem-ci Goto Github PK
View Code? Open in Web Editor NEWVite Ecosystem CI
License: MIT License
Vite Ecosystem CI
License: MIT License
We still battle with type inconsistencies between rollup versions, to solve them and see where downstream project might get problems from new rollup versions used by vite, override it to match vite always.
pnpm7 has a few breaking changes and a new lockfile version.
Right now our ci uses pnpm@6 and that causes errors when running on ecosystem projects already on 7.
The same can be true if we switch to pnpm7 and projects are still on 6.
Once vite main branch is on pnpm7 make that move here too. Once moved, disable projects still on pnpm6 until they also migrated.
See failed run here vitejs/vite#12079 (comment) because I included some context of the re-run
There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.
Location: .github/renovate.json5
Error type: The renovate configuration file contains some invalid settings
Message: Invalid configuration option: node
looks like tsm is greedy with --help
lukeed/tsm#22
Current webhook doesn't log all details needed to figure out what was executed and isn't configurable. Use a custom github action or some other way to show custom messages on vite discord
pnpm test -- marko --release 2.8.6
passes but pnpm test -- marko
fails with
> @marko/[email protected] mocha
> NODE_ENV=test mocha 'src/**/__tests__/*.test.ts'
browser-basic
✔ dev (1314ms)
✔ build (1097ms)
isomorphic-basic
✔ dev (1134ms)
1) build
3 passing (4s)
1 failing
1) isomorphic-basic
build:
/home/dominikg/develop/vite-ecosystem-ci/workspace/marko/marko/src/__tests__/fixtures/isomorphic-basic/dist/index.js:240
window.addEventListener("message", function(ev) {
^
ReferenceError: window is not defined
at Module.<anonymous> (src/__tests__/fixtures/isomorphic-basic/dist/index.js:240:1)
at Module._compile (node:internal/modules/cjs/loader:1101:14)
at Module._compile (node_modules/esbuild-register/dist/node.js:2258:26)
at Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
at Object.newLoader (node_modules/esbuild-register/dist/node.js:2262:9)
at Object.extensions..js (node_modules/esbuild-register/dist/node.js:4801:24)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object.<anonymous> (src/__tests__/fixtures/isomorphic-basic/server.js:4:21)
at Module._compile (node:internal/modules/cjs/loader:1101:14)
at Module._compile (node_modules/esbuild-register/dist/node.js:2258:26)
at Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
at Object.newLoader (node_modules/esbuild-register/dist/node.js:2262:9)
at Object.extensions..js (node_modules/esbuild-register/dist/node.js:4801:24)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:190:29)
at ModuleJob.run (node:internal/modules/esm/module_job:185:25)
at async Promise.all (index 0)
at async ESMLoader.import (node:internal/modules/esm/loader:281:24)
at async importModuleDynamicallyWrapper (node:internal/vm/module:437:15)
at Context.<anonymous> (src/__tests__/main.test.ts:133:12)
vite ref: b0c0efe009c4234c8915a649dc9b1568d1d8a07f
storybook changed the repository layout for vite-builder and package.json no longer is in root of the repo but in packages/vite-builder
causing an error in the test https://github.com/vitejs/vite-ecosystem-ci/actions/runs/3202468586/jobs/5231480918#step:7:269
Possible fixes:
#33 focuses on using it for forks of vite (PR), but the general pattern of executing downstream ci's is interesting for a lot of ecosystems.
eg. svelte, nuxt, vue
For example, we would be getting Ladle specific results posted into our Ladle discord server. Ideally, it would report only failed runs.
reasons:
node16 and node18 have differences in network stack defaults
windows file system is a bitch
on windows some shell commands might not work as expected, so either force shell to bash or look into using generic commands/node scripts to replace them
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
@types/node
, @typescript-eslint/eslint-plugin
, @typescript-eslint/parser
, pnpm
, tsx
, typescript
).github/workflows/ci.yml
actions/checkout v4
actions/setup-node v4
actions/setup-node v4
.github/workflows/ecosystem-ci-from-pr.yml
tibdex/github-app-token v2
actions/github-script v7
actions/checkout v4
actions/setup-node v4
actions/checkout v4
actions/setup-node v4
tibdex/github-app-token v2
actions/github-script v7
.github/workflows/ecosystem-ci-selected.yml
actions/checkout v4
actions/setup-node v4
.github/workflows/ecosystem-ci.yml
actions/checkout v4
actions/setup-node v4
package.json
@actions/core ^1.10.1
cac ^6.7.14
execa ^8.0.1
node-fetch ^3.3.2
@antfu/ni ^0.21.12
@types/node ^20.11.30
@types/semver ^7.5.8
@typescript-eslint/eslint-plugin ^7.4.0
@typescript-eslint/parser ^7.4.0
eslint ^8.57.0
eslint-define-config ^2.1.0
eslint-plugin-n ^16.6.2
lint-staged ^15.2.2
prettier ^3.2.5
semver ^7.6.0
simple-git-hooks ^2.11.1
tsx ^4.7.1
typescript ^5.4.3
pnpm 8.15.5
to allow more flexibility with custom ci scripts, eg. Installation of playwright.
Idea: check pkg script existence and omit nr
if not a script.
Line 101 in d7ddfed
To be able to run PRs from forks
After node20 is promoted to active lts status by the end of october, switch to it
running pnpm test -- hydrogen
results in the following error:
error An unexpected error occurred: "ENOENT: no such file or directory, stat '/home/dominikg/develop/vite-ecosystem-ci/workspace/hydrogen/hydrogen/node_modules/vite/node_modules/resolve'".
yarn install v1.22.17
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
[4/5] Linking dependencies...
info If you think this is a bug, please open a bug report with the information provided in "/home/dominikg/develop/vite-ecosystem-ci/workspace/hydrogen/hydrogen/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
at makeError (file:///home/dominikg/develop/vite-ecosystem-ci/node_modules/.pnpm/[email protected]/node_modules/execa/lib/error.js:59:11)
at handlePromise (file:///home/dominikg/develop/vite-ecosystem-ci/node_modules/.pnpm/[email protected]/node_modules/execa/index.js:119:26)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async $ (file:///home/dominikg/develop/vite-ecosystem-ci/utils.ts:42:18)
at async applyPackageOverrides (file:///home/dominikg/develop/vite-ecosystem-ci/utils.ts:239:5)
at async runInRepo (file:///home/dominikg/develop/vite-ecosystem-ci/utils.ts:142:3)
at async test (file:///home/dominikg/develop/vite-ecosystem-ci/tests/hydrogen.ts:22:3)
at async run (file:///home/dominikg/develop/vite-ecosystem-ci/ecosystem-ci.ts:103:3)
at async CAC.<anonymous> (file:///home/dominikg/develop/vite-ecosystem-ci/ecosystem-ci.ts:42:5) {
shortMessage: 'Command failed with exit code 1: yarn install',
if you look closely, you'll notice that vite is inside hydrogen/node_modules
and not our local one.
this seems to be caused by the fact that yarn1 silently refuses to use absolute paths in resolutions
.
prefixing the resolution path with link:
fixes that, but then other errors crop up because yarn tries to hoist dependencies and that fails.
Already tried rewriting hydrogens workspaces declaration in package.json to
"workspaces": {
"packages": [
"examples/*",
"packages/*",
"packages/playground/*"
],
"nohoist": [
"vite/**"
]
},
but that failed with
Error: ENOENT: no such file or directory, lstat '/home/dominikg/develop/vite-ecosystem-ci/workspace/vite/packages/vite/node_modules/esbuild-linux-64'
tbh i'm out of ideas and not familiar with yarn1 or hydrogens project setup.
@frandiox: is there a way to to provide a local vite package to hydrogen so that yarn install
works without using yarn link
on the cli?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.