Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: splits feature tests to separate files #924

Merged

Conversation

bartoszmajsak
Copy link
Contributor

@bartoszmajsak bartoszmajsak commented Mar 20, 2024

As the number of test cases (grouped as Describe) started to grow, we can split a single file into several groups per functionality.

Follow-up for #906.

As amount of test cases (groupped in Describe) started to grow we can
split a single file to several which are grouped per functionality.

Follow-up for opendatahub-io#906.
@openshift-ci openshift-ci bot requested review from AjayJagan and lucferbux March 20, 2024 11:06
@bartoszmajsak bartoszmajsak requested review from zdtsw and cam-garrison and removed request for lucferbux and AjayJagan March 20, 2024 11:06
Copy link

openshift-ci bot commented Mar 20, 2024

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: cam-garrison
Once this PR has been reviewed and has the lgtm label, please assign lavlas for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found 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 openshift-ci bot removed the lgtm label Mar 20, 2024
Copy link

openshift-ci bot commented Mar 20, 2024

New changes are detected. LGTM label has been removed.

@bartoszmajsak bartoszmajsak merged commit 915a72a into opendatahub-io:incubation Mar 20, 2024
7 of 8 checks passed
@bartoszmajsak bartoszmajsak deleted the feature-tests-split branch March 20, 2024 17:31
zdtsw referenced this pull request in zdtsw-forking/rhods-operator Mar 25, 2024
)

As the number of test cases (grouped as `Describe`) started to grow, we can split a single file into several groups per functionality.

Follow-up for red-hat-data-services#906.
zdtsw referenced this pull request in red-hat-data-services/rhods-operator Mar 25, 2024
* chore: move testing fixtures to fixtures directory (#906)

This change aims to enhance the readability of our test suite.

It brings `/crds` and `/templates` into `/fixtures` and moves more helper functions out into dedicated files.

* feat(build): adds gci to go fmt target (#925)

This update incorporates the `gci` tool into the `make fmt` command, aiming to improve the formatting of Go files and ensure that imports adhere to our established conventions.

Unfortunately, due to how `.golangci.yml` is defined, we are not able to just use `--disable-all --enable=gci` flags. This yields an error as we use `enable-all` and `disable` in the config file for linter.

To address this, the `golangci-lint` configuration is dynamically adjusted using the `yq` tool, which is now included in our toolchain.

This process creates a temporary configuration file specifically for `golangci-lint` execution, ensuring `gci`'s integration without altering the primary linting setup.

Furthermore, the generated temporary file is added to the `CLEANFILES` list, ensuring its removal when calling `make clean`, maintaining a clean build environment.

To prevent this temporary file from being tracked by Git, a `*.mktmp.*` pattern has been added to our `.gitignore`, safeguarding against accidental inclusion of temporary files in the repository.: 

### Tidies

- removes duplicate `blank` import section in `gci` config, otherwise it can add `_` imports twice

* chore: splits feature tests to separate files (#924)

As the number of test cases (grouped as `Describe`) started to grow, we can split a single file into several groups per functionality.

Follow-up for #906.

* fix(dashboard): do not set owner on CR (#923)

Signed-off-by: Wen Zhou <wenzhou@redhat.com>

* (fix): Description patch during make bundle (#926)

* feat(DW): prepare CF,ray,kueue for GA (#929)

Signed-off-by: Wen Zhou <wenzhou@redhat.com>

* fix(dashboard): wrong path for consolelink in downstream (#933)

Signed-off-by: Wen Zhou <wenzhou@redhat.com>

* docs: remove modelregistry and update default application NS

Signed-off-by: Zhou, Wen <wenzhou@redhat.com>

---------

Signed-off-by: Wen Zhou <wenzhou@redhat.com>
Signed-off-by: Zhou, Wen <wenzhou@redhat.com>
Co-authored-by: Cameron Garrison <cgarriso@redhat.com>
Co-authored-by: Bartosz Majsak <bartosz.majsak@gmail.com>
Co-authored-by: Ajay Jaganathan <36824134+AjayJagan@users.noreply.github.com>
@bartoszmajsak bartoszmajsak mentioned this pull request Mar 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants