Skip to content

Add docker ci jobs scripts for test-infra repo#244

Merged
ppc64le-cloud-bot merged 1 commit intoppc64le-cloud:mainfrom
AshwinHIBM:ci
Mar 19, 2025
Merged

Add docker ci jobs scripts for test-infra repo#244
ppc64le-cloud-bot merged 1 commit intoppc64le-cloud:mainfrom
AshwinHIBM:ci

Conversation

@AshwinHIBM
Copy link
Collaborator

@AshwinHIBM AshwinHIBM commented Dec 9, 2024

The periodic and postsubmit jobs in ppc64le-cloud/test-infra#517 will trigger scripts as per the below specification:

  1. prow-info-docker.sh: triggered by periodic-config-docker
  2. prow-build-dev-image.sh by periodic-build-dev-image-docker
  3. prow-unit-test-docker.sh by postsubmit-unit-test-docker
  4. prow-integration-tests.sh by postsubmit-integration-test-docker

@ppc64le-cloud-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: AshwinHIBM

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

@ppc64le-cloud-bot ppc64le-cloud-bot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Dec 9, 2024
@clnperez
Copy link
Collaborator

clnperez commented Dec 9, 2024

looks simple enough. where does the prow job config live? i should probably take another look at that as well to refresh my memory

@AshwinHIBM
Copy link
Collaborator Author

looks simple enough. where does the prow job config live? i should probably take another look at that as well to refresh my memory

Sure, it's in a PR: ppc64le-cloud/test-infra#517

@ppc64le-cloud-bot ppc64le-cloud-bot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Feb 1, 2025
Copy link
Collaborator

@clnperez clnperez left a comment

Choose a reason for hiding this comment

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

could you also add more detail to the title, summary, and git commit?

@@ -0,0 +1,25 @@
#!/bin/bash

echo "Triggering the next prow job using git commit"
Copy link
Collaborator

Choose a reason for hiding this comment

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

can you include a bit more detail here about where the commit is to? this repo? which file?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

while getopts ":r:" option; do
case "${option}" in
r)
TRACKING_REPO=${OPTARG}
Copy link
Collaborator

Choose a reason for hiding this comment

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

what's OPTARG here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It'll be populated with the value of the -r flag, here REPO_OWNER/REPO_NAME. REPO_OWNER/REPO_NAME = ppc64le-cloud/docker-ce-build here.

chmod ug+x ./setup-pj-trigger.sh
./setup-pj-trigger.sh -r ppc64le-cloud/docker-ce-build
else
echo "The kernel is not suitable to run Docker."
Copy link
Collaborator

Choose a reason for hiding this comment

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

is this error message really the only possible explanation we could get back a non-zero rc from info.sh?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The output of the script, which is also logged, uses color codes to show what's wrong. The exit code however will either be 0 or 1 as returned by https://github.com/moby/moby/blob/master/contrib/check-config.sh.

Copy link
Collaborator

Choose a reason for hiding this comment

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

i was asking if there could be other problems than a kernel problem. i looked at the script and its sole purpose is to check the kernel config. so, that answers that question. could you change the error message to: "Error checking the kernel configuration" ? and in the echo on line 22, modify "Check Config" to "Checking Kernel Config"

Copy link
Collaborator

Choose a reason for hiding this comment

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

actually n/m. that is run inside this script. this script could also fail if there are directory problems for example, IIUC:

@AshwinHIBM AshwinHIBM force-pushed the ci branch 2 times, most recently from e028a45 to 7b92d27 Compare February 10, 2025 14:24
@AshwinHIBM AshwinHIBM changed the title Enable CI Add scripts that will be run by the CI test jobs Feb 10, 2025
@AshwinHIBM AshwinHIBM changed the title Add scripts that will be run by the CI test jobs Add scripts that will be triggered by the CI test periodic and postsubmit jobs in the test-infra repository Feb 26, 2025
@clnperez clnperez changed the title Add scripts that will be triggered by the CI test periodic and postsubmit jobs in the test-infra repository Add docker ci jobs scripts for test-infra repo Mar 7, 2025
These scripts are triggered by their respective test infra jobs, namely prow-info-docker.sh by periodic-config-docker, prow-build-dev-image.sh by periodic-build-dev-image-docker, prow-unit-test-docker.sh by postsubmit-unit-test-docker and prow-integration-tests.sh by postsubmit-integration-test-docker
@clnperez
Copy link
Collaborator

LGTM

@clnperez clnperez added the lgtm Indicates that a PR is ready to be merged. label Mar 19, 2025
@ppc64le-cloud-bot ppc64le-cloud-bot merged commit 77fe2df into ppc64le-cloud:main Mar 19, 2025
1 check was pending
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants