Skip to content

Run koncur tests that require maven settings in nightlies - #256

Merged
mguetta1 merged 7 commits into
konveyor:mainfrom
mguetta1:skip-maven-false
Aug 18, 2026
Merged

Run koncur tests that require maven settings in nightlies#256
mguetta1 merged 7 commits into
konveyor:mainfrom
mguetta1:skip-maven-false

Conversation

@mguetta1

@mguetta1 mguetta1 commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Resolves #255

Summary by CodeRabbit

  • Improvements

    • Maven setup is now enabled by default for Kantra and Tackle Hub testing.
    • Maven configuration and environment setup run consistently across supported operating systems.
    • Testing can now target a specified Koncur version or branch.
    • CI workflows use the resolved Kantra image consistently during validation.
  • Tests

    • Shared testing workflows now provide more consistent execution across operating systems and Maven configurations.
    • Workflow-based validation now defaults to Maven-enabled testing.

@coderabbitai

coderabbitai Bot commented Aug 6, 2026

Copy link
Copy Markdown

Review Change Stack

Important

Review available on request

  • 🔍 Trigger review

Reviews should be triggered manually for repositories with fewer than 10 stars. Select Trigger review above or comment @coderabbitai review to review the latest changes. For a full review, comment @coderabbitai full review.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 53051073-fd86-4cef-844a-60ca8617cd44

📝 Walkthrough

Walkthrough

Koncur actions now use isolated checkouts, explicit Maven controls, and workflow-provided references. Global CI invokes local Koncur actions and passes the resolved Kantra image. Nightly and pull-request workflows pass Koncur references separately.

Changes

Koncur CI behavior

Layer / File(s) Summary
Koncur action execution paths
koncur-kantra/action.yml, koncur-tackle-hub/action.yml
The actions check out Koncur into koncur. Build, Maven setup, configuration, tests, and artifact uploads use paths under that directory. Maven steps require skip_maven == 'false'.
Global workflow action wiring
.github/workflows/global-ci-bundle.yml
The workflow exposes the resolved Kantra image and invokes the local Hub and Kantra actions with Koncur references, Maven settings, matrix OS data, and the Kantra image.
Nightly and pull-request reference propagation
.github/workflows/e2e-hub-koncur.yaml, .github/workflows/nightly-koncur.yaml, .github/workflows/nightly-koncur-0.9.yaml
The workflows pass Koncur references through koncur_ref and set nightly Maven execution explicitly.

Estimated code review effort: 3 (Moderate) | ~25 minutes

Sequence Diagram(s)

sequenceDiagram
  participant CheckImages
  participant GlobalCI
  participant KoncurAction
  participant KoncurCheckout
  participant TestRunner
  CheckImages->>GlobalCI: Export resolved kantra_image
  GlobalCI->>KoncurAction: Pass OS, Koncur ref, Maven setting, and image
  KoncurAction->>KoncurCheckout: Check out Koncur into koncur
  KoncurAction->>TestRunner: Build and run tests from koncur
  TestRunner-->>GlobalCI: Upload test artifacts
Loading

Possibly related issues

Possibly related PRs

  • konveyor/ci#218: Introduced the Koncur workflow and action integration extended by this change.
  • konveyor/ci#243: Modified Koncur reference handling in e2e-hub-koncur.yaml.
  • konveyor/ci#244: Modified koncur-tackle-hub/action.yml and its Maven-skip handling.

Suggested reviewers: dymurray, jmle

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Linked Issues check ✅ Passed The changes implement issue [#255] by enabling Maven settings for Koncur nightly tests and passing the required Maven configuration.
Out of Scope Changes check ✅ Passed The workflow, action, ref, and image changes support the stated Koncur nightly testing objectives and show no unrelated code changes.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly describes the main change: enabling Koncur tests that require Maven settings in nightly workflows.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.github/workflows/nightly-koncur-0.9.yaml:
- Line 201: In the report_failure job of
.github/workflows/nightly-koncur-0.9.yaml, add SLACK_WEBHOOK_URL to the
job-level env block and change the check at lines 201-201 to use
env.SLACK_WEBHOOK_URL != ''. Apply the same env declaration and condition change
in .github/workflows/nightly-koncur.yaml at lines 205-205; update both affected
checks consistently.

In `@koncur-tackle-hub/action.yml`:
- Line 6: Update the skip_maven condition in the action workflow to compare the
input explicitly against the string 'false' rather than negating
inputs.skip_maven. Apply this to the Maven setup conditions and corresponding
inputs.os checks so the steps run when the composite-action input is passed as
"false".
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 40a35a10-c33e-40c4-a962-af0fbd1e59ca

📥 Commits

Reviewing files that changed from the base of the PR and between 361249d and 6952398.

📒 Files selected for processing (5)
  • .github/workflows/ci-repo.yaml
  • .github/workflows/nightly-koncur-0.9.yaml
  • .github/workflows/nightly-koncur.yaml
  • koncur-kantra/action.yml
  • koncur-tackle-hub/action.yml

Comment thread .github/workflows/nightly-koncur-0.9.yaml Outdated
Comment thread koncur-tackle-hub/action.yml Outdated

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 3

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.github/workflows/global-ci-bundle.yml:
- Line 600: Update the local composite action manifest used by `uses:
./koncur-kantra` by removing unsupported `type` metadata keys from its input
definitions. Keep supported input fields such as descriptions and defaults
intact so the matrix jobs can start successfully.

In @.github/workflows/nightly-koncur.yaml:
- Around line 30-34: Update the concurrency group expression in the nightly
workflow to include the caller workflow identifier and the logical target branch
from inputs.branch, rather than relying on github.ref. Preserve
cancel-in-progress behavior while ensuring release and main runs use distinct
concurrency keys.
- Around line 16-20: Add a boolean slack_report input with default true under
the workflow_dispatch.inputs configuration in the nightly workflow, matching the
existing workflow_call input so manual runs also provide inputs.slack_report and
trigger failure reporting correctly.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 62b1a0c9-b082-47bb-991b-ab7bdeceb914

📥 Commits

Reviewing files that changed from the base of the PR and between 6952398 and 12afc87.

📒 Files selected for processing (4)
  • .github/workflows/global-ci-bundle.yml
  • .github/workflows/nightly-koncur.yaml
  • koncur-kantra/action.yml
  • koncur-tackle-hub/action.yml
🚧 Files skipped from review as they are similar to previous changes (2)
  • koncur-tackle-hub/action.yml
  • koncur-kantra/action.yml

Comment thread .github/workflows/global-ci-bundle.yml
Comment thread .github/workflows/nightly-koncur.yaml Outdated
Comment thread .github/workflows/nightly-koncur.yaml Outdated
Signed-off-by: Maayan Hadasi <mguetta@redhat.com>
Signed-off-by: Maayan Hadasi <mguetta@redhat.com>
mguetta1 and others added 2 commits August 6, 2026 14:59
The composite action receives os='windows' from the CI matrix but
the firewall rule and *nix maven path conditions compared against
'windows-latest', causing both Windows and *nix maven settings steps
to run on Windows and corrupting the MAVEN_SETTINGS_PATH.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Maayan Hadasi <mguetta@redhat.com>
Revert composite action defaults to true (skip maven) and explicitly
pass skip_maven: false from nightlies and through global-ci-bundle.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Maayan Hadasi <mguetta@redhat.com>
@coderabbitai

coderabbitai Bot commented Aug 6, 2026

Copy link
Copy Markdown

Note

GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.github/workflows/global-ci-bundle.yml:
- Around line 600-604: Disable persisted credentials on the checkout steps in
global-ci-bundle.yml and koncur-kantra/action.yml by setting persist-credentials
to false. Add an explicit least-privilege permissions block to the
koncur-kantra-tests job, granting only the permissions it requires.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: d9183e67-24a6-4fa2-8793-30678801d278

📥 Commits

Reviewing files that changed from the base of the PR and between 361249d and 353fff4.

📒 Files selected for processing (4)
  • .github/workflows/global-ci-bundle.yml
  • .github/workflows/nightly-koncur.yaml
  • koncur-kantra/action.yml
  • koncur-tackle-hub/action.yml

Comment thread .github/workflows/global-ci-bundle.yml
mguetta1 and others added 2 commits August 6, 2026 15:21
Signed-off-by: Maayan Hadasi <mguetta@redhat.com>
Separate the image fallback tag (ref) from the koncur repo checkout
ref (koncur_ref) so callers can target different branches for images
and tests independently.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Maayan Hadasi <mguetta@redhat.com>

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
koncur-tackle-hub/action.yml (1)

13-21: 🩺 Stability & Availability | 🟠 Major | ⚡ Quick win

Remove unsupported type keys from the action input definitions.

action.yml inputs do not support type; only workflow inputs support it. Remove these keys from skip_maven, image_pattern, ref, and koncur_ref so .github/workflows/global-ci-bundle.yml can parse the local action reference.

Proposed fix
 inputs:
   skip_maven:
-    type: boolean
   image_pattern:
-    type: string
   ref:
-    type: string
   koncur_ref:
-    type: string
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@koncur-tackle-hub/action.yml` around lines 13 - 21, Remove the unsupported
type keys from the action input definitions for skip_maven, image_pattern, ref,
and koncur_ref in action.yml, while preserving their descriptions, required
settings, defaults, and other input behavior.

Source: Linters/SAST tools

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Outside diff comments:
In `@koncur-tackle-hub/action.yml`:
- Around line 13-21: Remove the unsupported type keys from the action input
definitions for skip_maven, image_pattern, ref, and koncur_ref in action.yml,
while preserving their descriptions, required settings, defaults, and other
input behavior.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 4ebb2f52-4d7f-4869-9070-9ee35444b7c1

📥 Commits

Reviewing files that changed from the base of the PR and between 353fff4 and fd742a4.

📒 Files selected for processing (6)
  • .github/workflows/e2e-hub-koncur.yaml
  • .github/workflows/global-ci-bundle.yml
  • .github/workflows/nightly-koncur-0.9.yaml
  • .github/workflows/nightly-koncur.yaml
  • koncur-kantra/action.yml
  • koncur-tackle-hub/action.yml
🚧 Files skipped from review as they are similar to previous changes (1)
  • .github/workflows/nightly-koncur.yaml

@mguetta1
mguetta1 force-pushed the skip-maven-false branch 3 times, most recently from 7c8f4ac to fd742a4 Compare August 17, 2026 10:23
skip_maven reaches the koncur composite actions as a boolean when passed
as a YAML literal (nightly-koncur.yaml) but as a string when passed via
`${{ inputs.koncur_skip_maven }}` (global-ci-bundle.yml), because `${{ }}`
interpolation stringifies. `== 'false'` only matched the string form and
`!inputs.skip_maven` only worked for the boolean form, so one caller path
or the other always skipped maven setup and the maven tests failed.

Use `!fromJSON(inputs.skip_maven)`, which parses either form into a real
boolean, matching the existing fromJSON(inputs.skip_maven) usage in
koncur-kantra/action.yml.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Signed-off-by: Maayan Hadasi <mguetta@redhat.com>
@mguetta1 mguetta1 closed this Aug 17, 2026
@mguetta1 mguetta1 reopened this Aug 17, 2026
@jmle
jmle self-requested a review August 18, 2026 07:39
@mguetta1
mguetta1 merged commit e45ec03 into konveyor:main Aug 18, 2026
53 of 56 checks passed
@mguetta1
mguetta1 deleted the skip-maven-false branch August 18, 2026 07:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Run koncur nightlies with SKIP_MAVEN: false

2 participants