ci: run focused native compatibility tests (#1375)

* fix: register Glue catalog payloads for native image

* fix: include AppSync parser resources in native image

* fix: include API Gateway VTL native metadata

* ci: run focused native compatibility tests
This commit is contained in:
David Phillips authored and GitHub committed 2026-06-16 18:54:22 -05:00
1 parent 9327a252d6
commit 01b38bb4bb
4 files changed
+177 -5

No files matched your search

@@ -5,9 +5,27 @@ import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import jakarta.enterprise.context.ApplicationScoped;
import jakarta.inject.Inject;
import io.quarkus.runtime.annotations.RegisterForReflection;
import org.apache.velocity.VelocityContext;
import org.apache.velocity.app.VelocityEngine;
import org.apache.velocity.runtime.ParserPoolImpl;
import org.apache.velocity.runtime.RuntimeConstants;
import org.apache.velocity.runtime.directive.Break;
import org.apache.velocity.runtime.directive.Define;
import org.apache.velocity.runtime.directive.Evaluate;
import org.apache.velocity.runtime.directive.Foreach;
import org.apache.velocity.runtime.directive.Include;
import org.apache.velocity.runtime.directive.Macro;
import org.apache.velocity.runtime.directive.Parse;
import org.apache.velocity.runtime.directive.Stop;
import org.apache.velocity.runtime.parser.StandardParser;
import org.apache.velocity.runtime.resource.ResourceCacheImpl;
import org.apache.velocity.runtime.resource.ResourceManagerImpl;
import org.apache.velocity.runtime.resource.loader.FileResourceLoader;
import org.apache.velocity.runtime.resource.loader.StringResourceLoader;
import org.apache.velocity.runtime.resource.util.StringResourceRepositoryImpl;
import org.apache.velocity.util.introspection.TypeConversionHandlerImpl;
import org.apache.velocity.util.introspection.UberspectImpl;
import java.io.StringWriter;
import java.net.URLDecoder;
@@ -24,6 +42,28 @@ import java.util.Map;
* {@code $input}, {@code $util}, {@code $context}, {@code $stageVariables}.
*/
@ApplicationScoped
@RegisterForReflection(targets = {
VtlTemplateEngine.InputVariable.class,
VtlTemplateEngine.UtilVariable.class,
VtlTemplateEngine.ResponseOverride.class,
UberspectImpl.class,
TypeConversionHandlerImpl.class,
ResourceManagerImpl.class,
ResourceCacheImpl.class,
ParserPoolImpl.class,
FileResourceLoader.class,
StringResourceLoader.class,
StringResourceRepositoryImpl.class,
Foreach.class,
Include.class,
Parse.class,
Macro.class,
Evaluate.class,
Break.class,
Define.class,
Stop.class,
StandardParser.class,
})
public class VtlTemplateEngine {
private final VelocityEngine engine;
@@ -18,6 +18,7 @@ import io.github.hectorvent.floci.services.glue.schemaregistry.SchemaToColumnsCo
import io.github.hectorvent.floci.services.glue.schemaregistry.model.SchemaId;
import io.github.hectorvent.floci.services.glue.schemaregistry.model.SchemaVersion;
import io.github.hectorvent.floci.services.resourcegroupstagging.ResourceGroupsTaggingService;
import io.quarkus.runtime.annotations.RegisterForReflection;
import jakarta.enterprise.context.ApplicationScoped;
import jakarta.inject.Inject;
import org.jboss.logging.Logger;
@@ -876,18 +877,22 @@ public class GlueService {
@JsonProperty("TableName") String tableName,
@JsonProperty("ErrorDetail") ErrorDetail errorDetail) {}
@RegisterForReflection
public record BatchCreatePartitionError(
@JsonProperty("PartitionValues") List<String> partitionValues,
@JsonProperty("ErrorDetail") ErrorDetail errorDetail) {}
@RegisterForReflection
public record BatchUpdatePartitionEntry(
@JsonProperty("PartitionValueList") List<String> partitionValueList,
@JsonProperty("PartitionInput") Partition partitionInput) {}
@RegisterForReflection
public record BatchUpdatePartitionError(
@JsonProperty("PartitionValueList") List<String> partitionValueList,
@JsonProperty("ErrorDetail") ErrorDetail errorDetail) {}
@RegisterForReflection
public record ErrorDetail(
@JsonProperty("ErrorCode") String errorCode,
@JsonProperty("ErrorMessage") String errorMessage) {}
@@ -896,6 +901,7 @@ public class GlueService {
@JsonProperty("ColumnStatisticsList") List<Map<String, Object>> columnStatisticsList,
@JsonProperty("Errors") List<ColumnError> errors) {}
@RegisterForReflection
public record ColumnError(
@JsonProperty("ColumnName") String columnName,
@JsonProperty("Error") ErrorDetail error) {}