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

.ci/aws: Skip default SCM checkout #758

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Zhenye-Na
Copy link

Issue #, if available:

Jenkins has a default step to checkout the code base from SCM, which took around 30s. But we defined next step to be workspace cleanup.

Description of changes:

This change is to skip the default step and only checkout the code base as we defined in the pipeline step

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@Zhenye-Na Zhenye-Na marked this pull request as ready for review December 27, 2024 19:41
@Zhenye-Na Zhenye-Na requested a review from a-szegel as a code owner December 27, 2024 19:41
@Zhenye-Na Zhenye-Na force-pushed the skip-default-scm-checkout branch from b0411e1 to 41c404a Compare December 27, 2024 19:46
@Zhenye-Na Zhenye-Na changed the title Skip checking out code from source control by default .ci/aws: Skip default SCM checkout Dec 27, 2024
rajachan
rajachan previously approved these changes Jan 6, 2025
@@ -134,6 +134,7 @@ pipeline {
options {
buildDiscarder(logRotator(daysToKeepStr: "90"))
timeout(time: 24, unit: 'HOURS')
skipDefaultCheckout()
Copy link
Member

Choose a reason for hiding this comment

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

Commit message and change doesn't align? Where do we define the next step to be workspace cleanup?

Copy link
Author

Choose a reason for hiding this comment

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

Where do we define the next step to be workspace cleanup?

The workspace clean up was removed in commit a8009b8. Also, in this commit, we removed

        stage("Checkout SCM repo") {
            steps {
                checkout scm
            }
        }

Based on Seth's explanation "checkoutSCMRepo pulls down aws-ofi-nccl to the fargate agent, which is a waste of time because we only need it on the cluster."


However, even though we explicitly removed the step above. Jenkins itself contains a default SCM checkout step, with this line of change, this step should be removed completely for us.

Copy link
Author

Choose a reason for hiding this comment

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

Rev2: rebased changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants