From 9d3ad266cc51ebaf343ad1ccc613bad77aff514d Mon Sep 17 00:00:00 2001 From: Bianca Lisle Date: Wed, 23 Oct 2024 10:47:13 +0100 Subject: [PATCH 1/4] CLOUDP-274733: Fix flaky test --- .github/workflows/required-spec-validations.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/required-spec-validations.yml b/.github/workflows/required-spec-validations.yml index b56d8932e..223fbe6de 100644 --- a/.github/workflows/required-spec-validations.yml +++ b/.github/workflows/required-spec-validations.yml @@ -23,6 +23,16 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 + - name: Install npm dependencies + uses: nick-fields/retry@v3 + with: + timeout_minutes: 10 + max_attempts: 3 + command: npm ci + - name: Setup Node + uses: actions/setup-node@v3 + with: + node-version: '20.x' - name: Download openapi-foas uses: actions/download-artifact@v4 with: From 03311005981bea318eae89de88ac9367619845bc Mon Sep 17 00:00:00 2001 From: Bianca Lisle Date: Thu, 24 Oct 2024 16:53:00 +0100 Subject: [PATCH 2/4] Add logs --- tools/cli/internal/breakingchanges/exemptions.go | 2 ++ tools/cli/internal/changelog/outputfilter/hide.go | 1 + 2 files changed, 3 insertions(+) diff --git a/tools/cli/internal/breakingchanges/exemptions.go b/tools/cli/internal/breakingchanges/exemptions.go index c5ab897e4..bad9728df 100644 --- a/tools/cli/internal/breakingchanges/exemptions.go +++ b/tools/cli/internal/breakingchanges/exemptions.go @@ -89,6 +89,8 @@ func GetValidExemptionsList(exemptionsPath string, ignoreExpiration bool, fs afe validExemptions = append(validExemptions, exemption) } } + + log.Printf("Found %d valid exemptions", len(validExemptions)) return validExemptions, nil } diff --git a/tools/cli/internal/changelog/outputfilter/hide.go b/tools/cli/internal/changelog/outputfilter/hide.go index 0a86e5584..840c54eb2 100644 --- a/tools/cli/internal/changelog/outputfilter/hide.go +++ b/tools/cli/internal/changelog/outputfilter/hide.go @@ -56,6 +56,7 @@ func hideByIDs(entries []*OasDiffEntry, ids []string) ([]*OasDiffEntry, error) { // hideByExemptions hides entries based on the exemptions func hideByExemptions(entries []*OasDiffEntry, exemptions []breakingchanges.Exemption) ([]*OasDiffEntry, error) { exemptionsMarkedHidden := breakingchanges.GetHiddenExemptions(exemptions) + log.Printf("Found %d exemptions marked hidden from the changelog.", len(exemptionsMarkedHidden)) hiddenEntries := 0 for _, entry := range entries { if entry.HideFromChangelog { From ede34cadb0928bca2dc5c1ebf6fcb0655af0b1ff Mon Sep 17 00:00:00 2001 From: Bianca Lisle Date: Thu, 24 Oct 2024 18:28:46 +0100 Subject: [PATCH 3/4] Update --- .github/workflows/required-spec-validations.yml | 11 +++++++++++ package.json | 4 ++++ 2 files changed, 15 insertions(+) create mode 100644 package.json diff --git a/.github/workflows/required-spec-validations.yml b/.github/workflows/required-spec-validations.yml index 223fbe6de..d5c5caccf 100644 --- a/.github/workflows/required-spec-validations.yml +++ b/.github/workflows/required-spec-validations.yml @@ -23,16 +23,27 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 +<<<<<<< Updated upstream +======= + - name: Setup Node + uses: actions/setup-node@v3 + with: + node-version: '20.x' +>>>>>>> Stashed changes - name: Install npm dependencies uses: nick-fields/retry@v3 with: timeout_minutes: 10 max_attempts: 3 +<<<<<<< Updated upstream command: npm ci - name: Setup Node uses: actions/setup-node@v3 with: node-version: '20.x' +======= + command: npm install +>>>>>>> Stashed changes - name: Download openapi-foas uses: actions/download-artifact@v4 with: diff --git a/package.json b/package.json new file mode 100644 index 000000000..b0df58466 --- /dev/null +++ b/package.json @@ -0,0 +1,4 @@ +{ + "name": "mongodb-openapi", + "description": "MongoDB repository with OpenAPI specification" +} \ No newline at end of file From a844aede1a8edbcee34dfcdcd34fdc8869b75966 Mon Sep 17 00:00:00 2001 From: Bianca Lisle Date: Thu, 24 Oct 2024 18:30:06 +0100 Subject: [PATCH 4/4] update --- .github/workflows/required-spec-validations.yml | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/.github/workflows/required-spec-validations.yml b/.github/workflows/required-spec-validations.yml index d5c5caccf..0dc5beb14 100644 --- a/.github/workflows/required-spec-validations.yml +++ b/.github/workflows/required-spec-validations.yml @@ -23,27 +23,16 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 -<<<<<<< Updated upstream -======= - name: Setup Node uses: actions/setup-node@v3 with: node-version: '20.x' ->>>>>>> Stashed changes - name: Install npm dependencies uses: nick-fields/retry@v3 with: timeout_minutes: 10 max_attempts: 3 -<<<<<<< Updated upstream - command: npm ci - - name: Setup Node - uses: actions/setup-node@v3 - with: - node-version: '20.x' -======= command: npm install ->>>>>>> Stashed changes - name: Download openapi-foas uses: actions/download-artifact@v4 with: