Skip to content

Adapt code to new mirage-crypto (CP-308222) #6512

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

Merged
merged 2 commits into from
Jun 10, 2025

Conversation

psafont
Copy link
Member

@psafont psafont commented Jun 9, 2025

Unfortunately mirage-crypto has accumulated breaking changes:

  • Cstructs have been replaced with strings
  • The digestif library has replaced ad-hoc hash implementation

A deprecation has happened as well:

  • RNG initialization has changed

Because there are breaking changes, xs-opam changes need to be introduced at the same time: xapi-project/xs-opam#731

Only xapi is affected by the breaking builds, so no other toolstack repositories have incoming PRs.
I've tested builds with Smoke and validation tests: SR 218740

This means that the merge will be done as such:

  • Both PRs are approved
  • First I will merge xs-opam will be emrged (with failing CI)
  • Then this PR will be merged with the merge train that runs tests before actually merging.
  • CI is rerun manually on xs-opam to make it green again

After merging both xenserver's CI should create a successful build with both PR included

Unfortunately mirage-crypto has accumulated breaking changes:
- Cstructs have been replaced with strings
- The digestif library has replaced ad-hoc hash implementation

A deprecation has happened as well:
- RNG initialization has changed

Signed-off-by: Pau Ruiz Safont <[email protected]>
The only use of it was a parameter that was not used anywhere

Signed-off-by: Pau Ruiz Safont <[email protected]>
@psafont psafont force-pushed the private/paus/stringy-crypto branch from e356082 to 87ca449 Compare June 9, 2025 15:59
@psafont psafont added this pull request to the merge queue Jun 10, 2025
Merged via the queue into xapi-project:master with commit 909b48e Jun 10, 2025
16 of 18 checks passed
@psafont psafont deleted the private/paus/stringy-crypto branch June 10, 2025 14:05
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