Skip to content

Add unit tests for scoped index state timestamps - #12632

Open
philderbeast wants to merge 1 commit into
haskell:masterfrom
cabalism:test/scoped-index-state-timestamps
Open

philderbeast wants to merge 1 commit into
haskell:masterfrom
cabalism:test/scoped-index-state-timestamps

Conversation

@philderbeast

Copy link
Copy Markdown
Collaborator

I was writing about index-state for the guide on freezing in #9984 and saw a gap in what we test. I wrote these tests that check the interaction of scoped and unscoped timestamps for index-state to be sure that what I was writing matched the current behaviour.

  • An unscoped timestamp is for all repositories.
  • A scoped timestamp is for the repository named before it, and a repository not named is read at HEAD.
  • A scoped timestamp is lost if an unscoped one comes after it.
  • Some values are rejected, such as a space in place of the comma or a repository named HEAD.

This is the behaviour discussed in #8568, as it works within one field's value.


  • Patches conform to the coding conventions.
  • Is this a PR that fixes CI? If so, it will need to be backported to older cabal release branches (ask maintainers for directions).

@philderbeast philderbeast changed the title Add unit tests for scoped index states Add unit tests for scoped index state timetamps Nov 20, 2026
@philderbeast philderbeast changed the title Add unit tests for scoped index state timetamps Add unit tests for scoped index state timestamps Nov 20, 2026
@philderbeast philderbeast mentioned this pull request Nov 20, 2026
1 of 2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant