Closed howardburgess closed 1 year ago
@howardburgess have you looked at why the CI checks are failing? I haven't had time to dig in, but trying to not let this slide
have you looked at why the CI checks are failing? I haven't had time to dig in, but trying to not let this slide
Hi @phenixblue , just had a look:
Failing due to a hash mismatch for MarkupSafe (job).
[pipenv.exceptions.InstallError]: Using cached MarkupSafe-2.0.1-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (30 kB)
[pipenv.exceptions.InstallError]: 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.
...
[pipenv.exceptions.InstallError]: Expected sha256 01a9b8ea66f1658938f65b93a85ebe8bc016e6769611be228d797c9d998dd298
[pipenv.exceptions.InstallError]: Expected or 023cb26ec21ece8dc3907c0e8320058b2e0cb3c55cf9564da612bc325bed5e64
...
[pipenv.exceptions.InstallError]: Got 3dd007d54ee88b46be476e293f48c85048603f5f516008bee124ddd891398ed6
The hash 3dd007d54ee88b46be476e293f48c85048603f5f516008bee124ddd891398ed6
does match what's on pypi.org here.
The innocuous version bump in https://github.com/phenixblue/imageswap-webhook/pull/42 added these hashes in July 2021, whereas pypi.org was updated in August 2021. Strange, since MarkupSafe's v2.0.1 release was in May 2021.
I admit I'm not a Python developer and have had trouble using pip
to update only the hashes for MarkupSafe, which is a transient dependency. If you had a moment to take a look, I can rebase my branch.
Feels like some transient issues, which a re-run might solve.
#11 [6/8] RUN pipenv install --system --deploy
#11 1.041 Installing dependencies from Pipfile.lock (968396)...
#11 108.8 An error occurred while installing cachetools==5.2.0 ; python_version ~= '3.7' --hash=sha256:f9f17d2aec496a9aa6b76f53e3b614c965223c061982d434d160f930c698a9db --hash=sha256:6a94c6402995a99c3970cc7e4884bb60b4a8639938157eeed436098bf9831757! Will try again.
Creating cluster "kind" ...
...
✓ Installing StorageClass 💾
• Waiting ≤ 6m0s for control-plane = Ready ⏳ ...
Error: The operation was canceled.
Dockerfile:13
--------------------
11 | RUN pip install pipenv
12 |
13 | >>> RUN pipenv install --system --deploy
14 |
15 | RUN apk del gcc musl-dev python3-dev libffi-dev openssl-dev
When I build the failing v1.21 imageswap-init
image locally I see no errors, which is strange:
Ok, I think I got the hashes updated as part of #91. Once that is merged, you should be able to rebase and I imagine all checks will pass. Sorry for the delay, lots of stuff going on with my new job/personal life and haven't had as much time as I'd like to work on this.
Thanks, and no apology needed - we appreciate the work you put into this useful project. I'll keep an eye on #91 and will rebase when merged.
Thanks @phenixblue I have rebased to pick up #91 and CI is looking much happier. Just failing on e2e for Kubernetes 1.22, which doesn't look related to my change. Are you able to kick that job off again?
https://github.com/phenixblue/imageswap-webhook/actions/runs/3732799706/jobs/6332889122
[INFO] apply: "test-pod01.yaml"
[30](https://github.com/phenixblue/imageswap-webhook/actions/runs/3732799706/jobs/6332889122#step:11:31)
Error from server (InternalError): error when creating "testing/pods/test-pod01.yaml": Internal error occurred: failed calling webhook "imageswap.webhook.k8s.twr.io": failed to call webhook: Post "[https://imageswap.imageswap-system.svc:443/?timeout=10s](https://imageswap.imageswap-system.svc/?timeout=10s)": read tcp 172.18.0.2:50894->10.96.190.222:443: read: connection reset by peer
[31](https://github.com/phenixblue/imageswap-webhook/actions/runs/3732799706/jobs/6332889122#step:11:32)
make: *** [Makefile:143: test-functional] Error 1
[32](https://github.com/phenixblue/imageswap-webhook/actions/runs/3732799706/jobs/6332889122#step:11:33)
Error: Test did not pass. Exiting...
[33](https://github.com/phenixblue/imageswap-webhook/actions/runs/3732799706/jobs/6332889122#step:11:34)
Yes, just triggered the job to re-run
What type of PR is this? /kind bug
What this PR does / why we need it: Makes ImageSwap correctly honour the
IMAGESWAP_DISABLE_AUTO_MWC
env var, introduced in v1.5.1.Which issue(s) this PR fixes:
Fixes https://github.com/phenixblue/imageswap-webhook/issues/87
Special notes for your reviewer:
Does this PR introduce a user-facing change?:
Additional documentation e.g., usage docs, etc.: