- Issue created by @larowlan
- ๐ฎ๐ณIndia Anjali Mehta
Anjali Mehta โ made their first commit to this issueโs fork.
- ๐ฆ๐บAustralia larowlan ๐ฆ๐บ๐.au GMT+10
This will need a custom job to run `tsc check` against the ui folder too
- Status changed to Needs work
7 months ago 10:19am 29 May 2024 - ๐ฆ๐บAustralia larowlan ๐ฆ๐บ๐.au GMT+10
fYI we will need to override the eslint job from the template and run `cd ui && npm run lint`
We should change scripts in package.json to make that include stylelint and tsc check
- ๐ง๐ชBelgium wim leers Ghent ๐ง๐ช๐ช๐บ
This blocks ๐ Update eslint prettier configuration Active . Hence escalating priority.
- ๐ง๐ชBelgium wim leers Ghent ๐ง๐ช๐ช๐บ
The benefit of using the GitLab CI template's
eslint
job is that we get nice reports inside the GitLab UI: https://git.drupalcode.org/project/experience_builder/-/pipelines/193684...But โฆ I realize that the template runs:
- $CI_PROJECT_DIR/$_WEB_ROOT/core/node_modules/.bin/eslint --no-error-on-unmatched-pattern --ignore-pattern="*.es6.js" --resolve-plugins-relative-to=$CI_PROJECT_DIR/$_WEB_ROOT/core --ext=.js,.yml --format=junit --output-file=$CI_PROJECT_DIR/junit.xml $_ESLINT_EXTRA . || EXIT_CODE_FILE=$?
โฆ as opposed to:
npm run lint
โฆ which does this, per
package.json
:"lint": "npm run lint:eslint && npm run type-check",
IOW: we've lost
npm run type-check
. That's bad. Perhaps a separate CI job? - ๐ง๐ชBelgium wim leers Ghent ๐ง๐ช๐ช๐บ
And โฆ shouldn't we use
npm ci
instead ofnpm i(nstall)
? See https://stackoverflow.com/questions/52499617/what-is-the-difference-betw....(Not using
npm ci
has caused enormous problems for me in the past ๐ป) - ๐ง๐ชBelgium wim leers Ghent ๐ง๐ช๐ช๐บ
I pushed this forward as much as I could.
- The default
eslint
job should kept because it tightly integrates with the GitLab CI code quality functionality. It also validates YAML formatting. - I agree that adding a separate CI job makes sense for
ui/*
, but then it should:- โ
it should run immediately since it does not use
yarn
anyway (done!) - it should pass (when @larowlan added it, then CI pipeline was green, but that's only because the CI job didn't actually runโฆ)
- โ both should run only when relevant
- We need a follow-up to impose coding standards on the Cypress tests
- โ
it should run immediately since it does not use
- The default
- ๐ง๐ชBelgium wim leers Ghent ๐ง๐ช๐ช๐บ
Iโve got 99% of the eslint MR green. The 1% remaining bits are solely in
ui/
, and require React Hooks knowledge I donโt have and
others could do 100x faster. It probably will take <5 mins for somebody more familiar with React. Letโs get this done today ๐ค - ๐ง๐ชBelgium wim leers Ghent ๐ง๐ช๐ช๐บ
https://git.drupalcode.org/project/experience_builder/-/pipelines/197062... is now listing actual failures thanks to
junit
๐ - First commit to issue fork.
- Assigned to bnjmnm
- Status changed to RTBC
6 months ago 3:28pm 12 June 2024 - ๐ง๐ชBelgium wim leers Ghent ๐ง๐ช๐ช๐บ
Cannot be merged without @bnjmn's final sign-off ๐
- ๐ง๐ชBelgium wim leers Ghent ๐ง๐ช๐ช๐บ
Thanks to ๐ CODEOWNERS: expand + make more pragmatic for when people go on vacation Fixed being more liberal, we can move a bit faster. This has been ready for 2 days, so let's get this in โ there's nothing controversial in here anyway, otherwise I'd definitely wait for @bnjmnm :)
We need a follow-up to impose coding standards on the Cypress tests
That already exists: ๐ Cypress test infrastructure clean-up + baseline E2E test Active .
- Issue was unassigned.
- Status changed to Fixed
6 months ago 9:07am 14 June 2024 -
Wim Leers โ
committed f60fbe72 on 0.x authored by
Anjali Mehta โ
Issue #3450307 by Wim Leers, larowlan, jessebaker: CI: use template's `...
-
Wim Leers โ
committed f60fbe72 on 0.x authored by
Anjali Mehta โ
Automatically closed - issue fixed for 2 weeks with no activity.
- ๐ง๐ชBelgium wim leers Ghent ๐ง๐ช๐ช๐บ
Follow-up: ๐ CI: improve UI-related CI jobs:`UI eslint` obscures TypeScript Compiler errors, `npm run build` runs too late Needs review .