Skip to content

Commit 6f9ca70

Browse files
committed
merge
2 parents 08a7d73 + 0ea30a2 commit 6f9ca70

File tree

20 files changed

+381
-35
lines changed

20 files changed

+381
-35
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# SPDX-FileCopyrightText: Copyright (c) 2016-2025 Objectionary.com
2+
# SPDX-License-Identifier: MIT
3+
---
4+
# yamllint disable rule:line-length
5+
name: Performance Regression Check
6+
on:
7+
pull_request:
8+
branches:
9+
- master
10+
jobs:
11+
benchmark:
12+
timeout-minutes: 15
13+
runs-on: ubuntu-24.04
14+
steps:
15+
- name: Run JMH Benchmark Action
16+
uses: volodya-lombrozo/jmh-benchmark-action@main
17+
with:
18+
java-version: "11"
19+
base-ref: "master"
20+
benchmark-command: |
21+
mvn jmh:benchmark -Djmh.rf=json -Djmh.rff=benchmark.json
22+
benchmark-file: "benchmark.json"

.github/workflows/post-comment.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# SPDX-FileCopyrightText: Copyright (c) 2016-2025 Objectionary.com
2+
# SPDX-License-Identifier: MIT
3+
---
4+
# yamllint disable rule:line-length
5+
name: Post Benchmark Comment
6+
on:
7+
workflow_run:
8+
workflows: [ "Performance Regression Check" ]
9+
types:
10+
- completed
11+
12+
jobs:
13+
post-comment:
14+
timeout-minutes: 15
15+
runs-on: ubuntu-24.04
16+
steps:
17+
- name: Dump GitHub context
18+
env:
19+
GITHUB_CONTEXT: ${{ toJson(github) }}
20+
run: echo "$GITHUB_CONTEXT"
21+
- name: Download PR Number and Benchmark Comment
22+
uses: actions/download-artifact@v4
23+
with:
24+
run-id: ${{ github.event.workflow_run.id }}
25+
github-token: ${{ secrets.GITHUB_TOKEN }}
26+
- name: Read and display PR Number
27+
run: |
28+
PR_NUMBER=$(cat pr-number/pr-number)
29+
echo "PR_NUMBER=$PR_NUMBER" >> "$GITHUB_ENV"
30+
echo "The PR number is $PR_NUMBER"
31+
- name: Post Comment on PR
32+
uses: mshick/add-pr-comment@v2
33+
with:
34+
issue: ${{ env.PR_NUMBER }}
35+
message-path: |
36+
benchmark-comment/benchmark-comment.md
37+
repo-token: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,7 @@
55
.idea
66
.idea/
77
node_modules/
8-
target
98
target/
9+
!src/it/eo-to-bytecode/target
10+
!src/it/fails-if-bytecode-broken/target
11+
.aider*

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ configuration to your `pom.xml` file:
6565
<plugin>
6666
<groupId>org.eolang</groupId>
6767
<artifactId>jeo-maven-plugin</artifactId>
68-
<version>0.7.5</version>
68+
<version>0.8.0</version>
6969
<executions>
7070
<execution>
7171
<id>bytecode-to-eo</id>

pom.xml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@
176176
<dependency>
177177
<groupId>org.eolang</groupId>
178178
<artifactId>eo-parser</artifactId>
179-
<version>0.51.6</version>
179+
<version>0.52.0</version>
180180
</dependency>
181181
<dependency>
182182
<groupId>com.github.volodya-lombrozo</groupId>
@@ -225,6 +225,18 @@
225225
<version>0.2.0</version>
226226
<scope>test</scope>
227227
</dependency>
228+
<dependency>
229+
<groupId>org.openjdk.jmh</groupId>
230+
<artifactId>jmh-core</artifactId>
231+
<version>1.37</version>
232+
<scope>test</scope>
233+
</dependency>
234+
<dependency>
235+
<groupId>org.openjdk.jmh</groupId>
236+
<artifactId>jmh-generator-annprocess</artifactId>
237+
<version>1.37</version>
238+
<scope>test</scope>
239+
</dependency>
228240
</dependencies>
229241
<build>
230242
<testResources>
@@ -242,6 +254,11 @@
242254
</testResource>
243255
</testResources>
244256
<plugins>
257+
<plugin>
258+
<groupId>pw.krejci</groupId>
259+
<artifactId>jmh-maven-plugin</artifactId>
260+
<version>0.2.2</version>
261+
</plugin>
245262
<plugin>
246263
<artifactId>maven-compiler-plugin</artifactId>
247264
<executions>

src/it/annotations/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
<plugin>
4949
<groupId>org.eolang</groupId>
5050
<artifactId>eo-maven-plugin</artifactId>
51-
<version>0.51.6</version>
51+
<version>0.52.0</version>
5252
<executions>
5353
<execution>
5454
<id>convert-xmir-to-eo</id>

src/it/bytecode-to-eo/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
<plugin>
5555
<groupId>org.eolang</groupId>
5656
<artifactId>eo-maven-plugin</artifactId>
57-
<version>0.51.6</version>
57+
<version>0.52.0</version>
5858
<executions>
5959
<execution>
6060
<id>convert-xmir-to-phi</id>
@@ -82,7 +82,7 @@
8282
<plugin>
8383
<groupId>org.eolang</groupId>
8484
<artifactId>eo-maven-plugin</artifactId>
85-
<version>0.51.6</version>
85+
<version>0.52.0</version>
8686
<executions>
8787
<execution>
8888
<id>convert-xmir-to-eo</id>

src/it/custom-transformations/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
<plugin>
4949
<groupId>org.eolang</groupId>
5050
<artifactId>eo-maven-plugin</artifactId>
51-
<version>0.51.6</version>
51+
<version>0.52.0</version>
5252
<executions>
5353
<!--
5454
@todo #610:30min Enable EO Printing in 'custom-transformations' it.

src/it/exceptions/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
<plugin>
6767
<groupId>org.eolang</groupId>
6868
<artifactId>eo-maven-plugin</artifactId>
69-
<version>0.51.6</version>
69+
<version>0.52.0</version>
7070
<executions>
7171
<execution>
7272
<id>convert-xmir-to-eo</id>

src/it/generics/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
<plugin>
4949
<groupId>org.eolang</groupId>
5050
<artifactId>eo-maven-plugin</artifactId>
51-
<version>0.51.6</version>
51+
<version>0.52.0</version>
5252
<executions>
5353
<execution>
5454
<id>convert-xmir-to-eo</id>

0 commit comments

Comments
 (0)