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

Add parent dependency check on samples #397

Merged
merged 24 commits into from
May 28, 2024

Conversation

michael-valdron
Copy link
Member

@michael-valdron michael-valdron commented May 14, 2024

What does this PR do?:

Adds new script and new workflow to perform testing on child samples of stacks.

Which issue(s) this PR fixes:

fixes devfile/api#1142

PR acceptance criteria:

  • Contributing guide
    Have you read the devfile registry contributing guide and followed its instructions?
  • Test automation
    Does this repository's tests pass with your changes?
  • Documentation
    Does any documentation need to be updated with your changes?
  • Check Tools Provider
    Have you tested the changes with existing tools, i.e. Odo, Che, Console? (See devfile registry contributing guide on how to test changes)

How to test changes / Special notes to the reviewer:

Copy link

openshift-ci bot commented May 14, 2024

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

@michael-valdron michael-valdron force-pushed the testing/check-parents branch 2 times, most recently from 6898fd1 to 518fdb2 Compare May 22, 2024 20:18
Signed-off-by: Michael Valdron <mvaldron@redhat.com>
Signed-off-by: Michael Valdron <mvaldron@redhat.com>
Signed-off-by: Michael Valdron <mvaldron@redhat.com>
Signed-off-by: Michael Valdron <mvaldron@redhat.com>
Signed-off-by: Michael Valdron <mvaldron@redhat.com>
Signed-off-by: Michael Valdron <mvaldron@redhat.com>
…_file.sh now builds the parents yaml file and returns the children samples of the parent stacks.

Signed-off-by: Michael Valdron <mvaldron@redhat.com>
Signed-off-by: Michael Valdron <mvaldron@redhat.com>
Signed-off-by: Michael Valdron <mvaldron@redhat.com>
…es job.

Signed-off-by: Michael Valdron <mvaldron@redhat.com>
Signed-off-by: Michael Valdron <mvaldron@redhat.com>
Signed-off-by: Michael Valdron <mvaldron@redhat.com>
Signed-off-by: Michael Valdron <mvaldron@redhat.com>
Signed-off-by: Michael Valdron <mvaldron@redhat.com>
Signed-off-by: Michael Valdron <mvaldron@redhat.com>
Signed-off-by: Michael Valdron <mvaldron@redhat.com>
Signed-off-by: Michael Valdron <mvaldron@redhat.com>
Signed-off-by: Michael Valdron <mvaldron@redhat.com>
Signed-off-by: Michael Valdron <mvaldron@redhat.com>
@michael-valdron michael-valdron force-pushed the testing/check-parents branch 3 times, most recently from 1678d0c to 0c6827c Compare May 23, 2024 22:18
@michael-valdron michael-valdron marked this pull request as ready for review May 23, 2024 22:32
@michael-valdron michael-valdron requested a review from a team as a code owner May 23, 2024 22:32
@openshift-ci openshift-ci bot requested review from elsony and Jdubrick May 23, 2024 22:32
@michael-valdron michael-valdron changed the title [WIP]Add parent dependency check on samples Add parent dependency check on samples May 23, 2024
Signed-off-by: Michael Valdron <mvaldron@redhat.com>
@michael-valdron
Copy link
Member Author

Check Tools Provider

CI changes, N/A

Copy link
Contributor

@thepetk thepetk 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 looks good to me, left only some minor comments. Tested locally and it works. Very nice addition :)

tests/build_parents_file.sh Show resolved Hide resolved
tests/build_parents_file.sh Outdated Show resolved Hide resolved
tests/build_parents_file.sh Outdated Show resolved Hide resolved
.gitignore Outdated Show resolved Hide resolved
tests/validate_devfile_schemas.sh Outdated Show resolved Hide resolved
Copy link
Contributor

@Jdubrick Jdubrick left a comment

Choose a reason for hiding this comment

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

Overall looks good to me. I pushed your branch to my own repo and tested the workflow and it works great! After changes Fanis suggested are made I think this is good to get approved

Signed-off-by: Michael Valdron <mvaldron@redhat.com>
Signed-off-by: Michael Valdron <mvaldron@redhat.com>
Signed-off-by: Michael Valdron <mvaldron@redhat.com>
Signed-off-by: Michael Valdron <mvaldron@redhat.com>
@AObuchow
Copy link

Just thinking out loud: the logic introduced in this PR could potentially be adopted to resolved #401 (comment) -- good timing :)

Copy link
Contributor

@thepetk thepetk left a comment

Choose a reason for hiding this comment

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

/lgtm really helpful check!

@openshift-ci openshift-ci bot added the lgtm Looks good to me label May 28, 2024
Copy link

openshift-ci bot commented May 28, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Jdubrick, michael-valdron, thepetk

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

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [Jdubrick,michael-valdron,thepetk]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@michael-valdron michael-valdron merged commit 66a5a95 into devfile:main May 28, 2024
11 checks passed
@michael-valdron michael-valdron mentioned this pull request May 28, 2024
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved lgtm Looks good to me
Projects
None yet
4 participants