Skip to content

Update releases.json #9872

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
May 7, 2025
Merged

Update releases.json #9872

merged 2 commits into from
May 7, 2025

Conversation

rbhanda
Copy link
Contributor

@rbhanda rbhanda commented May 7, 2025

No description provided.

@rbhanda rbhanda requested review from leecow and victorisr as code owners May 7, 2025 22:47
@rbhanda rbhanda merged commit b106836 into main May 7, 2025
2 checks passed
@rbhanda rbhanda deleted the rbhanda-patch-1 branch May 7, 2025 22:50
@richlander
Copy link
Member

What was the reason for this change? Did bad hashes get pushed or these files were re-pushed?

@victorisr
Copy link
Contributor

@richlander Yes, Bad hashed are being pushed, we are getting hash mismatch errors in release pipeline

For example:

2025-05-08T18:39:38.7522802Z 18:39:27.678 fail: HashValidationOfManifestFileJob/HashValidationTask[0]
2025-05-08T18:39:38.7524232Z       Hash mismatch for runtime [osx-arm64] dotnet-runtime-osx-arm64.pkg - https://builds.dotnet.microsoft.com/dotnet/Runtime/8.0.6/dotnet-runtime-8.0.6-osx-arm64.pkg

2025-05-08T18:39:38.7527880Z 18:39:27.862 fail: HashValidationOfManifestFileJob/HashValidationTask[0]
2025-05-08T18:39:38.7529095Z       Hash mismatch for runtime [osx-x64] dotnet-runtime-osx-x64.pkg - https://builds.dotnet.microsoft.com/dotnet/Runtime/8.0.6/dotnet-runtime-8.0.6-osx-x64.pkg

2025-05-08T18:43:44.4788529Z Pipeline FAILED!
2025-05-08T18:43:44.4788932Z Job statuses:
2025-05-08T18:43:44.4789332Z HashValidationOfManifestFileJob: Failed
2025-05-08T18:43:44.4789499Z 
2025-05-08T18:43:44.8406973Z ##[error]PowerShell exited with code '1'.
2025-05-08T18:43:44.8828141Z ##[section]Finishing: Validate hashes

This PR is an attempt to address these errors.

@richlander
Copy link
Member

Ouch. I am hoping we are putting fixed in place to avoid that going forward.

@corngood
Copy link

I just came across something like this in 9.0.5. I wrote a script:

#!/bin/sh
curl -fsSL https://dotnetcli.blob.core.windows.net/dotnet/release-metadata/$1/releases.json |
    jq -r '.releases[] | [ .runtime, ."aspnetcore-runtime", .sdks[] ] | .[].files[] | .url, .hash' |
        while read url
        do read hash
            hash2=($(curl -fsSL "$url" | sha512sum))
            [[ "$hash" == "$hash2" ]] || echo "ERROR: $url expected $hash, got $hash2"
        done

It's failing right now when I run it against 9.0:

