Skip to content

fix: ghc-zip-archive - remove flagged files - #18602

Closed
Andrew Phelps (anphel31) wants to merge 1 commit into
4.0from
anphel/esrp-fix-ghc-zip-archive
Closed

fix: ghc-zip-archive - remove flagged files#18602
Andrew Phelps (anphel31) wants to merge 1 commit into
4.0from
anphel/esrp-fix-ghc-zip-archive

Conversation

@anphel31

@anphel31 Andrew Phelps (anphel31) commented Aug 25, 2026

Copy link
Copy Markdown
Member

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.

  • An azldev archive overlay (file-remove) removes the file and repacks the tarball; the post-overlay hash is pinned via a source-files entry (origin = { type = "overlay" }).
  • Two file-search-replace overlays drop only the three cases that read it (testExtractFilesFailOnEncrypted, testPasswordProtectedRead, testIncorrectPasswordRead), keeping %bcond tests 1 and the rest of the Cabal suite running.

azldev comp render --check-only reports no drift.

Copilot AI balanced review requested due to automatic review settings August 25, 2026 07:52

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment on lines +21 to +22
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" }
Copilot AI review requested due to automatic review settings August 25, 2026 09:30
@anphel31
Andrew Phelps (anphel31) force-pushed the anphel/esrp-fix-ghc-zip-archive branch from 470984b to 3c7db7c Compare August 25, 2026 09:30

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 overlay origin is supported by the pinned azldev, but it is missing from this repository's authoritative schema: external/schemas/azldev.schema.json:716-719 permits only download and custom. As a result, schema-aware validation and editor tooling will reject this component definition. Please regenerate and commit the schema with the pinned azldev so overlay is included.
origin = { type = "overlay" }

Copilot AI review requested due to automatic review settings August 26, 2026 00:48
@anphel31
Andrew Phelps (anphel31) force-pushed the anphel/esrp-fix-ghc-zip-archive branch from 3c7db7c to 0f3b95b Compare August 26, 2026 00:48

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 5 changed files in this pull request and generated 1 comment.

Comment on lines +9 to +11
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.
Copilot AI review requested due to automatic review settings August 26, 2026 04:20
@anphel31
Andrew Phelps (anphel31) force-pushed the anphel/esrp-fix-ghc-zip-archive branch from 0f3b95b to e7045df Compare August 26, 2026 04:20

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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:44 still lists it under Extra-Source-Files, and %prep replaces the archive's Cabal file with that separate Source1 (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"

@anphel31 Andrew Phelps (anphel31) changed the title fix: remove ESRP-flagged encrypted test zip from ghc-zip-archive fix: ghc-zip-archive - remove flagged files Aug 26, 2026
@anphel31
Andrew Phelps (anphel31) deleted the anphel/esrp-fix-ghc-zip-archive branch August 26, 2026 04:55
@anphel31

Copy link
Copy Markdown
Member Author

Superseded by #18624 (branch renamed; same change).

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.

2 participants