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

Fork opencontainers/runtime-tools to allow us more control #800

Closed
wants to merge 1 commit into from

Conversation

rhatdan
Copy link
Member

@rhatdan rhatdan commented Oct 1, 2021

We are the only tools that are using runtime-tools, rather then
having to go through the vendoring process, I want to move this
under containers/common.

Signed-off-by: Daniel J Walsh dwalsh@redhat.com

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Oct 1, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: rhatdan

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

We are the only tools that are using runtime-tools, rather then
having to go through the vendoring process, I want to move this
under containers/common.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
@rhatdan
Copy link
Member Author

rhatdan commented Oct 8, 2021

@mrunalp PTAL at the validate_test.go errors. I am having a hard time debugging. I think the issue is something to do with us vendoring in a version of runtime-spec that is not released.

@mrunalp
Copy link

mrunalp commented Oct 8, 2021

@kolyshkin could you take a look?

@kolyshkin
Copy link
Contributor

Looking...

Would be done to have this split into two parts:

  1. Moving files from vendor/github.com/opencontainers/runtime-tools to pkg/runtime-tools, and other changes related to this move (import statements, go.mod/go.sum, vendor/modules.txt, etc).
  2. Any further modifications to the (now-local) runtime-tools (can be more than a single commit).

Otherwise those modifications are not described.

@kolyshkin
Copy link
Contributor

I took a look, the Could not read schema from HTTP, response status is 404 Not Found that cause failures in TestJSONSchema test all come from the different version of github.com/xeipuuv/gojsonschema package:

  • opencontainers/runtime-tools uses v0.0.0-20170528113821-0c8571ac0ce1
  • this PR uses v1.2.0

When I update xeipuuv/gojsonschema to v1.2.0 in upstream runtime-tools, I get the same error.

Unfortunately it's impossible to downgrade that package in this repo, as there are way too many conflicting dependencies, resulting in a downgrade being reverted.

I am currently working on bringing opencontainers/runtime-tools to a better shape and will try to make it work with recent xeipuuv/gojsonschema.

@mrunalp
Copy link

mrunalp commented Oct 18, 2021

I think mainly we just want to import the generate library so we can trim down what we are pulling in.

@kolyshkin
Copy link
Contributor

I think mainly we just want to import the generate library so we can trim down what we are pulling in.

I hope we can avoid forking altogether. Let's see if I can revive this

@kolyshkin
Copy link
Contributor

OK, I have finally figured this out

These failures are happening because new xeipuuv/gojsonschema tries to resolve ids in a schema v1.0.0. Those IDs were removed by opencontainers/runtime-spec#945.

Fixed this in kolyshkin/runtime-tools#1 (the PR against the upstream repo is not even opened yet since I am waiting for them to merge my earlier changes, notably opencontainers/runtime-tools#727 and opencontainers/runtime-tools#728).

@rhatdan
Copy link
Member Author

rhatdan commented Oct 19, 2021

Ok, I am fine with not merging, if they allow Red Hatters Me, You and Valentin to be administrators of the repo.

@rhatdan rhatdan closed this Oct 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants