Skip to content

[Chore] Fix UT will be skip at CI#18205

Merged
SbloodyS merged 4 commits into
apache:devfrom
ruanwenjun:dev_wenjun_fixUTNotExecute
May 2, 2026
Merged

[Chore] Fix UT will be skip at CI#18205
SbloodyS merged 4 commits into
apache:devfrom
ruanwenjun:dev_wenjun_fixUTNotExecute

Conversation

@ruanwenjun
Copy link
Copy Markdown
Member

Was this PR generated or assisted by AI?

NO

Purpose of the pull request

Donot skip UT at CI

Brief change log

Verify this pull request

This pull request is code cleanup without any test coverage.

(or)

This pull request is already covered by existing tests, such as (please describe tests).

(or)

This change added tests and can be verified as follows:

(or)

Pull Request Notice

Pull Request Notice

If your pull request contains incompatible change, you should also add it to docs/docs/en/guide/upgrade/incompatible.md

@ruanwenjun ruanwenjun requested a review from SbloodyS as a code owner May 1, 2026 04:10
@ruanwenjun ruanwenjun self-assigned this May 1, 2026
@github-actions github-actions Bot added the CI&CD label May 1, 2026
@ruanwenjun ruanwenjun added this to the 3.4.2 milestone May 1, 2026
SbloodyS
SbloodyS previously approved these changes May 1, 2026
@ruanwenjun ruanwenjun force-pushed the dev_wenjun_fixUTNotExecute branch from cf06cad to 2465677 Compare May 1, 2026 16:20
SbloodyS
SbloodyS previously approved these changes May 2, 2026
…rtiesContext

@DirtiesContext(AFTER_EACH_TEST_METHOD) destroys the Spring context but Spring's
metrics auto-configuration does not remove the per-context MeterRegistry from
Metrics.globalRegistry on shutdown, leaving dangling child registries that made
counter reads in WorkflowInstanceMetricsTestCase return 0.0 in multi-IT runs.

* Unbind the test method's MeterRegistry from Metrics.globalRegistry in @AfterEach
  on AbstractMasterIntegrationTestCase.
* Drop the now-redundant cleanUpWorkflowInstanceCountMetricsByDefinitionCode call
  and baseline reads in WorkflowInstanceMetricsTestCase, since each test method
  starts with a fresh registry.
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented May 2, 2026

@SbloodyS SbloodyS merged commit 9563c66 into apache:dev May 2, 2026
214 of 222 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants