Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: use rollup --failAfterWarnings, diet version #911

Merged
merged 1 commit into from
Feb 19, 2025

Conversation

emersion
Copy link
Member

@emersion emersion commented Feb 18, 2025

We've got to a point where we've eliminated almost all build errors. We previously did not notice these because they only show up as warnings in CI, without making CI fail.

Use rollup --failAfterWarnings so that CI fails when a build error is emitted.

Leave ui-spacetimechart and ui-trackoccupancydiagram alone, because these still have a failure due to a circular dependency:

(!) [plugin typescript] ../ui-spacetimechart/src/lib/types.ts (6:8): @rollup/plugin-typescript TS2307: Cannot find module '@osrd-project/ui-trackoccupancydiagram/dist/components/types' or its corresponding type declarations.
/home/runner/work/osrd-ui/osrd-ui/ui-spacetimechart/src/lib/types.ts:6:8

6 } from '@osrd-project/ui-trackoccupancydiagram/dist/components/types';
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

These remaining errors will be fixed when all charts are refactored into a single package.

Full version here: #833

We've got to a point where we've eliminated almost all build errors.
We previously did not notice these because they only show up as
warnings in CI, without making CI fail.

Use rollup --failAfterWarnings so that CI fails when a build error
is emitted.

Leave ui-spacetimechart and ui-trackoccupancydiagram alone, because
these still have a failure due to a circular dependency:

    (!) [plugin typescript] ../ui-spacetimechart/src/lib/types.ts (6:8): @rollup/plugin-typescript TS2307: Cannot find module '@osrd-project/ui-trackoccupancydiagram/dist/components/types' or its corresponding type declarations.
    /home/runner/work/osrd-ui/osrd-ui/ui-spacetimechart/src/lib/types.ts:6:8

    6 } from '@osrd-project/ui-trackoccupancydiagram/dist/components/types';
             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Simon Ser <[email protected]>
@emersion emersion changed the title build: use rollup --failAfterWarnings build: use rollup --failAfterWarnings, diet version Feb 18, 2025
@emersion emersion marked this pull request as ready for review February 18, 2025 09:34
@emersion emersion requested a review from a team as a code owner February 18, 2025 09:34
@emersion emersion requested review from kmer2016, RomainValls and theocrsb and removed request for RomainValls February 18, 2025 09:34
Copy link
Contributor

@theocrsb theocrsb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM and tested

Copy link
Contributor

@kmer2016 kmer2016 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@emersion emersion added this pull request to the merge queue Feb 19, 2025
Merged via the queue into dev with commit 04acca9 Feb 19, 2025
6 checks passed
@emersion emersion deleted the emr/rollup-fail-with-warnings-diet branch February 19, 2025 10:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants