Skip to content

Commit 8e9d383

Browse files
authored
Merge branch 'main' into must-to-filter-final
Signed-off-by: Peter Alfonsi <peter.alfonsi@gmail.com>
2 parents 049c59f + 8fdc6b3 commit 8e9d383

File tree

259 files changed

+8906
-5222
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

259 files changed

+8906
-5222
lines changed

.ci/bwcVersions

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,4 @@ BWC_VERSION:
4747
- "2.19.2"
4848
- "2.19.3"
4949
- "3.0.0"
50+
- "3.1.0"

.github/workflows/publish-maven-snapshots.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,16 @@ jobs:
2525
distribution: temurin
2626
java-version: 21
2727

28-
- name: Configure AWS credentials
29-
uses: aws-actions/configure-aws-credentials@v4
28+
- name: Load secret
29+
uses: 1password/load-secrets-action@v2
3030
with:
31-
role-to-assume: ${{ secrets.PUBLISH_SNAPSHOTS_ROLE }}
32-
aws-region: us-east-1
31+
# Export loaded secrets as environment variables
32+
export-env: true
33+
env:
34+
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}
35+
SONATYPE_USERNAME: op://opensearch-infra-secrets/maven-central-portal-credentials/username
36+
SONATYPE_PASSWORD: op://opensearch-infra-secrets/maven-central-portal-credentials/password
3337

3438
- name: Publish snapshots to maven
3539
run: |
36-
export SONATYPE_USERNAME=$(aws secretsmanager get-secret-value --secret-id maven-snapshots-username --query SecretString --output text)
37-
export SONATYPE_PASSWORD=$(aws secretsmanager get-secret-value --secret-id maven-snapshots-password --query SecretString --output text)
38-
echo "::add-mask::$SONATYPE_USERNAME"
39-
echo "::add-mask::$SONATYPE_PASSWORD"
4040
./gradlew publishNebulaPublicationToSnapshotsRepository

.github/workflows/version.yml

Lines changed: 9 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
fi
3030
CURRENT_VERSION_ARRAY=($(echo "$TAG" | tr . '\n'))
3131
BASE=$(IFS=. ; echo "${CURRENT_VERSION_ARRAY[*]:0:2}")
32-
BASE_X=$(IFS=. ; echo "${CURRENT_VERSION_ARRAY[*]:0:1}.x")
32+
MAIN_BRANCH="main"
3333
CURRENT_VERSION=$(IFS=. ; echo "${CURRENT_VERSION_ARRAY[*]:0:3}")
3434
CURRENT_VERSION_UNDERSCORE=$(IFS=_ ; echo "V_${CURRENT_VERSION_ARRAY[*]:0:3}")
3535
CURRENT_VERSION_ARRAY[2]=$((CURRENT_VERSION_ARRAY[2]+1))
@@ -42,7 +42,7 @@ jobs:
4242
fi
4343
echo "TAG=$TAG" >> $GITHUB_ENV
4444
echo "BASE=$BASE" >> $GITHUB_ENV
45-
echo "BASE_X=$BASE_X" >> $GITHUB_ENV
45+
echo "MAIN_BRANCH=$MAIN_BRANCH" >> $GITHUB_ENV
4646
echo "CURRENT_VERSION=$CURRENT_VERSION" >> $GITHUB_ENV
4747
echo "CURRENT_VERSION_UNDERSCORE=$CURRENT_VERSION_UNDERSCORE" >> $GITHUB_ENV
4848
echo "NEXT_VERSION=$NEXT_VERSION" >> $GITHUB_ENV
@@ -77,33 +77,7 @@ jobs:
7777
7878
- uses: actions/checkout@v4
7979
with:
80-
ref: ${{ env.BASE_X }}
81-
82-
- name: Add Patch Version on Major.X branch
83-
uses: peternied/opensearch-core-version-updater@v1
84-
with:
85-
previous-version: ${{ env.CURRENT_VERSION }}
86-
new-version: ${{ env.NEXT_VERSION }}
87-
update-current: false
88-
89-
- name: Create PR for BASE_X
90-
id: base_x_pr
91-
uses: peter-evans/create-pull-request@v7
92-
with:
93-
base: ${{ env.BASE_X }}
94-
branch: 'create-pull-request/patch-${{ env.BASE_X }}'
95-
commit-message: Add bwc version ${{ env.NEXT_VERSION }}
96-
signoff: true
97-
delete-branch: true
98-
labels: |
99-
autocut
100-
title: '[AUTO] [${{ env.BASE_X }}] Add bwc version ${{ env.NEXT_VERSION }}.'
101-
body: |
102-
I've noticed that a new tag ${{ env.TAG }} was pushed, and added a bwc version ${{ env.NEXT_VERSION }}.
103-
104-
- uses: actions/checkout@v4
105-
with:
106-
ref: main
80+
ref: ${{ env.MAIN_BRANCH }}
10781

10882
- name: Add Patch Version on main branch
10983
uses: peternied/opensearch-core-version-updater@v1
@@ -112,18 +86,18 @@ jobs:
11286
new-version: ${{ env.NEXT_VERSION }}
11387
update-current: false
11488

115-
- name: Create PR for main
116-
id: main_pr
89+
- name: Create PR for MAIN_BRANCH
90+
id: main_branch_pr
11791
uses: peter-evans/create-pull-request@v7
11892
with:
119-
base: main
120-
branch: 'create-pull-request/patch-main'
93+
base: ${{ env.MAIN_BRANCH }}
94+
branch: 'create-pull-request/patch-${{ env.MAIN_BRANCH }}'
12195
commit-message: Add bwc version ${{ env.NEXT_VERSION }}
12296
signoff: true
12397
delete-branch: true
12498
labels: |
12599
autocut
126-
title: '[AUTO] [main] Add bwc version ${{ env.NEXT_VERSION }}.'
100+
title: '[AUTO] [${{ env.MAIN_BRANCH }}] Add bwc version ${{ env.NEXT_VERSION }}.'
127101
body: |
128102
I've noticed that a new tag ${{ env.TAG }} was pushed, and added a bwc version ${{ env.NEXT_VERSION }}.
129103
@@ -139,8 +113,7 @@ jobs:
139113
### Exit Criteria
140114
Review and merged the following pull requests
141115
- [ ] ${{ steps.base_pr.outputs.pull-request-url }}
142-
- [ ] ${{ steps.base_x_pr.outputs.pull-request-url }}
143-
- [ ] ${{ steps.main_pr.outputs.pull-request-url }}
116+
- [ ] ${{ steps.main_branch_pr.outputs.pull-request-url }}
144117
145118
### Additional Context
146119
See project wide guidance on branching and versions [[link]](https://github.com/opensearch-project/.github/blob/main/RELEASING.md).

0 commit comments

Comments
 (0)