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

Chore: CI: Fix .eslintignore and .gitignore CI check passes when it should fail #10923

Merged

Conversation

personalizedrefrigerator
Copy link
Collaborator

@personalizedrefrigerator personalizedrefrigerator commented Aug 23, 2024

Summary

Previously, yarn updateIgnored was run indirectly at the beginning of run_ci.sh (by yarn install from app-desktop's gulpfile.ts). This caused checkIgnoredFiles to pass in CI in cases where it should fail.

To see why, observe that checkIgnoredFiles 1) reads the previous content of ignore files, 2) updates them, and 3) compares with the originals. As such, if the ignore files are updated (but not necessarily committed), checkIgnoredFiles can pass.

Testing plan

A test commit has been pushed to this pull request that correctly caused CI to fail.

@personalizedrefrigerator personalizedrefrigerator marked this pull request as draft August 23, 2024 01:59
@personalizedrefrigerator personalizedrefrigerator marked this pull request as ready for review August 23, 2024 02:08
@laurent22
Copy link
Owner

Good find, thanks for fixing this!

@laurent22 laurent22 merged commit 12a2602 into laurent22:dev Aug 23, 2024
10 checks passed
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.

2 participants