Skip to content
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

list opam packages #5

Open
samoht opened this issue Jun 12, 2018 · 2 comments
Open

list opam packages #5

samoht opened this issue Jun 12, 2018 · 2 comments
Labels
buildkite Buildkite infrastructure enhancement opam-ci opam-ci tool related

Comments

@samoht
Copy link
Contributor

samoht commented Jun 12, 2018

If thing that I often do when trying to debug a failing build is to check the version of the installed packages. With travis, this means scrolling a bit to find opam actions.

With obi it's not possible to scroll as the logs are trimed a bit; instead it would be nice to have a way to list either the packages which were planned to be installed and/or the list of packages successfully installed without the error.

@avsm
Copy link
Member

avsm commented Jun 12, 2018

We have the right metadata available for this in the Builds branch, since the raw OpamJson is saved. To implement this, we need to:

  • add support in src/lib/opamJsonActions.ml for extracting the installed packages (right now we just use it to determine what was built/skipped)
  • store this information in src/lib/obi.ml in the Index metadata so that it can be accessed by opam-ci.

It will increase the size of the metadata, but we need to do this per-build and not per-package since each build-time configuration could select different packages due to differing compiler/os/arch constraints. If size becomes a problem, we can compress the index.sxp metadata.

@avsm avsm added enhancement buildkite Buildkite infrastructure opam-ci opam-ci tool related labels Jun 12, 2018
@kit-ty-kate
Copy link
Contributor

Slightly related to #22

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
buildkite Buildkite infrastructure enhancement opam-ci opam-ci tool related
Projects
None yet
Development

No branches or pull requests

3 participants