Skip to content

Conversation

@ggbecker
Copy link
Member

@ggbecker ggbecker commented Jan 14, 2026

Description:

Rationale:

  • All the tests executed with packit integration are now part of the ATEX integration whenever it makes sense to port.

Review Hints:

  • These tests won't run on this pull request as this workflow is set with the workflow_run tag:
on:
  workflow_run:
    workflows: ["ATEX - Build Content"]
    types:
      - completed

Because of token potential exposures.

TODO LIST

@ggbecker ggbecker added this to the 0.1.80 milestone Jan 14, 2026
@openshift-ci
Copy link

openshift-ci bot commented Jan 14, 2026

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Used by openshift-ci bot. label Jan 14, 2026
@ggbecker ggbecker force-pushed the replace-packit-with-atex branch 2 times, most recently from aaebb2a to b311191 Compare January 14, 2026 15:18
@github-actions
Copy link

github-actions bot commented Jan 14, 2026

ATEX Test Results

Test artifacts have been submitted to Testing Farm.

Results: View Test Results
Workflow Run: View Workflow Details

This comment was automatically generated by the ATEX workflow.

@ggbecker ggbecker force-pushed the replace-packit-with-atex branch from b311191 to 7c50296 Compare January 14, 2026 15:53
@ggbecker ggbecker marked this pull request as ready for review January 14, 2026 22:03
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Used by openshift-ci bot. label Jan 14, 2026
.packit.yaml Outdated
branch: "gh-readonly-queue/.*"

# when modifying this, modify also tests/tmt-plans/
- &test-static-checks
Copy link
Collaborator

@comps comps Jan 15, 2026

Choose a reason for hiding this comment

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

I don't think you can have a section like this in YAML - it's not just a template, it's a real section that can be referenced via YAML features later, but it still needs to be a valid section.

So I would just copy/paste the job, trigger and fmf_path to the remaining two sections and drop this "template". We will probably deal with rpmbuild-ctest-fedora and fedora-cis in later PRs, moving/changing them further.

Otherwise LGTM, 10 remotes (run_tests_testingfarm.py argument default) per CentOS Stream version should be fine.

Copy link
Member Author

@ggbecker ggbecker Jan 15, 2026

Choose a reason for hiding this comment

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

something like this?

downstream_package_name: scap-security-guide
upstream_package_name: scap-security-guide
specfile_path: scap-security-guide.spec

actions:
  get-current-version:
  - bash utils/version.sh

srpm_build_deps:
  - bash

jobs:
- job: copr_build
  trigger: pull_request
  targets:
  - fedora-all-x86_64

- job: copr_build
  trigger: commit
  branch: "gh-readonly-queue/.*"
  targets:
  - fedora-all-x86_64

- job: tests
  trigger: pull_request
  fmf_path: tests/tmt
  identifier: /rpmbuild-ctest-fedora
  tmt_plan: /plans/contest/rpmbuild-ctest-fedora$
  targets:
    fedora-all: {}

- job: tests
  trigger: pull_request
  fmf_path: tests/tmt
  identifier: fedora-cis
  tmt_plan: /plans/fedora-cis$
  targets:
    fedora-all: {}

Copy link
Member Author

Choose a reason for hiding this comment

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

btw the previous format proposed in this PR seemed to work as it was a valid packit config and the tests ran correctly. I'm not sure if you are talking about some other step not seen here. But I basically followed the previous structure of the file with the templating part.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Hmm, then maybe Packit has added some check like "if the config block doesn't have identifier, ignore it", allowing templating.

But, otherwise, the original code that started with - &test-static-checks was a valid test (or rather a series of tests, everything under /static-checks), it wasn't just a template.

My point is that YAML allows to template sections (using "anchors" / "aliases") like this:

vars:
   service1:
       config: &service_config
           env: prod
           retries: 3
           version: 4.8
   service2:
       config: *service_config
   service3:
       config: *service_config

