Skip to content

Conversation

@xstefank
Copy link
Collaborator

@xstefank xstefank commented Dec 1, 2025

@csviri I'm not sure if this file should be version controlled but we should not generate files that are stuck after the build it finished. So either this or I will add it to .gitignore :).

Copilot AI review requested due to automatic review settings December 1, 2025 14:35
@openshift-ci openshift-ci bot requested review from csviri and metacosm December 1, 2025 14:35
Copilot finished reviewing on behalf of xstefank December 1, 2025 14:37
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds an automatically generated test index documentation file that catalogs all integration tests annotated with @Sample in the codebase. The file is generated during the Maven build process (specifically during the process-test-classes phase) and provides comprehensive documentation for developers looking to understand available test samples and use cases.

The PR description indicates uncertainty about whether this generated file should be version controlled or added to .gitignore, presenting it as an "either/or" decision to prevent uncommitted generated files from remaining after builds.

Key Changes

  • Adds comprehensive test index documentation with 1,252 lines covering 116 integration tests
  • Organizes tests into three main categories: Base API (61 tests), Dependent Resources (45 tests), and Workflows (10 tests)
  • Provides descriptions, links to source code, and categorized navigation for each test sample

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review for a chance to win a $100 gift card. Take the survey.


---

## WorkflowActivationConditionIT
Copy link

Copilot AI Dec 1, 2025

Choose a reason for hiding this comment

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

Duplicate heading ID: There are two test classes with the same name WorkflowActivationConditionIT (lines 1132 and 1187), which will generate the same anchor link #workflowactivationconditionit. This causes the table of contents links on lines 111 and 116 to both point to the first occurrence (line 1132) instead of their respective sections.

The second occurrence is from package io.javaoperatorsdk.operator.workflow.workflowactivationcondition while the first is from io.javaoperatorsdk.operator.workflow.getnonactivesecondary. Consider differentiating these headings or modifying the test class names to avoid this collision.

Suggested change
## WorkflowActivationConditionIT
## WorkflowActivationConditionIT (workflowactivationcondition)

Copilot uses AI. Check for mistakes.
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is something that should probably be addressed in the generator. /cc @csviri

Copy link
Collaborator

Choose a reason for hiding this comment

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

Thx will take a look

@csviri
Copy link
Collaborator

csviri commented Dec 1, 2025

pls add it to the git ignore, I don't think we should store generated sources, we don't do it anywhere

@xstefank
Copy link
Collaborator Author

xstefank commented Dec 2, 2025

Replaced by #3079

@xstefank xstefank closed this Dec 2, 2025
@xstefank xstefank deleted the missing-test-index branch December 2, 2025 06:42
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.

3 participants