Skip to content

Commit 4295c5b

Browse files
committed
feat(cold-start-detection): Suppress cold start for non ON-DEMAND invocation (since there are no cold starts).
1 parent 5b47395 commit 4295c5b

File tree

24 files changed

+734
-777
lines changed

24 files changed

+734
-777
lines changed

examples/powertools-examples-core-utilities/terraform/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
2+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
33
<modelVersion>4.0.0</modelVersion>
44

55
<name>Powertools for AWS Lambda (Java) - Examples - Core Utilities (logging, tracing, metrics) with Terraform</name>
@@ -101,7 +101,8 @@
101101
<configuration>
102102
<createDependencyReducedPom>false</createDependencyReducedPom>
103103
<transformers>
104-
<transformer implementation="org.apache.logging.log4j.maven.plugins.shade.transformer.Log4j2PluginCacheFileTransformer"/>
104+
<transformer
105+
implementation="org.apache.logging.log4j.maven.plugins.shade.transformer.Log4j2PluginCacheFileTransformer" />
105106
</transformers>
106107
</configuration>
107108
</execution>
@@ -126,7 +127,6 @@
126127
<plugin>
127128
<groupId>org.apache.maven.plugins</groupId>
128129
<artifactId>maven-surefire-plugin</artifactId>
129-
<version>3.5.4</version>
130130
<configuration>
131131
<environmentVariables>
132132
<LAMBDA_TASK_ROOT>handler</LAMBDA_TASK_ROOT>

examples/powertools-examples-parameters/sam-graalvm/pom.xml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
2+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
33
<modelVersion>4.0.0</modelVersion>
44
<groupId>software.amazon.lambda.examples</groupId>
55
<version>2.8.0</version>
@@ -98,8 +98,6 @@
9898
<plugin>
9999
<groupId>org.apache.maven.plugins</groupId>
100100
<artifactId>maven-surefire-plugin</artifactId>
101-
<!-- JUnit 5 requires Surefire version 3.1.0 or higher -->
102-
<version>3.5.4</version>
103101
</plugin>
104102
<plugin>
105103
<groupId>dev.aspectj</groupId>
@@ -144,7 +142,8 @@
144142
<configuration>
145143
<createDependencyReducedPom>false</createDependencyReducedPom>
146144
<transformers>
147-
<transformer implementation="org.apache.logging.log4j.maven.plugins.shade.transformer.Log4j2PluginCacheFileTransformer"/>
145+
<transformer
146+
implementation="org.apache.logging.log4j.maven.plugins.shade.transformer.Log4j2PluginCacheFileTransformer" />
148147
</transformers>
149148
</configuration>
150149
</execution>

examples/powertools-examples-parameters/sam/pom.xml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
2+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
33
<modelVersion>4.0.0</modelVersion>
44
<groupId>software.amazon.lambda.examples</groupId>
55
<version>2.8.0</version>
@@ -72,8 +72,6 @@
7272
<plugin>
7373
<groupId>org.apache.maven.plugins</groupId>
7474
<artifactId>maven-surefire-plugin</artifactId>
75-
<!-- JUnit 5 requires Surefire version 3.1.0 or higher -->
76-
<version>3.5.4</version>
7775
</plugin>
7876
<plugin>
7977
<groupId>dev.aspectj</groupId>

pom.xml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@
9595
<maven-compiler-plugin.version>3.14.1</maven-compiler-plugin.version>
9696
<aspectj.version>1.9.7</aspectj.version>
9797
<aspectj-maven-plugin.version>1.13.1</aspectj-maven-plugin.version>
98-
<maven-surefire-plugin.version>3.2.5</maven-surefire-plugin.version>
9998
<jacoco-maven-plugin.version>0.8.11</jacoco-maven-plugin.version>
10099
<nexus-staging-maven-plugin.version>1.6.13</nexus-staging-maven-plugin.version>
101100
<maven-javadoc-plugin.version>3.12.0</maven-javadoc-plugin.version>
@@ -501,11 +500,6 @@
501500
<plugin>
502501
<groupId>org.apache.maven.plugins</groupId>
503502
<artifactId>maven-surefire-plugin</artifactId>
504-
<configuration>
505-
<environmentVariables>
506-
<AWS_LAMBDA_INITIALIZATION_TYPE>on-demand</AWS_LAMBDA_INITIALIZATION_TYPE>
507-
</environmentVariables>
508-
</configuration>
509503
</plugin>
510504
<plugin>
511505
<groupId>org.jacoco</groupId>
@@ -630,16 +624,12 @@
630624
<plugin>
631625
<groupId>org.apache.maven.plugins</groupId>
632626
<artifactId>maven-surefire-plugin</artifactId>
633-
<version>3.5.4</version>
634627
<configuration>
635628
<argLine>
636629
@{argLine}
637630
--add-opens java.base/java.util=ALL-UNNAMED
638631
--add-opens java.base/java.lang=ALL-UNNAMED
639632
</argLine>
640-
<environmentVariables>
641-
<AWS_LAMBDA_INITIALIZATION_TYPE>on-demand</AWS_LAMBDA_INITIALIZATION_TYPE>
642-
</environmentVariables>
643633
</configuration>
644634
</plugin>
645635
</plugins>

powertools-common/pom.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@
106106
<plugin>
107107
<groupId>org.apache.maven.plugins</groupId>
108108
<artifactId>maven-surefire-plugin</artifactId>
109-
<version>3.5.4</version>
110109
<configuration>
111110
<argLine>
112111
-Dorg.graalvm.nativeimage.imagecode=agent

powertools-e2e-tests/pom.xml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,6 @@
214214
<plugin>
215215
<groupId>org.apache.maven.plugins</groupId>
216216
<artifactId>maven-failsafe-plugin</artifactId>
217-
<version>3.5.4</version>
218217
<executions>
219218
<execution>
220219
<goals>
@@ -241,7 +240,6 @@
241240
<plugin>
242241
<groupId>org.apache.maven.plugins</groupId>
243242
<artifactId>maven-failsafe-plugin</artifactId>
244-
<version>3.5.4</version>
245243
<executions>
246244
<execution>
247245
<goals>

powertools-idempotency/powertools-idempotency-dynamodb/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@
104104
<scope>test</scope>
105105
</dependency>
106106
</dependencies>
107+
107108
<profiles>
108109
<profile>
109110
<id>generate-graalvm-files</id>

0 commit comments

Comments
 (0)