Skip to content

Add api tests stateless#1242

Merged
google-oss-prow[bot] merged 30 commits intokubeflow:mainfrom
fege:RHOAIENG-26159-part1
Jul 3, 2025
Merged

Add api tests stateless#1242
google-oss-prow[bot] merged 30 commits intokubeflow:mainfrom
fege:RHOAIENG-26159-part1

Conversation

@fege
Copy link
Copy Markdown
Contributor

@fege fege commented Jun 24, 2025

Description

Add stateless and statefull test for the API, they are marked with fuzz, they can be run with make test-fuzz, the test will be run also in automatic way for main github.ref == 'refs/heads/main' or adding a label test-fuzz

How Has This Been Tested?

Merge criteria:

  • All the commits have been signed-off (To pass the DCO check)
  • The commits have meaningful messages
  • Automated tests are provided as part of the PR for major new functionalities; testing instructions have been added in the PR body (for PRs involving changes that are not immediately obvious).
  • The developer has manually tested the changes and verified that the changes work.
  • Code changes follow the kubeflow contribution guidelines.
  • For first time contributors: Please reach out to the Reviewers to ensure all tests are being run, ensuring the label ok-to-test has been added to the PR.

If you have UI changes

  • The developer has added tests or explained why testing cannot be added.
  • Included any necessary screenshots or gifs if it was a UI change.
  • Verify that UI/UX changes conform the UX guidelines for Kubeflow.

Signed-off-by: fege <fmosca@redhat.com>
@tarilabs
Copy link
Copy Markdown
Member

(sync'd with Federico offline for a small suggestion)

Signed-off-by: fege <fmosca@redhat.com>
Copy link
Copy Markdown
Contributor

@lugi0 lugi0 left a comment

Choose a reason for hiding this comment

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

In general LGTM, however I do have a small comment on how additional data is fixed for the test.

Comment thread clients/python/tests/test_api.py Outdated
@google-oss-prow
Copy link
Copy Markdown
Contributor

@lugi0: changing LGTM is restricted to collaborators

Details

In response to this:

In general LGTM, however I do have a small comment on how additional data is fixed for the test.

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/test-infra repository.

Signed-off-by: fege <fmosca@redhat.com>
@dbasunag
Copy link
Copy Markdown
Contributor

/lgtm

Signed-off-by: fege <fmosca@redhat.com>
@google-oss-prow google-oss-prow Bot removed the lgtm label Jun 24, 2025
Comment thread clients/python/tests/test_api.py Outdated
fege added 3 commits June 25, 2025 11:55
Signed-off-by: fege <fmosca@redhat.com>
Signed-off-by: fege <fmosca@redhat.com>
…HOAIENG-26159-part1

Signed-off-by: fege <fmosca@redhat.com>
@Al-Pragliola Al-Pragliola mentioned this pull request Jun 25, 2025
8 tasks
fege added 3 commits June 26, 2025 13:26
Signed-off-by: fege <fmosca@redhat.com>
…HOAIENG-26159-part1

Signed-off-by: fege <fmosca@redhat.com>
Signed-off-by: fege <fmosca@redhat.com>
fege added 4 commits June 27, 2025 10:34
Signed-off-by: fege <fmosca@redhat.com>
Signed-off-by: fege <fmosca@redhat.com>
Signed-off-by: fege <fmosca@redhat.com>
…HOAIENG-26159-part1

Signed-off-by: fege <fmosca@redhat.com>
Signed-off-by: fege <fmosca@redhat.com>
Copy link
Copy Markdown
Contributor

@Al-Pragliola Al-Pragliola left a comment

Choose a reason for hiding this comment

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

/lgtm

Comment thread clients/python/pyproject.toml Outdated
fege added 2 commits July 3, 2025 17:15
Signed-off-by: fege <fmosca@redhat.com>
Signed-off-by: fege <fmosca@redhat.com>
@fege fege requested a review from tarilabs July 3, 2025 16:12
Copy link
Copy Markdown
Contributor

@Al-Pragliola Al-Pragliola left a comment

Choose a reason for hiding this comment

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

/lgtm

@google-oss-prow google-oss-prow Bot added the lgtm label Jul 3, 2025
Signed-off-by: Alessio Pragliola <seth.pro@gmail.com>
@google-oss-prow google-oss-prow Bot removed the lgtm label Jul 3, 2025
@tarilabs
Copy link
Copy Markdown
Member

tarilabs commented Jul 3, 2025

Thanks a lot really @fege for the efforts and this work, as well to all collaborations "offline" with @Al-Pragliola and QE folks

/lgtm
/approve

@google-oss-prow google-oss-prow Bot added the lgtm label Jul 3, 2025
@google-oss-prow
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: tarilabs

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details 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

@google-oss-prow google-oss-prow Bot merged commit 89af055 into kubeflow:main Jul 3, 2025
23 checks passed
Chanakya-TS pushed a commit to Chanakya-TS/model-registry that referenced this pull request Jul 9, 2025
* Add api tests stateless

Signed-off-by: fege <fmosca@redhat.com>

* Fix github action failures, lint and nox

Signed-off-by: fege <fmosca@redhat.com>

* Add too_slow and remove code to force the model version id

Signed-off-by: fege <fmosca@redhat.com>

* Add filter_too_much

Signed-off-by: fege <fmosca@redhat.com>

* add hook to avoid Unsatisfiable

Signed-off-by: fege <fmosca@redhat.com>

* remove variable

Signed-off-by: fege <fmosca@redhat.com>

* add artifact_states

Signed-off-by: fege <fmosca@redhat.com>

* Add example to schema

Signed-off-by: fege <fmosca@redhat.com>

* Add example in src

Signed-off-by: fege <fmosca@redhat.com>

* register strategy for string of int64

Signed-off-by: fege <fmosca@redhat.com>

* sort imports

Signed-off-by: fege <fmosca@redhat.com>

* modify case for problematic endpoints

Signed-off-by: fege <fmosca@redhat.com>

* add more examples

Signed-off-by: fege <fmosca@redhat.com>

* pin urllib

Signed-off-by: fege <fmosca@redhat.com>

* exclude problematic endpoints and test with valid data

Signed-off-by: fege <fmosca@redhat.com>

* Add gha to run the test and mark them with fuzz

Signed-off-by: fege <fmosca@redhat.com>

* revert change in Makefile pushed by error

Signed-off-by: fege <fmosca@redhat.com>

* skip test not marked with e2e or fuzz, trigger the fuzz on pr comment

Signed-off-by: fege <fmosca@redhat.com>

* trigger with label

Signed-off-by: fege <fmosca@redhat.com>

* correct the label name

Signed-off-by: fege <fmosca@redhat.com>

* add types and semplify the if

Signed-off-by: fege <fmosca@redhat.com>

* do not run e2e if test-fuzz label is added

Signed-off-by: fege <fmosca@redhat.com>

* unpin urllib

Signed-off-by: fege <fmosca@redhat.com>

* modify lock

Signed-off-by: fege <fmosca@redhat.com>

* fix: remove proc on label

Signed-off-by: Alessio Pragliola <seth.pro@gmail.com>

---------

Signed-off-by: fege <fmosca@redhat.com>
Signed-off-by: Alessio Pragliola <seth.pro@gmail.com>
Co-authored-by: Alessio Pragliola <seth.pro@gmail.com>
Chanakya-TS pushed a commit to Chanakya-TS/model-registry that referenced this pull request Jul 9, 2025
* Add api tests stateless

Signed-off-by: fege <fmosca@redhat.com>

* Fix github action failures, lint and nox

Signed-off-by: fege <fmosca@redhat.com>

* Add too_slow and remove code to force the model version id

Signed-off-by: fege <fmosca@redhat.com>

* Add filter_too_much

Signed-off-by: fege <fmosca@redhat.com>

* add hook to avoid Unsatisfiable

Signed-off-by: fege <fmosca@redhat.com>

* remove variable

Signed-off-by: fege <fmosca@redhat.com>

* add artifact_states

Signed-off-by: fege <fmosca@redhat.com>

* Add example to schema

Signed-off-by: fege <fmosca@redhat.com>

* Add example in src

Signed-off-by: fege <fmosca@redhat.com>

* register strategy for string of int64

Signed-off-by: fege <fmosca@redhat.com>

* sort imports

Signed-off-by: fege <fmosca@redhat.com>

* modify case for problematic endpoints

Signed-off-by: fege <fmosca@redhat.com>

* add more examples

Signed-off-by: fege <fmosca@redhat.com>

* pin urllib

Signed-off-by: fege <fmosca@redhat.com>

* exclude problematic endpoints and test with valid data

Signed-off-by: fege <fmosca@redhat.com>

* Add gha to run the test and mark them with fuzz

Signed-off-by: fege <fmosca@redhat.com>

* revert change in Makefile pushed by error

Signed-off-by: fege <fmosca@redhat.com>

* skip test not marked with e2e or fuzz, trigger the fuzz on pr comment

Signed-off-by: fege <fmosca@redhat.com>

* trigger with label

Signed-off-by: fege <fmosca@redhat.com>

* correct the label name

Signed-off-by: fege <fmosca@redhat.com>

* add types and semplify the if

Signed-off-by: fege <fmosca@redhat.com>

* do not run e2e if test-fuzz label is added

Signed-off-by: fege <fmosca@redhat.com>

* unpin urllib

Signed-off-by: fege <fmosca@redhat.com>

* modify lock

Signed-off-by: fege <fmosca@redhat.com>

* fix: remove proc on label

Signed-off-by: Alessio Pragliola <seth.pro@gmail.com>

---------

Signed-off-by: fege <fmosca@redhat.com>
Signed-off-by: Alessio Pragliola <seth.pro@gmail.com>
Co-authored-by: Alessio Pragliola <seth.pro@gmail.com>
Signed-off-by: Chanakya Thirumala Setty <cthiruma@redhat.com>
@fege fege deleted the RHOAIENG-26159-part1 branch August 8, 2025 09:28
jonburdo pushed a commit to jonburdo/model-registry that referenced this pull request Feb 2, 2026
[pull] main from kubeflow:main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants