diff --git a/.github/workflows/required-spec-validations.yml b/.github/workflows/required-spec-validations.yml index b56d8932e7..0dc5beb143 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: Setup Node + uses: actions/setup-node@v3 + with: + node-version: '20.x' + - name: Install npm dependencies + uses: nick-fields/retry@v3 + with: + timeout_minutes: 10 + max_attempts: 3 + command: npm install - name: Download openapi-foas uses: actions/download-artifact@v4 with: diff --git a/package.json b/package.json new file mode 100644 index 0000000000..b0df584663 --- /dev/null +++ b/package.json @@ -0,0 +1,4 @@ +{ + "name": "mongodb-openapi", + "description": "MongoDB repository with OpenAPI specification" +} \ No newline at end of file diff --git a/tools/cli/internal/breakingchanges/exemptions.go b/tools/cli/internal/breakingchanges/exemptions.go index c5ab897e4e..bad9728df1 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 0a86e5584c..840c54eb28 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 {