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

Use Javascript mega-linter flavor #1090

Merged
merged 2 commits into from Mar 12, 2024

Conversation

BD103
Copy link
Member

@BD103 BD103 commented Mar 11, 2024

Closes #1087.

This configures the mega-linter CI check to use the Javascript flavor, as suggested by Trial in #1087 (comment). Flavors are customized version of the default image are smaller and more specialized.

The goal of this PR is to decrease the mega-linter runtime from 3 minutes to at least 2 minutes, so it will no longer be the slowest job. This appears to decrease the runtime for the mega-linter job from 3 minutes to <1 minute!

@mnmaita
Copy link
Member

mnmaita commented Mar 11, 2024

You beat me to it 😆 let's see how much this improves the CI times! Good callout btw.

@mnmaita
Copy link
Member

mnmaita commented Mar 11, 2024

Should we add the FAIL_IF_MISSING_LINTER_IN_FLAVOR variable in the YAML config? It says:

If set to true, MegaLinter fails if a linter is missing in the selected flavor

which could be handy if new linters are added later down the road (although that might be unlikely).

@BD103
Copy link
Member Author

BD103 commented Mar 11, 2024

This appears to decrease the runtime to <1 minute, which is a definite win!

Should we add the FAIL_IF_MISSING_LINTER_IN_FLAVOR variable in the YAML config? It says:

If set to true, MegaLinter fails if a linter is missing in the selected flavor

which could be handy if new linters are added later down the road (although that might be unlikely).

That sounds like something we should definitely enable, good idea!

Co-authored-by: mnmaita <47983254+mnmaita@users.noreply.github.com>
@BD103 BD103 changed the title Use Javascript mega-linter flavor Use Javascript mega-linter flavor Mar 11, 2024
@BD103 BD103 marked this pull request as ready for review March 11, 2024 12:59
Copy link
Member

@mnmaita mnmaita left a comment

Choose a reason for hiding this comment

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

I don't have any objections to this change but let's see if someone else has any additional input.

Copy link
Member

@TrialDragon TrialDragon left a comment

Choose a reason for hiding this comment

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

Definite improvement that makes it no longer three minutes, just approximately one.

@BD103 BD103 added the S-Ready-For-Final-Review Ready for a maintainer to consider for merging label Mar 11, 2024
@mockersf
Copy link
Member

mockersf commented Mar 11, 2024

Should we add the FAIL_IF_MISSING_LINTER_IN_FLAVOR variable in the YAML config? It says:

If set to true, MegaLinter fails if a linter is missing in the selected flavor

which could be handy if new linters are added later down the road (although that might be unlikely).

Not sure I understand why? We want the linter to fail if we ask it to use a linter it doesn't have

My bad, I need to learn to better read text in all caps

@alice-i-cecile alice-i-cecile added this pull request to the merge queue Mar 12, 2024
Merged via the queue into bevyengine:main with commit a64dda4 Mar 12, 2024
10 checks passed
@BD103 BD103 deleted the mega-linter-flavor branch March 12, 2024 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Build-System C-Usability S-Ready-For-Final-Review Ready for a maintainer to consider for merging
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve speed of mega-linter
5 participants