Skip to content

Add some more generated metadata files #1920

Open

Description

@jku

#1915 adds metadata generation (with stored expected results). We should expand the collection in two directions:

  • The current metadata is basically all with default values: Add More variation on the metadata (different key types, delegations, targets, etc)
  • Include actual repositories (that are confirmed to work as repositories), possibly with several versions of the same repository: Note that we should be careful not to duplicate the code in RepositorySimulator based updater tests: possibly we could just make RepositorySimulator generated data reproducible and store the results of the RepositorySimulator runs (see the --dump option for related tests)

I'll assign to myself: I'll probably handle the first item and file a new issue on the second but let's see...

Activity

  1. added this to the Sprint 20 milestone on Mar 23, 2022
  2. self-assigned this
    on Mar 23, 2022
  3. jku commented on Mar 23, 2022

    @jku
    MemberAuthor

    Pasting in my notes on 1915:

    • The key & signer handling could probably be better (why does the generator function need to construct the signers?) but there's no need to polish everything before we know what the code is going to be like...
    • The error message could mention that new expected results should only be generated if the change in results was expected
      script only works if run from a specific working directory
    • two separate arguments (dump/verify) is weird: that leads to 4 distinct modes but only two of them make sense...
  4. jku commented on Apr 6, 2022

    @jku
    MemberAuthor

    Unassigning for now: too busy to handle this right now

  5. removed their assignment
    on Apr 6, 2022
  6. added
    backlog
    on Apr 20, 2022
  7. removed this from the Sprint 20 milestone on Apr 20, 2022
  8. maindevhoon commented on Nov 3, 2026

    @maindevhoon

    @jku, would a deterministic path-delegation fixture with one target be useful for this issue? I have it working locally with regeneration, signature, metadata-hash, and target-integrity checks. All 206 tests, Ruff, and mypy pass; existing fixtures are unchanged. Versioned repository/client-update fixtures would remain a separate change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    backlogtesting

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions