Aias00 opened a new issue, #6816:
URL: https://github.com/apache/shenyu/issues/6816
- severity: Low-Medium; files:
`shenyu-plugin-sign/.../service/SignServiceVersionOneTest.java:121,222,242,302,320`
(`String.valueOf(System.currentTimeMillis())` expecting
`VerifyResult.success()`), `SignServiceVersionTwoTest.java:123`; construction
`SignServiceVersionOneTest.java:84` (`new ComposableSignService(new
DefaultExtractor(), new DefaultSignProvider())`); field
`ComposableSignService.java:80-81` (`@Value("${shenyu.sign.delay:5}") private
int delay;` → JVM default `0` when constructed outside Spring)
- description: `ComposableSignService` is constructed via `new` in the
tests, so Spring's `AutowiredAnnotationBeanPostProcessor` never processes
`@Value` and `delay` stays `0`. The expiry check is
`Math.abs(acquireMinutesBetween(start, now)) <= delay` i.e. `<= 0`. A timestamp
captured at `MM:59.999` verified at `MM+1:00.001` yields `between=1` → `abs(1)
<= 0` is false → unexpected `SIGN_TIME_IS_TIMEOUT`.
- impact: Intermittent failures of all "success-expecting" sign tests on
slow/contended CI near minute boundaries.
- suggested_fix: Inject a real `delay` (reflection-set to 5, or construct
via Spring test context so `@Value` resolves).
- confidence: High
---
_Identified during the 2026-08-02 deep re-scan; full list in
[`docs/scan2-2026-08-02/06-medium-tiers.md`](docs/scan2-2026-08-02/06-medium-tiers.md)._
--
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]