where all services receive the same config, but service1 is still a valid service, you cannot create a service_template that defines config but otherwise does nothing, and then use it for service1, service2 and service3.

So the original /static-checks code worked, because it was a valid test specification aside from being used as a template later on, but you then removed its identifier / tmt_plan / etc., resulting in an invalid test specification.

...
At least that's what I thought before I looked at the raw file and saw I misread the diff. You're right in that the code would work, because it merges the template-ish definition with /rpmbuild-ctest-fedora:

- &test-static-checks
  job: tests
  trigger: pull_request
  fmf_path: tests/tmt
  identifier: /rpmbuild-ctest-fedora
  tmt_plan: /plans/contest/rpmbuild-ctest-fedora$
  targets:
    fedora-all: {}

- <<: *test-static-checks
  identifier: fedora-cis
  tmt_plan: /plans/fedora-cis$

I guess I got confused by the &test-static-checks because the section doesn't have anything to do with /static-checks anymore, so the alias name doesn't make sense. Sorry.

Copy link
Collaborator

Choose a reason for hiding this comment

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

something like this?

Either would work, I just misunderstood your original code, sorry.

If you decide to leave it as-is, please at least rename the anchor, so it doesn't say "static checks".

Copy link
Member Author

Choose a reason for hiding this comment

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

okay, I will rename the section

Copy link
Member Author

Choose a reason for hiding this comment

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

Done by amending the last commit. 8ed1f08

@ggbecker ggbecker force-pushed the replace-packit-with-atex branch from 7c50296 to 8ed1f08 Compare January 15, 2026 15:06
@openshift-ci
Copy link

openshift-ci bot commented Jan 15, 2026

@ggbecker: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/e2e-aws-openshift-node-compliance 8ed1f08 link true /test e2e-aws-openshift-node-compliance

Full PR test history. Your PR dashboard.

Details

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-sigs/prow repository. I understand the commands that are listed here.

Comment on lines 18 to 20
- centos-stream-8-x86_64
- centos-stream-9-x86_64
- centos-stream-10-x86_64
Copy link
Collaborator

Choose a reason for hiding this comment

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

One more thing I'm not sure - this might impact Packit RPM building as well. I'm not sure if we want to do that as the building provides at least some level of RPM-buildability-checking.

Maybe just removing these from job: tests targets below is sufficient?

Copy link
Member Author

Choose a reason for hiding this comment

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

Maybe just removing these from job: tests targets below is sufficient?

I'm not sure if I understand this part. I guess if we just revert this deletion:

  - centos-stream-8-x86_64
  - centos-stream-9-x86_64
  - centos-stream-10-x86_64

we should have the build for centos stream as well.

Copy link
Member Author

Choose a reason for hiding this comment

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

let me try that

Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm not sure if I understand this part. I guess if we just revert this deletion:

That's what I meant - that the existing changes already removed the centos-stream-* targets from the job: tests block, so re-adding the job: copr_build targets back (as you did) should be sufficient. 🙂

@comps
Copy link
Collaborator

comps commented Jan 16, 2026

Otherwise the PR LGTM, thanks!

@Mab879 Mab879 self-assigned this Jan 16, 2026
@ggbecker
Copy link
Member Author

As soon as we merge this we need to flip the switches on the "Required" checks list in the protected branches, to remove the packit jobs that won't exist anymore, and add the Gating / ATEX - Test and Upload Results.

@ggbecker
Copy link
Member Author

ggbecker commented Jan 16, 2026

I think this can wait a bit longer until we manage to make the ATEX script to exit non-zero when there is at least one failing test. Otherwise we won't be able to gate the PR properly, it would always report pass even if a test ended with failed status.

@ggbecker ggbecker marked this pull request as draft January 16, 2026 13:13
@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Used by openshift-ci bot. label Jan 16, 2026
@ggbecker ggbecker force-pushed the replace-packit-with-atex branch from d9233f8 to 62cdb04 Compare January 16, 2026 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do-not-merge/work-in-progress Used by openshift-ci bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants