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

Shelley testing: check ocert replacement #663

Open
nc6 opened this issue May 18, 2020 · 0 comments
Open

Shelley testing: check ocert replacement #663

nc6 opened this issue May 18, 2020 · 0 comments
Labels
better-tests Ideas to improve the tests technical debt Technical debt

Comments

@nc6
Copy link
Contributor

nc6 commented May 18, 2020

Expand the Shelley testing to replace operational certificates when necessary.

@nc6 nc6 self-assigned this May 18, 2020
@mrBliss mrBliss linked a pull request Jun 12, 2020 that will close this issue
mrBliss referenced this issue in IntersectMBO/ouroboros-network Jun 23, 2020
We were hard-coding `maxKESEvolutions` to 100 in the ThreadNet tests, even
though the mock KES we use only supports 10 evolutions. When running the tests
for a higher number of slots, this was causing failures, as we were trying to
evolve keys more times than they support.

Use the maximum number of evolutions supported by the KES algorithm
(`totalPeriodsKES`) as `maxKESEvolutions`, so this can't happen again. Pick a
value for `sgSlotsPerKESPeriod` so that the ThreadNet tests can run without
re-issuing OCerts (until #2107 is done).

Moreover, assert in `protocolInfoShelley` that the value chosen for
`sgMaxKESEvolutions` is supported by the KES algorithm. A proper check (error
instead of assert) should be done by the genesis validation in
cardano-ledger-specs, see
IntersectMBO/cardano-ledger#1516.
mrBliss referenced this issue in IntersectMBO/ouroboros-network Jun 23, 2020
We were hard-coding `maxKESEvolutions` to 100 in the ThreadNet tests, even
though the mock KES we use only supports 10 evolutions. When running the tests
for a higher number of slots, this was causing failures, as we were trying to
evolve keys more times than they support.

Use the maximum number of evolutions supported by the KES algorithm
(`totalPeriodsKES`) as `maxKESEvolutions`, so this can't happen again. Pick a
value for `sgSlotsPerKESPeriod` so that the ThreadNet tests can run without
re-issuing OCerts (until #2107 is done).

Moreover, assert in `protocolInfoShelley` that the value chosen for
`sgMaxKESEvolutions` is supported by the KES algorithm. A proper check (error
instead of assert) should be done by the genesis validation in
cardano-ledger-specs, see
IntersectMBO/cardano-ledger#1516.
mrBliss referenced this issue in IntersectMBO/ouroboros-network Jun 24, 2020
We were hard-coding `maxKESEvolutions` to 100 in the ThreadNet tests, even
though the mock KES we use only supports 10 evolutions. When running the tests
for a higher number of slots, this was causing failures, as we were trying to
evolve keys more times than they support.

Use the maximum number of evolutions supported by the KES algorithm
(`totalPeriodsKES`) as `maxKESEvolutions`, so this can't happen again. Pick a
value for `sgSlotsPerKESPeriod` so that the ThreadNet tests can run without
re-issuing OCerts (until #2107 is done).

Moreover, assert in `protocolInfoShelley` that the value chosen for
`sgMaxKESEvolutions` is supported by the KES algorithm. A proper check (error
instead of assert) should be done by the genesis validation in
cardano-ledger-specs, see
IntersectMBO/cardano-ledger#1516.
@nfrisby nfrisby transferred this issue from IntersectMBO/ouroboros-network Nov 30, 2023
@nfrisby nfrisby added the technical debt Technical debt label Nov 30, 2023
@dnadales dnadales unassigned nc6 Dec 1, 2023
@nfrisby nfrisby added the better-tests Ideas to improve the tests label Dec 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
better-tests Ideas to improve the tests technical debt Technical debt
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants