Skip to content

[experimental] tools for inspecting package images#1015

Draft
tonyaiuto wants to merge 7 commits intobazelbuild:mainfrom
aiuto:ptools
Draft

[experimental] tools for inspecting package images#1015
tonyaiuto wants to merge 7 commits intobazelbuild:mainfrom
aiuto:ptools

Conversation

@tonyaiuto
Copy link
Collaborator

First cut at toolkit to do package inspection.

I started talking about this in #1001
The goal is to create a set of tools that can read through various archive types so that it is easy to build task specific validators. Examples are

  • compare the .deb file from the nightly to the one in my PR. What files changed size or got added
  • compare a .rpm and .deb of the same product, verify that the only diff is in the /etc/init scripts
  • validate that the results of pkg_install produces the same tree of files you get from building a .deb and installing for the same input sources (the original motivation for this tool set)

The rpm and cpio decoder are clean room implementations, that I wrote from the spec.
After that, I used a coding agent to generate most of the readers. It's grunt work and I was happy to farm it out. I intend to use it to build a test suite. The intermediate test is that I'm using this daily at work.

README.md has more details.

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