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

Combine the code of dealing with 'readonly' and 'ro'. #6443

Merged

Conversation

schrht
Copy link
Contributor

@schrht schrht commented Jun 1, 2020

Combine the code of dealing with 'readonly' and 'ro'.
#6380 (comment)

Signed-off-by: Charles Shih [email protected]

@openshift-ci-robot
Copy link
Collaborator

Hi @SCHEN2015. Thanks for your PR.

I'm waiting for a containers member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@openshift-ci-robot openshift-ci-robot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Jun 1, 2020
@rhatdan
Copy link
Member

rhatdan commented Jun 1, 2020

Filter before image tests is blowing up everywhere?

@mheon
Copy link
Member

mheon commented Jun 1, 2020

/ok-to-test

Yeah, I think master may be broken. Investigating...

@openshift-ci-robot openshift-ci-robot added ok-to-test and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Jun 1, 2020
@mheon
Copy link
Member

mheon commented Jun 1, 2020

/approve

For reference, this PR LGTM

@openshift-ci-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mheon, SCHEN2015

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

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 1, 2020
@mheon
Copy link
Member

mheon commented Jun 1, 2020


[+0225s] ERROR: unsatisfiable constraints:
[+0225s]   man (missing):
[+0225s]     required by: world[man]
[+0225s] Error: error building at STEP "RUN apk update && apk add man": error while running runtime: exit status 1

This is coming out of podman build

return newMount, errors.Wrapf(optionArgError, "badly formatted option %q", val)
}
case "ro", "rw":
case "readonly", "ro", "rw":
Copy link
Member

Choose a reason for hiding this comment

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

doesn't read-only still need to be here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Tom, thanks for asking.

read-only was in the manual, but this option had never been implemented in the code before.

mheon replaced read-only with readonly in the manual (#6380), I went ahead and removed read-only from the code. As the final result, the readonly is in the manual and code, the same behavior as Docker.

Have a nice day.
Charles

@mheon
Copy link
Member

mheon commented Jun 1, 2020

The dockerfile we're trying to build is just one line:

FROM docker.io/library/alpine:latest

@mheon
Copy link
Member

mheon commented Jun 1, 2020

Ah, nevermind, wrong test, it's a 2 liner -

FROM docker.io/library/alpine:latest                                                                                                                                                                                                                       
RUN apk update && apk add man

@mheon
Copy link
Member

mheon commented Jun 1, 2020

Dockerfile works fine locally, command runs fine in an Alpine image.

@schrht
Copy link
Contributor Author

schrht commented Jun 1, 2020

/assign @rhatdan

@mheon
Copy link
Member

mheon commented Jun 1, 2020

Aha, found the issue. My local machine pulls Alpine 3.11, CI is pulling 3.12 - the upgrade must have broken things

@mheon
Copy link
Member

mheon commented Jun 1, 2020

Confirmed, manually pulling 3.12 down, I can replicate

@mheon
Copy link
Member

mheon commented Jun 1, 2020

@SCHEN2015 I'm going to make a PR against master to fix CI, then once that merges you'll need to rebase to pick up the fix

@schrht
Copy link
Contributor Author

schrht commented Jun 1, 2020

@mheon Please go ahead, I will do that. Thank you for the effort!

@mheon
Copy link
Member

mheon commented Jun 1, 2020

#6450 to fix CI

@mheon
Copy link
Member

mheon commented Jun 1, 2020

Should be good to rebase, master is green again. Thanks!

@schrht schrht force-pushed the combine_ro_readonly branch from f76e067 to 9f08881 Compare June 2, 2020 03:27
@rhatdan
Copy link
Member

rhatdan commented Jun 2, 2020

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Jun 2, 2020
@openshift-merge-robot openshift-merge-robot merged commit cc02154 into containers:master Jun 2, 2020
@rhatdan
Copy link
Member

rhatdan commented Jun 2, 2020

Thanks @SCHEN2015 Nice job.

@github-actions github-actions bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Sep 25, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. ok-to-test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants