Skip to content

Commit e7b3e45

Browse files
committed
Merge remote-tracking branch 'origin' into COMPASS-9799-field-type-on-node
2 parents d7d5a03 + 3f88c82 commit e7b3e45

File tree

274 files changed

+8866
-6758
lines changed

Some content is hidden

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

274 files changed

+8866
-6758
lines changed

.evergreen/buildvariants-and-tasks.in.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -429,10 +429,12 @@ tasks:
429429
vars:
430430
compass_distribution: <%= distribution %>
431431
- func: spawn-signing-server
432+
retry_on_failure: true
432433
- func: package
433434
vars:
434435
debug: 'hadron*,mongo*,compass*,electron*,sign*'
435436
compass_distribution: <%= distribution %>
437+
retry_on_failure: true
436438
- func: verify-artifacts
437439
- func: save-all-artifacts
438440
vars:

.evergreen/buildvariants-and-tasks.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,10 +435,12 @@ tasks:
435435
vars:
436436
compass_distribution: compass
437437
- func: spawn-signing-server
438+
retry_on_failure: true
438439
- func: package
439440
vars:
440441
debug: hadron*,mongo*,compass*,electron*,sign*
441442
compass_distribution: compass
443+
retry_on_failure: true
442444
- func: verify-artifacts
443445
- func: save-all-artifacts
444446
vars:
@@ -458,10 +460,12 @@ tasks:
458460
vars:
459461
compass_distribution: compass-isolated
460462
- func: spawn-signing-server
463+
retry_on_failure: true
461464
- func: package
462465
vars:
463466
debug: hadron*,mongo*,compass*,electron*,sign*
464467
compass_distribution: compass-isolated
468+
retry_on_failure: true
465469
- func: verify-artifacts
466470
- func: save-all-artifacts
467471
vars:
@@ -481,10 +485,12 @@ tasks:
481485
vars:
482486
compass_distribution: compass-readonly
483487
- func: spawn-signing-server
488+
retry_on_failure: true
484489
- func: package
485490
vars:
486491
debug: hadron*,mongo*,compass*,electron*,sign*
487492
compass_distribution: compass-readonly
493+
retry_on_failure: true
488494
- func: verify-artifacts
489495
- func: save-all-artifacts
490496
vars:

.evergreen/connectivity-tests/run.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ docker run \
1818
-e E2E_TESTS_ATLAS_HOST="${E2E_TESTS_ATLAS_HOST}" \
1919
-e E2E_TESTS_DATA_LAKE_HOST="${E2E_TESTS_DATA_LAKE_HOST}" \
2020
-e E2E_TESTS_ANALYTICS_NODE_HOST="${E2E_TESTS_ANALYTICS_NODE_HOST}" \
21-
-e E2E_TESTS_SERVERLESS_HOST="${E2E_TESTS_SERVERLESS_HOST}" \
2221
-e E2E_TESTS_FREE_TIER_HOST="${E2E_TESTS_FREE_TIER_HOST}" \
2322
-e E2E_TESTS_ATLAS_USERNAME="${E2E_TESTS_ATLAS_USERNAME}" \
2423
-e E2E_TESTS_ATLAS_PASSWORD="${E2E_TESTS_ATLAS_PASSWORD}" \

.evergreen/functions.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ variables:
5858
E2E_TESTS_METRICS_URI: ${e2e_tests_metrics_string}
5959
E2E_TESTS_ATLAS_HOST: ${e2e_tests_atlas_host}
6060
E2E_TESTS_DATA_LAKE_HOST: ${e2e_tests_data_lake_host}
61-
E2E_TESTS_SERVERLESS_HOST: ${e2e_tests_serverless_host}
6261
E2E_TESTS_ANALYTICS_NODE_HOST: ${e2e_tests_analytics_node_host}
6362
E2E_TESTS_FREE_TIER_HOST: ${e2e_tests_free_tier_host}
6463
E2E_TESTS_ATLAS_USERNAME: ${e2e_tests_atlas_username}

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,34 +9,44 @@
99
NOTE: use `feat`, `fix` and `perf` for user facing changes that will be part of
1010
release notes.
1111
-->
12+
1213
## Description
14+
1315
<!--- Describe your changes in detail -->
1416
<!--- If applicable, describe (or illustrate) architecture flow -->
1517
<!--- If the UI changes in a non-trivial way, consider adding screenshots/video illustrating the new flows -->
1618

1719
### Checklist
20+
1821
- [ ] New tests and/or benchmarks are included
1922
- [ ] Documentation is changed or added
2023
- [ ] If this change updates the UI, screenshots/videos are added and a design review is requested
24+
- [ ] If this change could impact the load on the MongoDB cluster, please describe the expected and worst case impact
2125
- [ ] I have signed the MongoDB Contributor License Agreement (https://www.mongodb.com/legal/contributor-agreement)
2226

2327
## Motivation and Context
28+
2429
<!--- Why is this change required? What problem does it solve? -->
25-
<!--- If it's updating a dependancy, link to the Pull Request that originally introduced the fix -->
30+
<!--- If it's updating a dependency, link to the Pull Request that originally introduced the fix -->
31+
2632
- [ ] Bugfix
2733
- [ ] New feature
2834
- [ ] Dependency update
2935
- [ ] Misc
3036

3137
## Open Questions
38+
3239
<!--- Any particular areas you'd like reviewers to pay attention to? -->
3340

3441
## Dependents
42+
3543
<!--- If applicable, link PRs/commits that this PR is dependent on or is a dependency of. -->
3644

3745
## Types of changes
46+
3847
<!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: -->
39-
- [ ] *Backport Needed*
48+
49+
- [ ] _Backport Needed_
4050
- [ ] Patch (non-breaking change which fixes an issue)
4151
- [ ] Minor (non-breaking change which adds functionality)
4252
- [ ] Major (fix or feature that would cause existing functionality to change)

.github/workflows/update-dependencies.yaml

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ jobs:
4444
name: Update ${{ matrix.group_name }} to latest
4545
runs-on: ubuntu-latest
4646
needs: configure_matrix
47+
env:
48+
UPDATE_BRANCH_NAME: ci/update-${{ matrix.group_name }}
4749
strategy:
4850
matrix:
4951
group_name: ${{ fromJSON(needs.configure_matrix.outputs.group_name) }}
@@ -77,12 +79,36 @@ jobs:
7779
- name: Run "update dependencies" script
7880
run: npx compass-scripts update-dependencies preset-${{ matrix.group_name }}
7981

82+
# Conditionally performing a sparse checkout of the existing branch to compare changes
83+
# and avoid the "create-pull-request" action force-pushing when changes aren't necessary.
84+
# This also allows us pushing commits to the update branch to fix any breaking changes
85+
# without risking these commits being overwritten by the action.
86+
- name: Check existence of an existing branch
87+
id: check-branch-exists
88+
run: |
89+
if git ls-remote --exit-code --heads origin ${{ env.UPDATE_BRANCH_NAME }}; then
90+
echo "branch_exists=true" >> "$GITHUB_OUTPUT"
91+
else
92+
echo "branch_exists=false" >> "$GITHUB_OUTPUT"
93+
fi
94+
95+
- name: Checkout existing branch
96+
if: steps.check-branch-exists.outputs.branch_exists == 'true'
97+
uses: actions/checkout@v4
98+
with:
99+
ref: ${{ env.UPDATE_BRANCH_NAME }}
100+
path: existing-branch-checkout
101+
sparse-checkout: |
102+
package-lock.json
103+
sparse-checkout-cone-mode: false
104+
80105
- name: Create Pull Request
106+
if: steps.check-branch-exists.outputs.branch_exists == 'false' || hashFiles('package-lock.json') != hashFiles('existing-branch-checkout/package-lock.json')
81107
uses: peter-evans/create-pull-request@5e914681df9dc83aa4e4905692ca88beb2f9e91f # 7.0.5
82108
with:
83109
token: ${{ steps.app-token.outputs.token }}
84110
commit-message: 'chore(deps): update ${{ matrix.group_name }} to latest'
85-
branch: ci/update-${{ matrix.group_name }}
111+
branch: ${{ env.UPDATE_BRANCH_NAME }}
86112
title: 'chore(deps): update ${{ matrix.group_name }} to latest'
87113
labels: |
88114
no-title-validation

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,7 @@ config/*/.npmrc
3535
.sbom
3636
.logs
3737
.evergreen/logs
38+
39+
# The update-dependencies workflow does a sparse checkout
40+
# and we don't want to include these files in the PRs it creates.
41+
existing-branch-checkout/

AUTHORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,3 +118,4 @@ Nick Larew <nick.larew@10gen.com>
118118
Shun Miyazawa <34241526+miya@users.noreply.github.com>
119119
Kyle Lai <122811196+kylelai1@users.noreply.github.com>
120120
carolynmcca <carolyn.mccawley@mongodb.com>
121+
Case Kramer <case.kramer@mongodb.com>

0 commit comments

Comments
 (0)