-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ci: Warn when OpenAPI and Refitter interface is possibly out of sync #1968
ci: Warn when OpenAPI and Refitter interface is possibly out of sync #1968
Conversation
📝 WalkthroughWalkthroughThis pull request updates two GitHub Actions workflow files. In the Changes
Possibly related PRs
Suggested reviewers
📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (2)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
d7e5b1d
to
d102bfe
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (1)
.github/workflows/workflow-build-and-test.yml (1)
12-22
: Job "check-refitter-swagger-sync": Conditional Logic and Warning ConfigurationThe conditional expression in line 14 properly triggers this job when the OpenAPI spec changes without accompanying changes to the WebAPI SDK Refitter interface. The design—using
continue-on-error: true
along with an exit code (exit 1
) in the step—effectively issues a warning without failing the entire workflow. It would be beneficial to add an inline comment clarifying that this behavior is intentional (i.e., a warning mechanism rather than a hard error) for future maintainers.
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (4)
.github/workflows/workflow-build-and-test.yml
(1 hunks).github/workflows/workflow-check-for-changes.yml
(3 hunks)docs/schema/V1/swagger.verified.json
(1 hunks)src/Digdir.Domain.Dialogporten.Application/Features/V1/Common/Content/ContentValueDto.cs
(1 hunks)
🚧 Files skipped from review as they are similar to previous changes (3)
- .github/workflows/workflow-check-for-changes.yml
- src/Digdir.Domain.Dialogporten.Application/Features/V1/Common/Content/ContentValueDto.cs
- docs/schema/V1/swagger.verified.json
⏰ Context from checks skipped due to timeout of 90000ms (2)
- GitHub Check: build-infrastructure / Build infrastructure for test
- GitHub Check: build / build-and-test
🔇 Additional comments (1)
.github/workflows/workflow-build-and-test.yml (1)
8-11
: Job "check-for-changes" Integration: Verify External OutputsThe new job leverages the external workflow at
.github/workflows/workflow-check-for-changes.yml
to monitor code changes—including those for the Refitter interface file. Please ensure that the external workflow correctly produces the expected outputs (especiallyhasWebApiClientRefitterInterfaceChanges
) for consumption in downstream jobs.
a265714
to
bc370b5
Compare
d8b1702
to
32505dd
Compare
🤖 The OpenAPI spec has changed, but the WebAPI Refitter interface has not. Did you forget to rebuild the WebAPI SDK? |
32505dd
to
774ddf3
Compare
Har vi ikke en test på dette? |
Hmm, nei? 👀 |
Description
Related Issue(s)
Verification
Documentation
docs
-directory, Altinnpedia or a separate linked PR in altinn-studio-docs., if applicable)