Make builds reproducible for automatic releases CI (#11204)
This commit is contained in:
parent
a1ed1fb447
commit
49bf7a171a
|
|
@ -175,9 +175,11 @@ jobs:
|
|||
cache: "maven"
|
||||
- name: Build distribution tar
|
||||
run: |
|
||||
./mvnw clean install javadoc:javadoc -B -q \
|
||||
./mvnw clean install javadoc:javadoc -B -q -Pall \
|
||||
-Dmaven.test.skip \
|
||||
-Dcheckstyle.skip
|
||||
- name: Verify builds are reproducible
|
||||
run: ./mvnw -Dmaven.test.skip clean verify artifact:compare -Pall
|
||||
- uses: actions/upload-artifact@v3
|
||||
name: Upload distribution tar
|
||||
with:
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
* Maven artifact `skywalking-log-recevier-plugin` is renamed to `skywalking-log-receiver-plugin`.
|
||||
* Bump up cli version 0.11 to 0.12.
|
||||
* Bump up the version of ASF parent pom to v30.
|
||||
* Make builds reproducible for automatic releases CI.
|
||||
|
||||
#### OAP Server
|
||||
|
||||
|
|
|
|||
|
|
@ -5,6 +5,8 @@ We have a module called `microbench` which performs a series of micro-benchmark
|
|||
Make new JMH tests extend the `org.apache.skywalking.oap.server.microbench.base.AbstractMicrobenchmark`
|
||||
to customize runtime conditions (Measurement, Fork, Warmup, etc.).
|
||||
|
||||
You can build the jar with command `./mvnw -Dmaven.test.skip -DskipTests -pl :microbench package -am -Pbenchmark`.
|
||||
|
||||
JMH tests could run as a normal unit test. And they could run as an independent uber jar via `java -jar benchmark.jar` for all benchmarks,
|
||||
or via `java -jar /benchmarks.jar exampleClassName` for a specific test.
|
||||
|
||||
|
|
|
|||
|
|
@ -27,10 +27,10 @@
|
|||
<artifactId>microbench</artifactId>
|
||||
|
||||
<properties>
|
||||
<jmh.version>1.25</jmh.version>
|
||||
<jmh.version>1.36</jmh.version>
|
||||
<slf4j.version>1.7.30</slf4j.version>
|
||||
<uberjar.name>benchmarks</uberjar.name>
|
||||
<maven-shade-plugin.version>3.1.1</maven-shade-plugin.version>
|
||||
<maven-shade-plugin.version>3.2.3</maven-shade-plugin.version>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
|
|
|
|||
|
|
@ -46,12 +46,20 @@
|
|||
<module>server-tools</module>
|
||||
<module>server-fetcher-plugin</module>
|
||||
<module>server-health-checker</module>
|
||||
<module>microbench</module>
|
||||
<module>ai-pipeline</module>
|
||||
<module>mqe-grammar</module>
|
||||
<module>mqe-rt</module>
|
||||
</modules>
|
||||
|
||||
<profiles>
|
||||
<profile>
|
||||
<id>benchmark</id>
|
||||
<modules>
|
||||
<module>microbench</module>
|
||||
</modules>
|
||||
</profile>
|
||||
</profiles>
|
||||
|
||||
<properties>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
</properties>
|
||||
|
|
|
|||
4
pom.xml
4
pom.xml
|
|
@ -150,6 +150,8 @@
|
|||
<maven.compiler.source>11</maven.compiler.source>
|
||||
<maven.compiler.target>11</maven.compiler.target>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<!-- `project.build.outputTimestamp` is required for reproducible builds: https://maven.apache.org/guides/mini/guide-reproducible-builds.html -->
|
||||
<project.build.outputTimestamp>0</project.build.outputTimestamp>
|
||||
|
||||
<powermock.version>2.0.9</powermock.version>
|
||||
<checkstyle.version>6.18</checkstyle.version>
|
||||
|
|
@ -372,7 +374,7 @@
|
|||
<artifactId>antlr4-maven-plugin</artifactId>
|
||||
<version>${antlr.version}</version>
|
||||
</plugin>
|
||||
|
||||
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-release-plugin</artifactId>
|
||||
|
|
|
|||
Loading…
Reference in New Issue