ERROR: https://builds.dotnet.microsoft.com/dotnet/Runtime/9.0.5/dotnet-runtime-9.0.5-osx-arm64.pkg expected f86c1878b3658470db8da846fbe60e2e5b2047668fdc0ec6b538c8328175b888a19792aab6521820d0b2a106f69c126ebc10f479ec83c2dc42800f6d54a75ca4, got dcb7edc7047177922e6a3b915ee83d308a52c84921e3c73960e5acaf46226069f8b8155e7e6dc78bf5b8816e1c1a587110982197d3680da5abb69959eea4bbf3
ERROR: https://builds.dotnet.microsoft.com/dotnet/Runtime/9.0.5/dotnet-runtime-9.0.5-osx-arm64.tar.gz expected 809d8b36f4d1333b0e00ccd299ad25d1caf4e669fb41d814fce4efd12347b1047e18ccc6ca3042fe81324a9b93142c5f9c5868de16273956e01f9942d01d942f, got 12a1de13d1a72c2e6c5198e83a178e1b9325c7c468a7387c5c8a29b0857160be5139516023485ce9108e26e91a35fa8252a8f2c0d59d4691b1ce46d66aada57f
ERROR: https://builds.dotnet.microsoft.com/dotnet/Runtime/9.0.5/dotnet-runtime-9.0.5-osx-x64.pkg expected 1a6e874204524e5e996a19e049283f5b6a2800553d01cdc47328c0fad3edd0a1e103b211a5a2aa6e213f758f4c126ea11dba4c327fd352eb3a2626b73ba779ef, got 1d386e1da3f2b4e16aa0d7718c781b0fa3d77ccb6564219c48901def119daad399024d5403fd77e53830ff9997dc2ba51346ce28b523974baea6f9d16f1c0670
ERROR: https://builds.dotnet.microsoft.com/dotnet/Runtime/9.0.5/dotnet-runtime-9.0.5-osx-x64.tar.gz expected 7932c816cf4c9b13d594ca5bb716b6eee8dd09a9859d04db41f916179fdc806a42801d51855d9cad5cefe8bb93c501b776640a15be9ad56da98a74f1f91d5304, got 8b3e8db4c4efaf94ad6d9462d4a703f59bac390b917787799d7f8be7910798adc84a9683cda9efebfb39a27b41a530e9b5a082ddd19fd884f43d167946c7cc44
ERROR: https://builds.dotnet.microsoft.com/dotnet/aspnetcore/Runtime/9.0.5/aspnetcore-runtime-9.0.5-osx-arm64.tar.gz expected 7b208732e3ac13581f1573cbda87d8871dfa613dba587b147c72053e68bdb8abcee29fa61662b7ab722022d8e67467b2127fe38cd698a936fe198989a766b577, got b7c53870182ad2d24e0527c3bed6d462676b3ae15fa84e397ee68c84ba7a22baa7255adf68166f41c9721378169c63864dc2fdd07a33aaf016c23a87a168cec5
ERROR: https://builds.dotnet.microsoft.com/dotnet/aspnetcore/Runtime/9.0.5/aspnetcore-runtime-9.0.5-osx-x64.tar.gz expected 84aee767d189aaf578273020062288f08f5cc46a3184fb9f304519b88709f1f14b6f9002abd23365dcfda23ac59a896d4297833dc1411917ba4d7610779d083b, got 6629add0171b8f054155b70bc3b8dc6ce99f1d95c6b6556825641c0e8a61cda81f21d07bc7aa7d993ff51f9544ef699a27eca12fd2d5eeb46723ade2fd26f99a
ERROR: https://builds.dotnet.microsoft.com/dotnet/Sdk/9.0.204/dotnet-sdk-9.0.204-osx-arm64.pkg expected 0271af6d9f732fedc544a0173ec27018851dcd643d512c83c78e793b05e188cacdab3581de6d01aafca0c58230ca140087e60b561b9a623e5c2e8e72bcee1c54, got c5d7942e5a865e758cddd85e7c953a5c84f988553cdbbb8e843a4546df716aa304a3dd3a7c270509193beb137d44724e571168a4d1abdd3700e00a8cbad5d991
ERROR: https://builds.dotnet.microsoft.com/dotnet/Sdk/9.0.204/dotnet-sdk-9.0.204-osx-arm64.tar.gz expected f0e912e3b7b4e1f25ebe6b080c4e75d9bca9efa1b2cf39149aa31499816536ad1deb0c6654f09faa60e1d7a54d575ff89a7335236d7317c85a4c48c50a5cf20e, got c352d8cfc4bc50c5bd6e3bac204c2648ace7ff2db9f7e3bd9fb1944dc8452ea457a0acb5429098eb1d33224ee897af0e2c89a07e0e7c8c5a0bce8ca9a36f1da9
ERROR: https://builds.dotnet.microsoft.com/dotnet/Sdk/9.0.204/dotnet-sdk-9.0.204-osx-x64.pkg expected 7d74377e76a650de6373dd1d3f246c8055d63cd2a9123cacbfa48511ef8071379a221db233b9f33767bbdb3fb2fe09740e09059c3007cb13172c1aacd336275b, got 03287fe9682d91e8eb78cc6f0c2373d1f6ece223e26aa0de9baffc9c7bfcbb8c43c7870c303247010025b6110bb2baa7b98457144c43254c1f93cdb8a4369db2
ERROR: https://builds.dotnet.microsoft.com/dotnet/Sdk/9.0.204/dotnet-sdk-9.0.204-osx-x64.tar.gz expected 5f5f69551004e008e1c20b1cde581c213a1a6fbfc59998fa32151668a85a52dff8f86a2ac8dfa708140b10e186117eeb9d7ed5a30f8049069ec99c9c16798a59, got 1d04e16d3edc2d661cd00261a87b5584b4e91a539f0aee7c622882b7b27065023d4430270b2527843ed977b9eceb429ea985ffda0c2aa48f1e9d57c1784e9165
ERROR: https://builds.dotnet.microsoft.com/dotnet/Sdk/9.0.106/dotnet-sdk-9.0.106-osx-arm64.pkg expected 74253531b5287c9deda2d4bb911e79a39c989d9f53494de90a698dca8101e45cd5aac349282e34d31d5ced5879dff0b1bc9e777f796d170ad87fdf3906dd9bb7, got 49d6c34951caa21f672cfcb38d7036f159ca8830c8f358f2dfe4f36f8c08dbbc6c556d4372ada86a69f5c7fbbee6c167dc4626cb8aff15c8fecc1abc2aa40c6f
ERROR: https://builds.dotnet.microsoft.com/dotnet/Sdk/9.0.106/dotnet-sdk-9.0.106-osx-arm64.tar.gz expected f5b7fc08a953e1a52bf288b3baf67bf9a99951e26b43f8ac717e9e377e102625523e0c059105948802280d1c86963c689d91b30a4ff43c7065948c87be122ba4, got db5e39cffd32be99b9a0ee28c6ede90637180338693701d11a702d056daff505bd82d4e7c8f0cb341e20fa02b9765612ea8808af40da3ebc6a16cd6d3fc1ea3e
ERROR: https://builds.dotnet.microsoft.com/dotnet/Sdk/9.0.106/dotnet-sdk-9.0.106-osx-x64.pkg expected 1223fed921cd24b9c308ef372b9e2121483da68342569ee729f51c426257185c6a28579d4874cc4db1a12e5a84696c00dc37c6448c8c3c2b57a305de75b2ad62, got 7dc83502664141ff598cfe930ab69a9cd5001356668bbb690c5bdf4c0bbc7aee56ee2f0787001c3f26993a4f618a0453c8f84acd573d8bed7e0cd7fb8f886d83
ERROR: https://builds.dotnet.microsoft.com/dotnet/Sdk/9.0.106/dotnet-sdk-9.0.106-osx-x64.tar.gz expected 8c9bdba1d0b2894059f49d484b732f29b9474edde74ae4bff65889986bfe06038cea23fd142c7c557097de65cba6c8c91087ed84e01902a4ae8c7bc51cbbe9fb, got c1328302f90b2d8d123aa0b27e208571dd7b2cc2304e07b1a997bc06644c5ea30bb1d089fc0d3f14efa41ff4d09b9140d58aa8fd3b6a1987975d56e750bda80d

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.

4 participants