neronsoda commented on issue #7920:
URL:
https://github.com/apache/incubator-seata/issues/7920#issuecomment-3736784861
@funky-eyes
Hi. I was just about to share my progress.
### Test Environment
I selected one of the failing CI configurations to reproduce the issue:
```bash
./mvnw -T 4C clean test -P args-for-client-test \
-Dspring-boot.version=2.3.12.RELEASE \
-Dspring-framework.version=5.2.15.RELEASE \
-e -B
```
---
### Step 1: Added OkHttp 4.9.3 → Apollo Test Failed
**Action:** Added `<okhttp.version>4.9.3</okhttp.version>` to
`seata-dependencies/pom.xml`
**Result:**
```
[ERROR] org.apache.seata.config.apollo.ApolloConfigurationTest
java.lang.NoSuchMethodError: 'void
okhttp3.internal.Internal.initializeInstanceForTests()'
```
**Root Cause:** Apollo Client requires OkHttp 3.x internally, but project
now uses 4.x globally.
---
### Step 2: Fixed Apollo Module → Console Module Failed
**Action:** Isolated Apollo test with OkHttp 3.14.9 in
`config/seata-config-apollo/pom.xml`
```xml
<dependency>
<groupId>com.squareup.okhttp3</groupId>
<artifactId>okhttp</artifactId>
<version>3.14.9</version>
<scope>test</scope>
</dependency>
```
**Result:** Apollo tests pass ✅, but new errors in console module:
```
[ERROR] cannot find symbol: class HttpStatusCode (Spring 6.0+ only)
[ERROR] cannot access javax.servlet.Filter
[ERROR] incompatible types: JwtAuthenticationTokenFilter cannot be converted
to jakarta.servlet.Filter
```
**Root Cause:** Console module uses Spring Boot 3.x APIs, incompatible with
Spring Boot 2.x tests in CI.
---
This is where I am now. Could I get some feedback on how to proceed?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]