Skip to content

squawk: ignore require-statement-timeout and require-lock-timeout rules - #4920

Merged
risicle merged 2 commits into
mainfrom
ris-squawk-ignore-require-timeout-rule
Jul 27, 2026
Merged

squawk: ignore require-statement-timeout and require-lock-timeout rules#4920
risicle merged 2 commits into
mainfrom
ris-squawk-ignore-require-timeout-rule

Conversation

@risicle

@risicle risicle commented Jul 21, 2026

Copy link
Copy Markdown
Member

These are not appropriate for us, because we already set these for each migration (though in a way squawk can't see - in the harness) and it prompts people to add these lines to migrations without really knowing what values to give them just to shut the CI up.

@DilwoarH

Copy link
Copy Markdown
Contributor

instead of this, should we just use a config file:

https://squawkhq.com/docs/cli#squawktoml-configuration-file

@risicle

risicle commented Jul 22, 2026

Copy link
Copy Markdown
Member Author

Where do you think we should put it? Repo root?

@DilwoarH

Copy link
Copy Markdown
Contributor

Where do you think we should put it? Repo root?

Yh repo root would be the ideal place or could even sit in the scripts dir

@risicle
risicle force-pushed the ris-squawk-ignore-require-timeout-rule branch from c17037c to 8276155 Compare July 23, 2026 15:55
@risicle

risicle commented Jul 23, 2026

Copy link
Copy Markdown
Member Author

Going to have to temporarily add a migration that would set these off..

@risicle

risicle commented Jul 23, 2026

Copy link
Copy Markdown
Member Author

Oh and this was only split into two rules in 2.60.0 (https://github.com/sbdchd/squawk/blob/master/CHANGELOG.md#v2600---2026-07-18), so I should probably upgrade us to that at the same time.

@risicle
risicle force-pushed the ris-squawk-ignore-require-timeout-rule branch from 8276155 to c2ea754 Compare July 24, 2026 09:31
Comment thread uv.toml Outdated
# This file was automatically copied from notifications-utils@121.0.0

exclude-newer = "7 days"
exclude-newer = "5 days"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yup that is just a very temporary hack - in reality putting an exception here doesn't work very well because the copy_config() thing overwrites the uv.toml before it runs the compile for requirements_for_test.txt

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Which raises an interesting point actually - the compile steps for requirements.txt and requirements_for_test.txt run against different uv.toml versions.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

In theory what we should do is re-run the compile for requirements.txt after the copy_config() and repeat the process until nothing changes and we've therefore reached a "fixed point" (https://en.wikipedia.org/wiki/Fixed-point_combinator)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I guess ideally the freeze command would:

  • install specified version of utils
  • run copy_config()
  • freeze both .txt files and sync

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Might work if you're certain utils is the only thing that affects the outcome.

@risicle
risicle force-pushed the ris-squawk-ignore-require-timeout-rule branch from f40b374 to c2ea754 Compare July 24, 2026 10:47
@risicle
risicle force-pushed the ris-squawk-ignore-require-timeout-rule branch from c2ea754 to bad5d86 Compare July 27, 2026 10:30
@risicle
risicle marked this pull request as ready for review July 27, 2026 10:31
@risicle
risicle requested a review from quis July 27, 2026 10:31
@risicle
risicle merged commit 084182a into main Jul 27, 2026
10 checks passed
@risicle
risicle deleted the ris-squawk-ignore-require-timeout-rule branch July 27, 2026 10:40
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