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

fix: export requirements.txt without hashes #1881

Merged
merged 2 commits into from
Nov 18, 2024
Merged

Conversation

cbartz
Copy link
Collaborator

@cbartz cbartz commented Nov 15, 2024

Applicable spec: n/a

Overview

Export requirements.txt without hashes using

poetry export --without-hashes --format=requirements.txt > requirements.txt

Rationale

renovate doesn't seem to be able to update the hashes in all cases leading to integration test failures in those PRs. E.g. #1871 and https://github.com/canonical/repo-policy-compliance/actions/runs/11853653279/job/33034218336?pr=1871#step:5:1468 :

2024-11-15 09:29:25.633 :: 2024-11-15 09:29:24.967 :: ERROR: THESE PACKAGES DO NOT MATCH THE HASHES FROM THE REQUIREMENTS FILE. If you have updated the package versions, please update the hashes. Otherwise, examine the package contents carefully; someone may have tampered with them.
  2024-11-15 09:29:25.633 :: 2024-11-15 09:29:24.967 ::     SQLAlchemy==2.0.36 from https://files.pythonhosted.org/packages/8a/ab/81d4514527c068670cb1d7ab62a81a185df53a7c379bd2a5636e83d09ede/SQLAlchemy-2.0.36-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (from -r requirements.txt (line 685)):
  2024-11-15 09:29:25.633 :: 2024-11-15 09:29:24.967 ::         Expected sha256 032d979ce77a6c2432653322ba4cbeabf5a6837f704d16fa38b5a05d8e21fa00
  2024-11-15 09:29:25.633 :: 2024-11-15 09:29:24.967 ::         Expected     or 0375a141e1c0878103eb3d719eb6d5aa444b490c96f3fedab8471c7f6ffe70ee
  2024-11-15 09:29:25.633 :: 2024-11-15 09:29:24.967 ::         Expected     or 0f9f3f9a3763b9c4deb8c5d09c4cc52ffe49f9876af41cc1b2ad0138878453cf
  2024-11-15 09:29:25.633 :: 2024-11-15 09:29:24.967 ::         Expected     or 1b56961e2d31389aaadf4906d453859f35302b4eb818d34a26fab72596076bb8
  2024-11-15 09:29:25.633 :: 2024-11-15 09:29:24.967 ::         Expected     or 22b83aed390e3099584b839b93f80a0f4a95ee7f48270c97c90acd40ee646f0b
  2024-11-15 09:29:25.633 :: 2024-11-15 09:29:24.967 ::         Expected     or 25b0f63e7fcc2a6290cb5f7f5b4fc4047843504983a28856ce9b35d8f7de03cc
  2024-11-15 09:29:25.633 :: 2024-11-15 09:29:24.967 ::         Expected     or 2a275a806f73e849e1c309ac11108ea1a14cd7058577aba962cd7190e27c9e3c
  2024-11-15 09:29:25.633 :: 2024-11-15 09:29:24.968 ::         Expected     or 3655af10ebcc0f1e4e06c5900bb33e080d6a1fa4228f502121f28a3b1753cde5
  2024-11-15 09:29:25.633 :: 2024-11-15 09:29:24.968 ::         Expected     or 4668bd8faf7e5b71c0319407b608f278f279668f358857dbfd10ef1954ac9f90
  2024-11-15 09:29:25.633 :: 2024-11-15 09:29:24.968 ::         Expected     or 4c31943b61ed8fdd63dfd12ccc919f2bf95eefca133767db6fbbd15da62078ec
  2024-11-15 09:29:25.633 :: 2024-11-15 09:29:24.968 ::         Expected     or 627dee0c280eea91aed87b20a1f849e9ae2fe719d52cbf847c0e0ea34464b3f7
  2024-11-15 09:29:25.633 :: 2024-11-15 09:29:24.968 ::         Expected     or 67219632be22f[1475](https://github.com/canonical/repo-policy-compliance/actions/runs/11853653279/job/33034218336?pr=1871#step:5:1476)0f0d1c70e62f204ba69d28f62fd6432ba05ab295853de9b
  2024-11-15 09:29:25.633 :: 2024-11-15 09:29:24.968 ::         Expected     or 6921ee01caf375363be5e9ae70d08ce7ca9d7e0e8983183080211a062d299468
  2024-11-15 09:29:25.633 :: 2024-11-15 09:29:24.968 ::         Expected     or 69683e02e8a9de37f17985905a5eca18ad651bf592314b4d3d799029797d0eb3
  2024-11-15 09:29:25.634 :: 2024-11-15 09:29:24.968 ::         Expected     or 6a93c5a0dfe8d34951e8a6f499a9479ffb9258123551fa007fc708ae2ac2bc5e
  2024-11-15 09:29:25.634 :: 2024-11-15 09:29:24.968 ::         Expected     or 7befc148de64b6060937231cbff8d01ccf0bfd75aa26383ffdf8d82b12ec04ff
  2024-11-15 09:29:25.634 :: 2024-11-15 09:29:24.969 ::         Expected     or 890da8cd1941fa3dab28c5bac3b9da8502e7e366f895b3b8e500896f12f94d11
  2024-11-15 09:29:25.634 :: 2024-11-15 09:29:24.969 ::         Expected     or 89b64cd8898a3a6f642db4eb7b26d1b28a497d4022eccd7717ca066823e9fb01
  2024-11-15 09:29:25.634 :: 2024-11-15 09:29:24.969 ::         Expected     or 8a6219108a15fc6d24de499d0d515c7235c617b2540d97116b663dade1a54d62
  2024-11-15 09:29:25.634 :: 2024-11-15 09:29:24.969 ::         Expected     or 8d625eddf7efeba2abfd9c014a22c0f6b3796e0ffb48f5d5ab106568ef01ff5a
  2024-11-15 09:29:25.634 :: 2024-11-15 09:29:24.969 ::         Expected     or 93a71c8601e823236ac0e5d087e4f397874a421017b3318fd92c0b14acf2b6db
  2024-11-15 09:29:25.634 :: 2024-11-15 09:29:24.969 ::         Expected     or 9509c4123491d0e63fb5e16199e09f8e262066e58903e84615c301dde8fa2e87
  2024-11-15 09:29:25.634 :: 2024-11-15 09:29:24.969 ::         Expected     or a29762cd3d116585278ffb2e5b8cc311fb095ea278b96feef28d0b423154858e
  2024-11-15 09:29:25.634 :: 2024-11-15 09:29:24.970 ::         Expected     or a62dd5d7cc8626a3634208df458c5fe4f21200d96a74d122c83bc2015b333bc1
  2024-11-15 09:29:25.634 :: 2024-11-15 09:29:24.970 ::         Expected     or aee110e4ef3c528f3abbc3c2018c121e708938adeeff9006428dd7c8555e9b3f
  2024-11-15 09:29:25.634 :: 2024-11-15 09:29:24.970 ::         Expected     or b76d63495b0508ab9fc23f8152bac63205d2a704cd009a2b0722f4c8e0cba8e0
  2024-11-15 09:29:25.634 :: 2024-11-15 09:29:24.970 ::         Expected     or c41411e192f8d3ea39ea70e0fae48762cd11a2244e03751a98bd3c0ca9a4e936
  2024-11-15 09:29:25.635 :: 2024-11-15 09:29:24.970 ::         Expected     or c68fe3fcde03920c46697585620135b4ecfdfc1ed23e75cc2c2ae9f8502c10b8
  2024-11-15 09:29:25.635 :: 2024-11-15 09:29:24.970 ::         Expected     or cc32b2990fc34380ec2f6195f33a76b6cdaa9eecf09f0c9404b74fc120aef36f
  2024-11-15 09:29:25.635 :: 2024-11-15 09:29:24.970 ::         Expected     or ccae5de2a0140d8be6838c331604f91d6fafd0735dbdcee1ac78fc8fbaba76b4
  2024-11-15 09:29:25.635 :: 2024-11-15 09:29:24.971 ::         Expected     or d299797d75cd747e7797b1b41817111406b8b10a4f88b6e8fe5b5e59598b43b0
  2024-11-15 09:29:25.635 :: 2024-11-15 09:29:24.971 ::         Expected     or e11d7ea4d24f0a262bccf9a7cd6284c976c5369dac21db237cff59586045ab9f
  2024-11-15 09:29:25.635 :: 2024-11-15 09:29:24.971 ::         Expected     or e21f66748ab725ade40fa7af8ec8b5019c68ab00b929f6643e1b1af461eddb60
  2024-11-15 09:29:25.635 :: 2024-11-15 09:29:24.971 ::         Expected     or eb60b026d8ad0c97917cb81d3662d0b39b8ff1335e3fabb24984c6acd0c900a2
  2024-11-15 09:29:25.635 :: 2024-11-15 09:29:24.971 ::         Expected     or f021d334f2ca692523aaf7bbf7592ceff70c8594fad853416a81d66b35e3abf9
  2024-11-15 09:29:25.635 :: 2024-11-15 09:29:24.971 ::         Expected     or f552023710d4b93d8fb29a91fadf97de89c5926c6bd758897875435f2a939f33
  2024-11-15 09:29:25.635 :: 2024-11-15 09:29:24.972 ::              Got        ac9dfa18ff2a67b09b372d5db8743c27966abf0e5344c555d86cc7199f7ad83a

Module Changes

Checklist

  • The contributing guide was applied
  • The documentation is generated using src-docs
  • The PR is tagged with appropriate label (urgent, trivial, complex)
  • Version has been incremented on pyproject.toml and rockcraft.yaml

@cbartz cbartz added bug Something isn't working trivial labels Nov 15, 2024
@cbartz cbartz requested a review from a team as a code owner November 15, 2024 12:19
@cbartz cbartz self-assigned this Nov 15, 2024
@cbartz cbartz merged commit 77fde34 into main Nov 18, 2024
9 checks passed
@cbartz cbartz deleted the fix/stop-exporting-hashes branch November 18, 2024 18:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working trivial
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants