buildah icon indicating copy to clipboard operation
buildah copied to clipboard

[skip-ci] Move RHEL branch to TMT

Open lsm5 opened this issue 6 months ago • 22 comments

What type of PR is this?

/kind other

What this PR does / why we need it:

How to verify it

Which issue(s) this PR fixes:

None

Special notes for your reviewer:

None

Does this PR introduce a user-facing change?

None

lsm5 avatar Jun 03 '25 15:06 lsm5

Ephemeral COPR build failed. @containers/packit-build please check.

Packit jobs failed. @containers/packit-build please check.

The validate test uses a bunch of Cirrus variables that I'm not sure can be transferred easily to TMT.

How bad would it be to skip validate test on RHEL branches? I'm guessing there'll be no community contributions directly to RHEL branches, mostly backports / fixes, and quite a few layers of QE.

@containers/buildah-maintainers ^

lsm5 avatar Jun 04 '25 14:06 lsm5

/packit test

lsm5 avatar Jun 04 '25 18:06 lsm5

We'll need branch protection setup to block on the TMT jobs (likewise for every new branch that gets used in RHEL).

Once the PR looks good, I can add that if everyone agrees.

lsm5 avatar Jun 05 '25 18:06 lsm5

@containers/buildah-maintainers PTAL

lsm5 avatar Jun 06 '25 13:06 lsm5

I'll say ignore the epel-9-aarch64 in-progress for now as it seems like a final status reporting issue. I've reported the issue to packit. Also, we're not testing on aarch64 envs yet, so that shouldn't be a blocker.

lsm5 avatar Jun 09 '25 15:06 lsm5

@nalind @flouthoc @TomSweeneyRedHat @Luap99 @mheon PTAL

lsm5 avatar Jun 10 '25 12:06 lsm5

This also removes a basic things like checking if the tree (vendor) dir is clean which I think is generally important. I don't know about the importance of the other removed test cases.

And than of course our old discussion around how we deal with merge protection. I think if we do this than we need to turn of the total success check on the older branches which means we cannot really on the merge no merging to early and users must manually ensure they only merge with passing CI. I am not involved in backports of this repo so I don't care much so I guess this is mostly relevant to @nalind and @TomSweeneyRedHat.

Luap99 avatar Jun 10 '25 15:06 Luap99

This also removes a basic things like checking if the tree (vendor) dir is clean which I think is generally important. I don't know about the importance of the other removed test cases.

I'll add the vendoring test., that one should be no problem. Thanks.

lsm5 avatar Jun 10 '25 15:06 lsm5

Failed to load packit config file:

Please correct data and retry.

For more info, please check out the documentation or contact the Packit team. You can also use our CLI command config validate or our pre-commit hooks for validation of the configuration.

Packit jobs failed. @containers/packit-build please check.

The changes LGTM, but the tests are not at all happy at the moment.

TomSweeneyRedHat avatar Jun 11 '25 17:06 TomSweeneyRedHat

I realized there are some other challenges making this process problematic. Let's keep this and the podman PR on hold. I'll check on further steps with @mohanboddu

lsm5 avatar Jun 11 '25 17:06 lsm5

make lint is failing on CI and also on my local env. Let me know if anyone got a fix for that, or else I'd like to skip it.

go build -o build/golangci-lint ./vendor/github.com/golangci/golangci-lint/cmd/golangci-lint
make[1]: Leaving directory '/var/ARTIFACTS/work-lintt206ahvk/plans/lint/tree/tests/tools'
./tests/tools/build/golangci-lint run 
run_common.go:384:3: missing type in composite literal (typecheck)
		{Name: string(specs.CgroupNamespace), Host: cfg.CgroupNS() == "host"},
		^
run_common.go:385:3: missing type in composite literal (typecheck)
		{Name: string(specs.IPCNamespace), Host: cfg.IPCNS() == "host"},
		^
run_common.go:386:3: missing type in composite literal (typecheck)
		{Name: string(specs.MountNamespace), Host: false},
		^
run_common.go:379:2: declared and not used: cfg (typecheck)
	cfg, err := config.Default()
	^
cmd/buildah/from.go:236:48: iopts.Isolation undefined (type fromReply has no field or method Isolation) (typecheck)
	isolation, err := parse.IsolationOption(iopts.Isolation)
	                                              ^
cmd/buildah/from.go:256:69: iopts.CapAdd undefined (type fromReply has no field or method CapAdd) (typecheck)
	capabilities, err := defaultContainerConfig.Capabilities("", iopts.CapAdd, iopts.CapDrop)
	                                                                   ^
cmd/buildah/from.go:263:44: iopts.DecryptionKeys undefined (type fromReply has no field or method DecryptionKeys) (typecheck)
	decConfig, err := cli.DecryptConfig(iopts.DecryptionKeys)
	                                          ^
cmd/buildah/from.go:272:32: iopts.GroupAdd undefined (type fromReply has no field or method GroupAdd) (typecheck)
		GroupAdd:              iopts.GroupAdd,
		                             ^
cmd/buildah/from.go:280:32: iopts.CNIPlugInPath undefined (type fromReply has no field or method CNIPlugInPath) (typecheck)
		CNIPluginPath:         iopts.CNIPlugInPath,
		                             ^
cmd/buildah/from.go:281:32: iopts.CNIConfigDir undefined (type fromReply has no field or method CNIConfigDir) (typecheck)
		CNIConfigDir:          iopts.CNIConfigDir,
		                             ^
cmd/buildah/from.go:286:32: iopts.BlobCache undefined (type fromReply has no field or method BlobCache) (typecheck)
		BlobDirectory:         iopts.BlobCache,
		                             ^
cmd/buildah/from.go:287:32: iopts.Devices undefined (type fromReply has no field or method Devices) (typecheck)
		DeviceSpecs:           iopts.Devices,
		                             ^
cmd/buildah/from.go:288:32: iopts.Retry undefined (type fromReply has no field or method Retry) (typecheck)
		MaxPullRetries:        iopts.Retry,
		                             ^
cmd/buildah/from.go:290:32: iopts.CDIConfigDir undefined (type fromReply has no field or method CDIConfigDir) (typecheck)
		CDIConfigDir:          iopts.CDIConfigDir,
		                             ^
cmd/buildah/from.go:293:11: iopts.RetryDelay undefined (type fromReply has no field or method RetryDelay) (typecheck)
	if iopts.RetryDelay != "" {
	         ^
cmd/buildah/from.go:294:58: iopts.RetryDelay undefined (type fromReply has no field or method RetryDelay) (typecheck)
		options.PullRetryDelay, err = time.ParseDuration(iopts.RetryDelay)
		                                                       ^
cmd/buildah/from.go:296:86: iopts.RetryDelay undefined (type fromReply has no field or method RetryDelay) (typecheck)
			return fmt.Errorf("unable to parse value provided %q as --retry-delay: %w", iopts.RetryDelay, err)
			                                                                                  ^
cmd/buildah/run.go:171:27: iopts.CNIPlugInPath undefined (type runInputOptions has no field or method CNIPlugInPath) (typecheck)
		CNIPluginPath:    iopts.CNIPlugInPath,
		                        ^
cmd/buildah/run.go:172:27: iopts.CNIConfigDir undefined (type runInputOptions has no field or method CNIConfigDir) (typecheck)
		CNIConfigDir:     iopts.CNIConfigDir,
		                        ^
level=error msg="Timeout exceeded: try increasing it by passing --timeout option"
make: *** [Makefile:193: lint] Error 4
make: Leaving directory '/var/ARTIFACTS/work-lintt206ahvk/plans/lint/tree'
Shared connection to 10.31.40.144 closed.

lsm5 avatar Jun 13 '25 16:06 lsm5

opening up for another review. I've kept lint test disabled. The others work. These are no rpms being built. Tests are run directly on binaries built by Makefile.

lsm5 avatar Jun 13 '25 19:06 lsm5

@containers/buildah-maintainers PTAL.

lsm5 avatar Jun 16 '25 13:06 lsm5

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: flouthoc, lsm5

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[bot] avatar Jun 16 '25 20:06 openshift-ci[bot]

/hold

flouthoc avatar Jun 16 '25 20:06 flouthoc

@lsm5 [testing-farm:RHEL-9.6.0-Nightly-x86_64] is failing is this expected ?

flouthoc avatar Jun 16 '25 20:06 flouthoc

@lsm5 [testing-farm:RHEL-9.6.0-Nightly-x86_64] is failing is this expected ?

seems like a flake in gpg-agent. The test is passing now, but we're waiting on unit tests.

lsm5 avatar Jun 17 '25 12:06 lsm5

passing now.

/hold cancel

lsm5 avatar Jun 17 '25 12:06 lsm5

LGTM

TomSweeneyRedHat avatar Jul 11 '25 18:07 TomSweeneyRedHat

A friendly reminder that this PR had no activity for 30 days.

github-actions[bot] avatar Aug 11 '25 00:08 github-actions[bot]

@lsm5 just double checking, is this good to go?

TomSweeneyRedHat avatar Nov 18 '25 22:11 TomSweeneyRedHat

@lsm5 just double checking, is this good to go?

@TomSweeneyRedHat are we still using this branch? If we'll be moving away from github there'll be some more changes there, but I'd say we could merge here if we anticipate any new commits going to this branch soon .

lsm5 avatar Nov 19 '25 13:11 lsm5

@lsm5 This branch just transitioned to the Sustaining team, and this version of Buildah is on RHEL 9.6 and 10.0, which came out this past May.

TomSweeneyRedHat avatar Nov 19 '25 20:11 TomSweeneyRedHat