mirror of
https://github.com/floci-io/floci.git
synced 2026-12-02 09:47:56 -05:00
test(compat): run the Java SDK suite nightly in cn-north-1 against an allowlist of known failures (#4790)
* test(compat): run the Java SDK suite nightly in cn-north-1 against an allowlist of known failures Part of #4272 (P11). The partition work is covered by unit and integration tests over all eight partitions, but nothing ran a real SDK whose own partition logic (arn:aws-cn: ARNs, China signing scopes, the LocationConstraint S3 CreateBucket sends) has to round-trip. The Partition Compatibility workflow runs after each Nightly against the image it published, or on dispatch with an image and region: Floci starts with FLOCI_DEFAULT_REGION=cn-north-1 and sdk-test-java runs with AWS_REGION set, which TestFixtures now reads (default us-east-1, so the per-PR legs are unchanged). It runs once a night rather than per PR, to keep the shared runner pools free. compat-allowlist-check.py compares the JUnit results with compat-partition-allowlist-<region>.txt and fails on a failure the list does not name, on an entry that no longer fails, or on missing results, so the list only shrinks. The cn-north-1 list holds the 112 failures measured locally on main plus #4787: 96 tests that pin commercial ARNs, regions or zones, 13 that exercise commercial-only behaviour, and 3 still to explain. * test(compat): pin the nightly China run to its image's commit and catch an aborted suite Greptile on #4790: the workflow checked out the Nightly run's head_sha but pulled the mutable floci/floci:nightly tag, so the image and the tests could come from different commits; it now pulls the image first and checks out the commit in its org.opencontainers.image.revision label. And Maven exits non-zero for allowlisted failures too, so a suite that stopped partway could pass; the checker now takes --test-sources and requires a report for every test class in that tree. The cn-north-1 allowlist groups its entries by the verified cause: the RDS and SSO portal entries are Floci bugs (an RdsService ownership check against the literal partition "aws", and an arn:aws: seeded Identity Center instance), and SsoAdminAccountAssignmentTest#createInstanceQuotaUsesAwsSdk passes alone and fails only after OrganizationsTest leaves an organization behind.
This commit is contained in:
1 parent
27ddf0bb00
commit
ea06896984
6 files changed
+420
-5
No files matched your search
@@ -181,13 +181,23 @@ public final class TestFixtures {
|
||||
ENDPOINT = URI.create(endpointStr);
|
||||
}
|
||||
|
||||
private static final Region REGION = Region.US_EAST_1;
|
||||
/**
|
||||
* The region every fixture client signs for: {@code AWS_REGION} when set (the variable the
|
||||
* SDK itself reads), else {@code us-east-1}. The China compat run sets {@code cn-north-1}, so
|
||||
* the same suite exercises a non-commercial partition end to end.
|
||||
*/
|
||||
private static final Region REGION = resolveRegion();
|
||||
|
||||
private static final StaticCredentialsProvider CREDENTIALS =
|
||||
StaticCredentialsProvider.create(AwsBasicCredentials.create("test", "test"));
|
||||
|
||||
private TestFixtures() {}
|
||||
|
||||
private static Region resolveRegion() {
|
||||
String region = System.getenv("AWS_REGION");
|
||||
return region == null || region.isBlank() ? Region.US_EAST_1 : Region.of(region.trim());
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns true when running against real AWS (no endpoint override).
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user