Skip to content

Conversation

@abs0luty
Copy link
Contributor

@abs0luty abs0luty commented Dec 9, 2025

This pull request removes these unused snapshots and adds a CI check to prevent unreferenced snapshots from being introduced in the future.

@abs0luty abs0luty changed the title Check for unreferenced insta snapshots CI: Check for unreferenced insta snapshots Dec 9, 2025
@abs0luty abs0luty force-pushed the check-unused-insta-snapshots branch 6 times, most recently from 8fb4580 to 7ae5773 Compare December 9, 2025 12:13
Copy link
Member

@lpil lpil left a comment

Choose a reason for hiding this comment

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

Whoa, cool! I didn't realise you could do this.

@abs0luty abs0luty requested a review from lpil December 11, 2025 14:32
@abs0luty abs0luty force-pushed the check-unused-insta-snapshots branch 16 times, most recently from c39ca78 to 884ab2e Compare December 12, 2025 06:58
@lpil
Copy link
Member

lpil commented Jan 12, 2026

This is getting a bit complex being done on CI. Maybe we could do this instead with a script that folks use in dev?

@abs0luty
Copy link
Contributor Author

abs0luty commented Jan 12, 2026

@lpil Well I'm not sure about it, the whole point is to make CI check unreferenced snapshots so this thing doesn't interfere with most of the contributors' work.

@abs0luty abs0luty force-pushed the check-unused-insta-snapshots branch 2 times, most recently from bc2d881 to 884ab2e Compare January 14, 2026 10:06
@lpil
Copy link
Member

lpil commented Jan 16, 2026

There's not really any cost to having some outdated text files, so any checking on CI would need to also not have any cost. CI complexity is a headache, so any CI based approach would need to not introduce any cost there

@abs0luty abs0luty force-pushed the check-unused-insta-snapshots branch from 884ab2e to 5a627a3 Compare January 18, 2026 14:26
@abs0luty abs0luty changed the title CI: Check for unreferenced insta snapshots Check for unreferenced insta snapshots Jan 18, 2026
@abs0luty
Copy link
Contributor Author

abs0luty commented Jan 18, 2026

@lpil What do you think of adding new targets to the Makefile? Or should I just make the PR only remove unused snapshots at this point?

@abs0luty abs0luty requested a review from lpil January 18, 2026 14:29
@abs0luty abs0luty changed the title Check for unreferenced insta snapshots Remove unreferenced insta snapshots Jan 18, 2026
Copy link
Member

@lpil lpil left a comment

Choose a reason for hiding this comment

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

That looks fab, let's use that. Thank you!

@lpil lpil merged commit 4e82423 into gleam-lang:main Jan 19, 2026
12 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