Skip to content

Backport #18577 to v4.4.1-rhel#19632

Merged
openshift-merge-robot merged 2 commits intocontainers:v4.4.1-rhelfrom
mheon:backport_18577_441rhel
Aug 16, 2023
Merged

Backport #18577 to v4.4.1-rhel#19632
openshift-merge-robot merged 2 commits intocontainers:v4.4.1-rhelfrom
mheon:backport_18577_441rhel

Conversation

@mheon
Copy link
Copy Markdown
Member

@mheon mheon commented Aug 15, 2023

Backport per RHBZ 2229749

Replaces #19416

Does this PR introduce a user-facing change?

NONE

Fixes: containers#18239

[NO NEW TESTS NEEDED]

@test "podman build -f test" in test/system/070-build.bats

Will test this.  This was passing when run on a local system since
the remote end was using the clients path to read the Containerfile
The issue is it would not work in a podman machine since the
Containerfile would/should be a different path.

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

<MH: Cherry-pick to v4.4.1-rhel>

Signed-off-by: Matt Heon <mheon@redhat.com>
@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci bot commented Aug 15, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mheon

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

The pull request process is described here

Details 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 openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 15, 2023
@github-actions github-actions bot added the kind/api-change Change to remote API; merits scrutiny label Aug 15, 2023
@umohnani8
Copy link
Copy Markdown
Member

LGTM but tests are unhappy

@mheon
Copy link
Copy Markdown
Member Author

mheon commented Aug 15, 2023

Seems infra-related, same issue on all python tests.

@cevich
Copy link
Copy Markdown
Member

cevich commented Aug 15, 2023

@mheon I think you're hitting the same/similar issues I fixed in:

Hopefully the same/similar fix will work here: Restrict PyYAML to exact version 6.0.1.

Curiously, none of our branch-CI monitors seem to have detected this problem 🤔 (cc: @edsantiago & @lsm5). Or they're simple a day behind reality.

@cevich
Copy link
Copy Markdown
Member

cevich commented Aug 15, 2023

Update: Yep, branch-ci ran cleanly 😕

Apparent Cython regression causing a warning and traceback when
installing PyYAML with pip:

Ref. Upstream issue 601: https://github.com/yaml/pyyaml/issues/

Ref. warning message:
```
********************************************************************************
The license_file parameter is deprecated, use license_files instead.
By 2023-Oct-30, you need to update your project and remove deprecated calls
or your builds will no longer be supported.
See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.
********************************************************************************
```

Ref. traceback snippet:
```
Traceback (most recent call last):
  File "/var/tmp/go/src/github.com/containers/podman/venv/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
    main()
...cut...
  File "<string>", line 201, in get_source_files
  File "/tmp/pip-build-env-yiijk0jv/overlay/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 107, in __getattr__
    raise AttributeError(attr)
AttributeError: cython_sources
```

Signed-off-by: Chris Evich <cevich@redhat.com>

<MH: Cherry-pick back to v4.4.1-rhel>

Signed-off-by: Matt Heon <mheon@redhat.com>
@mheon
Copy link
Copy Markdown
Member Author

mheon commented Aug 15, 2023

Fix commit for CI cherry-picked in

@mheon
Copy link
Copy Markdown
Member Author

mheon commented Aug 15, 2023

Rerunning one flake, otherwise seems good to merge.

m = []string{query.Dockerfile}
}
for _, containerfile := range m {
containerFiles = append(containerFiles, filepath.Join(contextDirectory, filepath.Clean(filepath.FromSlash(containerfile))))
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

is the contextDirectory assured to be safe at this point? i.e., no way for a symbolic link to get sluffed in?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

We made it ourselves via extracting a tar file so it should be safe.

setuptools~=50.3.2
python-dateutil~=2.8.1
PyYAML~=5.4.1
PyYAML==6.0.1
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is this correct? We have 6.0.0 upstream, I think they should match, even if it means bumping upstream

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This is straight from @cevich and is necessary to fix CI on the branch

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Not something we ship so it should be fine.

@mheon
Copy link
Copy Markdown
Member Author

mheon commented Aug 16, 2023

@rhatdan @Luap99 @baude PTAL

@rhatdan
Copy link
Copy Markdown
Member

rhatdan commented Aug 16, 2023

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Aug 16, 2023
@openshift-merge-robot openshift-merge-robot merged commit dd490ff into containers:v4.4.1-rhel Aug 16, 2023
@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 Nov 15, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 15, 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. kind/api-change Change to remote API; merits scrutiny 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. release-note-none

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants