Skip to content

build: upgrade oapi-codegen to v2.6.0 and runtime to v1.2.0 - #4

Open
knecasov wants to merge 3 commits into
mainfrom
add-coverage-workflow-wip
Open

build: upgrade oapi-codegen to v2.6.0 and runtime to v1.2.0#4
knecasov wants to merge 3 commits into
mainfrom
add-coverage-workflow-wip

Conversation

@knecasov

Copy link
Copy Markdown
Owner

What

Upgrade oapi-codegen to v2.6.0 and oapi-codegen/runtime to v1.2.0, regenerate handler code.

Why

oapi-codegen v2.6.0 generates code using runtime.BindQueryParameterWithOptions which requires runtime v1.2.0+.

ci: add Go test coverage workflow with baseline comparison

- add GitHub Actions workflow combining unit and integration test
  coverage with HTML report artifact
- add .testcoverage.yml with initial zero thresholds and generated
  file exclusion
- update utils.sh to support coverage-instrumented server build
  when GOCOVERDIR is set
- add coverage output files to .gitignore
- enable coverage comparison against main branch baseline

Signed-off-by: Klara Necasova <knecasov@redhat.com>
- find PR number via GitHub API with event context fallback
- post coverage report as PR comment
- defer workflow failure until after PR comment and artifacts are posted

Signed-off-by: Klara Necasova <knecasov@redhat.com>
- upgrade oapi-codegen/runtime v1.1.2 → v1.2.0 for
  BindQueryParameterWithOptions support
- upgrade oapi-codegen v2.5.1 → v2.6.0
- regenerate handler code with oapi-codegen v2.6.0

Signed-off-by: Klara Necasova <knecasov@redhat.com>
@github-actions

Copy link
Copy Markdown

go-test-coverage report

Total test coverage: 61.9% (1360/2197)

Test coverage has changed in the current files, with 9 lines missing coverage.
  file:				uncovered:	current coverage:	base coverage:
  internal/state/rvblob.go	  9		72.7% (24/33)		75.8% (25/33)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant