Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@maple525866
Copy link
Contributor

@maple525866 maple525866 commented Nov 21, 2025

Ⅰ. Describe what this PR did

Addressing the CI issue caused by testXARollbackWithResourceLock()

The root cause was a change made in #7708 , but the test pull request wasn't synchronized to the last branch, leading to the problem.

https://github.com/apache/incubator-seata/actions/runs/19563643682/job/56021142515?pr=7781

This has now been fixed.

Ⅱ. Does this pull request fix one issue?

Ⅲ. Why don't you add test cases (unit test/integration test)?

Ⅳ. Describe how to verify it

mvn clean test

Ⅴ. Special notes for reviews

@funky-eyes funky-eyes added this to the 2.6.0 milestone Nov 21, 2025
@funky-eyes funky-eyes added type: test test case module/rm-datasource rm-datasource module mode: XA XA transaction mode labels Nov 21, 2025
@funky-eyes funky-eyes requested a review from Copilot November 21, 2025 08:35
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes a CI failure in the testXARollbackWithResourceLock() test that was caused by incomplete synchronization with changes from PR #7708. The test now properly initializes the XA transaction state before testing the rollback operation.

Key Changes:

  • Added mock setup for branchRegister to handle XA transaction initialization
  • Added setAutoCommit(false) call to start the XA transaction and set internal state (xaBranchXid and xaActive)
  • Added clarifying comments explaining the purpose of the setup

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@codecov
Copy link

codecov bot commented Nov 21, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 70.60%. Comparing base (21e5d68) to head (1006618).
⚠️ Report is 2 commits behind head on 2.x.

Additional details and impacted files
@@             Coverage Diff              @@
##                2.x    #7804      +/-   ##
============================================
+ Coverage     69.92%   70.60%   +0.67%     
- Complexity      992      994       +2     
============================================
  Files          1322     1322              
  Lines         50175    50175              
  Branches       5932     5932              
============================================
+ Hits          35086    35426     +340     
+ Misses        12156    11811     -345     
- Partials       2933     2938       +5     

see 18 files with indirect coverage changes

Impacted file tree graph

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Contributor

@funky-eyes funky-eyes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@funky-eyes funky-eyes merged commit 6cee250 into apache:2.x Nov 21, 2025
14 of 16 checks passed
YvCeung pushed a commit to YvCeung/incubator-seata that referenced this pull request Dec 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mode: XA XA transaction mode module/rm-datasource rm-datasource module type: test test case

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants