From 5d88d5f8a1a222e59172324fc4645524cd36b62c Mon Sep 17 00:00:00 2001 From: jackgopack4 Date: Thu, 18 Jul 2024 12:55:41 -0400 Subject: [PATCH] test removing blocks prepare-release --- .github/workflows/prepare-release.yml | 121 +++++++++++++------------- 1 file changed, 60 insertions(+), 61 deletions(-) diff --git a/.github/workflows/prepare-release.yml b/.github/workflows/prepare-release.yml index 21a11cccc6d..65472a63785 100644 --- a/.github/workflows/prepare-release.yml +++ b/.github/workflows/prepare-release.yml @@ -20,67 +20,66 @@ on: description: Current version (beta, like 0.95.1). Don't include `v`. jobs: #validate-version format - validate-versions: - runs-on: ubuntu-latest - - steps: - - name: Validate version format - run: | - validate_beta_version() { - local regex_pattern_beta='^[0-9]+\.[0-9]+\.[0-9]+$' - if [[ ! "$1" =~ $regex_pattern_beta ]]; then - echo "Invalid $2 version format. For beta, it can be 0.1.0 or higher" - exit 1 - fi - } + # validate-versions: + # runs-on: ubuntu-latest - validate_stable_version() { - local regex_pattern_stable='^[1-9][0-9]*\.[0-9]+\.[0-9]+$' - if [[ ! "$1" =~ $regex_pattern_stable ]]; then - echo "Invalid stable version format for $2. Major version must be greater than 1." - exit 1 - fi - } + # steps: + # - name: Validate version format + # run: | + # validate_beta_version() { + # local regex_pattern_beta='^[0-9]+\.[0-9]+\.[0-9]+$' + # if [[ ! "$1" =~ $regex_pattern_beta ]]; then + # echo "Invalid $2 version format. For beta, it can be 0.1.0 or higher" + # exit 1 + # fi + # } - validate_beta_version "${{ inputs.candidate-beta }}" "candidate-beta" - validate_beta_version "${{ inputs.current-beta }}" "current-beta" - validate_stable_version "${{ inputs.candidate-stable }}" "candidate-stable" - validate_stable_version "${{ inputs.current-stable }}" "current-stable" - shell: bash + # validate_stable_version() { + # local regex_pattern_stable='^[1-9][0-9]*\.[0-9]+\.[0-9]+$' + # if [[ ! "$1" =~ $regex_pattern_stable ]]; then + # echo "Invalid stable version format for $2. Major version must be greater than 1." + # exit 1 + # fi + # } + # validate_beta_version "${{ inputs.candidate-beta }}" "candidate-beta" + # validate_beta_version "${{ inputs.current-beta }}" "current-beta" + # validate_stable_version "${{ inputs.candidate-stable }}" "candidate-stable" + # validate_stable_version "${{ inputs.current-stable }}" "current-stable" + # shell: bash # Releasing opentelemetry-collector prepare-release: - needs: - - validate-versions + # needs: + # - validate-versions runs-on: ubuntu-latest steps: - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 with: fetch-depth: 0 # Make sure that there are no open issues with release:blocker label in Core. The release has to be delayed until they are resolved. - - name: Check blockers in core - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - REPO: open-telemetry/opentelemetry-collector - run: ./.github/workflows/scripts/release-check-blockers.sh - # Make sure that there are no open issues with release:blocker label in Contrib. The release has to be delayed until they are resolved. - - name: Check blockers in contrib - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - REPO: open-telemetry/opentelemetry-collector-contrib - run: ./.github/workflows/scripts/release-check-blockers.sh - # Make sure the current main branch build successfully passes (Core). - - name: Check build status in core - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - REPO: open-telemetry/opentelemetry-collector - run: ./.github/workflows/scripts/release-check-build-status.sh - # Make sure the current main branch build successfully passes (Contrib). - - name: Check build status in contrib - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - REPO: open-telemetry/opentelemetry-collector-contrib - run: ./.github/workflows/scripts/release-check-build-status.sh + # - name: Check blockers in core + # env: + # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # REPO: open-telemetry/opentelemetry-collector + # run: ./.github/workflows/scripts/release-check-blockers.sh + # # Make sure that there are no open issues with release:blocker label in Contrib. The release has to be delayed until they are resolved. + # - name: Check blockers in contrib + # env: + # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # REPO: open-telemetry/opentelemetry-collector-contrib + # run: ./.github/workflows/scripts/release-check-blockers.sh + # # Make sure the current main branch build successfully passes (Core). + # - name: Check build status in core + # env: + # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # REPO: open-telemetry/opentelemetry-collector + # run: ./.github/workflows/scripts/release-check-build-status.sh + # # Make sure the current main branch build successfully passes (Contrib). + # - name: Check build status in contrib + # env: + # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # REPO: open-telemetry/opentelemetry-collector-contrib + # run: ./.github/workflows/scripts/release-check-build-status.sh - name: Setup Go uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 with: @@ -91,8 +90,8 @@ jobs: # - Run make prepare-release PREVIOUS_VERSION=0.52.0 RELEASE_CANDIDATE=0.53.0 MODSET=beta - name: Prepare release for core env: - GITHUB_TOKEN: ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }} - REPO: open-telemetry/opentelemetry-collector + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + REPO: jackgopack4/opentelemetry-collector CANDIDATE_BETA: ${{ inputs.candidate-beta }} CANDIDATE_STABLE: ${{ inputs.candidate-stable }} CURRENT_BETA: ${{ inputs.current-beta }} @@ -101,12 +100,12 @@ jobs: # To keep track of the progress, it might be helpful to create a tracking issue similar to #6067. You are responsible # for all of the steps under the "Performed by collector release manager" heading. Once the issue is created, you can # create the individual ones by hovering them and clicking the "Convert to issue" button on the right hand side. - - name: Create issue for tracking release - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - CANDIDATE_BETA: ${{ inputs.candidate-beta }} - CANDIDATE_STABLE: ${{ inputs.candidate-stable }} - CURRENT_BETA: ${{ inputs.current-beta }} - CURRENT_STABLE: ${{ inputs.current-stable }} - REPO: open-telemetry/opentelemetry-collector - run: ./.github/workflows/scripts/release-create-tracking-issue.sh + # - name: Create issue for tracking release + # env: + # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # CANDIDATE_BETA: ${{ inputs.candidate-beta }} + # CANDIDATE_STABLE: ${{ inputs.candidate-stable }} + # CURRENT_BETA: ${{ inputs.current-beta }} + # CURRENT_STABLE: ${{ inputs.current-stable }} + # REPO: open-telemetry/opentelemetry-collector + # run: ./.github/workflows/scripts/release-create-tracking-issue.sh