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

[enterprise-4.9] Adding OSD and ROSA to the Travis configuration #40592

Conversation

pneedle-rh
Copy link
Contributor

@pneedle-rh pneedle-rh commented Jan 14, 2022

This applies to enterprise-4.9 only. #40591 is a separate PR for main and enterprise-4.9.

This pull request adds the OSD and ROSA collections to the Travis checks. Related PR #40587 was created to test the checks for the two collections.

The PR also updates the build.py script which is called in the .travis.yml file. The addition cleans the drupal-build directory in the Travis VM that is running the checks, rather than just cleaning the distro subdirectory within the drupal-build directory. Without this change, each successive python build.py... command in the travis.yml file will build all of the distros that have been built so far, because the remnants of the previous run continues to exist in the drupal-build directory in the Travis VM.

My understanding is that, in enterprise-4.9, the build.py script is only called from the .travis.yml file. The sync scripts I think use the build_for_portal.py file instead. Please let me know if the change in this PR might impact other uses for the build.py file that I don't know about. I.e. is there any reason why the previous builds for a different distro might need to remain in the drupal-build directory after the build.py script has run?

We might also need to determine what constitutes a success if multiple distro builds are being run. Would one successful build cause the auto-merge to take place, or would all of the build.py runs need to succeed? How can we test this in Travis?

@pneedle-rh pneedle-rh self-assigned this Jan 14, 2022
@openshift-ci openshift-ci bot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Jan 14, 2022
@netlify
Copy link

netlify bot commented Jan 14, 2022

✔️ Deploy Preview for osdocs ready!

🔨 Explore the source changes: 254f8f9

🔍 Inspect the deploy log: https://app.netlify.com/sites/osdocs/deploys/61e18e27a30059000800c5dd

😎 Browse the preview: https://deploy-preview-40592--osdocs.netlify.app

@pneedle-rh pneedle-rh changed the title Adding OSD and ROSA to Travis configuration [enterprise-4.9] Adding OSD and ROSA to Travis configuration Jan 14, 2022
@pneedle-rh pneedle-rh changed the title [enterprise-4.9] Adding OSD and ROSA to Travis configuration [enterprise-4.9] Adding OSD and ROSA to the Travis configuration Jan 14, 2022
@pneedle-rh pneedle-rh force-pushed the adding-osd-and-rosa-to-travis-config-4-9 branch from 7a79f81 to 69b04ee Compare January 14, 2022 12:42
@pneedle-rh pneedle-rh added branch/enterprise-4.9 peer-review-needed Signifies that the peer review team needs to review this PR labels Jan 14, 2022
@pneedle-rh pneedle-rh added this to the Next Release milestone Jan 14, 2022
@pneedle-rh pneedle-rh added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jan 14, 2022
@pneedle-rh pneedle-rh force-pushed the adding-osd-and-rosa-to-travis-config-4-9 branch from 69b04ee to 254f8f9 Compare January 14, 2022 14:52
@ahardin-rh
Copy link
Contributor

ahardin-rh commented Jan 14, 2022

@pneedle-rh Great catch and these changes LGTM. I'm personally not sure about the impact on other uses for the build.py file, so I will let others weigh in as well.

@@ -14,6 +14,8 @@ install:

script:
- python3 build.py --distro openshift-enterprise --product "OpenShift Container Platform" --version 4.9 --no-upstream-fetch && python3 makeBuild.py
- python3 build.py --distro openshift-dedicated --product "OpenShift Dedicated" --version 4 --no-upstream-fetch && python3 makeBuild.py
- python3 build.py --distro openshift-rosa --product "Red Hat OpenShift Service on AWS" --version 4 --no-upstream-fetch && python3 makeBuild.py

after_success:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We might also need to determine what constitutes a success if multiple distro builds are being run. Would one successful build cause the automerge to take place, or would all of the build.py runs need to succeed? How can we test this in Travis?

@pneedle-rh
Copy link
Contributor Author

@gaurav-nelson thanks for #40741. That is a much better solution that the one I proposed here, so I am closing this PR as obsoleted by your PR. Thanks again!

@pneedle-rh pneedle-rh closed this Jan 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
branch/enterprise-4.9 do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. peer-review-needed Signifies that the peer review team needs to review this PR size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants