fix: ghc-zip-archive - remove flagged files - #18602
fix: ghc-zip-archive - remove flagged files#18602Andrew Phelps (anphel31) wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
Pull request overview
Removes an encrypted test fixture from ghc-zip-archive to satisfy signing-pipeline scanning requirements.
Changes:
- Adds an archive overlay to remove the fixture.
- Disables the package test suite.
- Refreshes generated sources, spec, and lock state.
Reviewed changes
Copilot reviewed 4 out of 5 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
base/comps/ghc-zip-archive/ghc-zip-archive.comp.toml |
Defines source and spec overlays. |
base/comps/components.toml |
Moves the customized component out of the inline list. |
locks/ghc-zip-archive.lock |
Refreshes the component fingerprint. |
specs/g/ghc-zip-archive/ghc-zip-archive.spec |
Records the generated test toggle and release bump. |
specs/g/ghc-zip-archive/sources |
Pins the repacked archive checksum. |
💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| regex = '^%bcond tests 1$' | ||
| replacement = '%bcond tests 0' |
| filename = "zip-archive-0.4.3.2.tar.gz" | ||
| hash = "ebf8adf1972fac04c7ba1eb612b7315e06bc15e6393225e412ee9c75de12334116fd1880a3a1e2b960faaf060370266004c32532a0a9c80ffd4dbef863e74fc3" | ||
| hash-type = "SHA512" | ||
| origin = { type = "overlay" } |
470984b to
3c7db7c
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 4 out of 5 changed files in this pull request and generated no new comments.
Suppressed comments (1)
base/comps/ghc-zip-archive/ghc-zip-archive.comp.toml:44
- The new
overlayorigin is supported by the pinned azldev, but it is missing from this repository's authoritative schema:external/schemas/azldev.schema.json:716-719permits onlydownloadandcustom. As a result, schema-aware validation and editor tooling will reject this component definition. Please regenerate and commit the schema with the pinned azldev sooverlayis included.
origin = { type = "overlay" }
3c7db7c to
0f3b95b
Compare
| type = "file-remove" | ||
| archive = "zip-archive-0.4.3.2.tar.gz" | ||
| file = "tests/zip_with_password.zip" |
The zip-archive test suite ships tests/zip_with_password.zip, a password-protected (encrypted) fixture that fails the package-signing scan and blocks signing. Remove it with an azldev archive overlay (file-remove) that deterministically repacks the source tarball, and drop the three test cases that read it (testExtractFilesFailOnEncrypted, testPasswordProtectedRead, testIncorrectPasswordRead) via file-search-replace overlays so the rest of the Cabal suite (%bcond tests 1) keeps running. Test-only, not shipped in any binary RPM.
0f3b95b to
e7045df
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 4 out of 5 changed files in this pull request and generated no new comments.
Suppressed comments (1)
base/comps/ghc-zip-archive/ghc-zip-archive.comp.toml:11
- Remove this fixture from the Cabal manifest as well.
specs/g/ghc-zip-archive/zip-archive-0.4.3.2.cabal:44still lists it underExtra-Source-Files, and%prepreplaces the archive's Cabal file with that separateSource1(ghc-zip-archive.spec:31-32,137-138). The resulting source tree therefore advertises a nonexistent file, so Cabal source-distribution/package checks can fail. Add an overlay for the loose Cabal source and refresh its generated hash, lock, and rendered sources.
file = "tests/zip_with_password.zip"
|
Superseded by #18624 (branch renamed; same change). |
Remove a password-protected (encrypted) test fixture from ghc-zip-archive and drop the three test cases that read it.
The zip-archive test suite ships
tests/zip_with_password.zip, a password-protected (encrypted) fixture. The package-signing scan can't inspect encrypted archives and rejects the .src.rpm, blocking signing. The file is test-only and not shipped in any binary RPM.file-remove) removes the file and repacks the tarball; the post-overlay hash is pinned via asource-filesentry (origin = { type = "overlay" }).file-search-replaceoverlays drop only the three cases that read it (testExtractFilesFailOnEncrypted,testPasswordProtectedRead,testIncorrectPasswordRead), keeping%bcond tests 1and the rest of the Cabal suite running.azldev comp render --check-onlyreports no drift.