Skip to content

Commit 2d88365

Browse files
authored
protect 1.4.x branch and add CI job (#2538)
* protect 1.4.x branch and add CI job * Update branch reference from 1.3.x to 1.4.x
1 parent f92e6ee commit 2d88365

File tree

3 files changed

+185
-0
lines changed

3 files changed

+185
-0
lines changed

.asf.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,18 @@ github:
9797
dismiss_stale_reviews: false
9898
require_code_owner_reviews: false
9999
required_approving_review_count: 1
100+
1.4.x:
101+
required_status_checks:
102+
# strict means "Require branches to be up to date before merging".
103+
strict: false
104+
# contexts are the names of checks that must pass
105+
contexts:
106+
- Code is formatted
107+
- Check headers
108+
required_pull_request_reviews:
109+
dismiss_stale_reviews: false
110+
require_code_owner_reviews: false
111+
required_approving_review_count: 1
100112

101113
notifications:
102114

.github/workflows/binary-compatibility-checks.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ on:
2525
- 1.0.x
2626
- 1.1.x
2727
- 1.2.x
28+
- 1.3.x
29+
- 1.4.x
2830

2931
permissions: {}
3032

Lines changed: 171 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,171 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one or more
2+
# license agreements; and to You under the Apache License, version 2.0:
3+
#
4+
# https://www.apache.org/licenses/LICENSE-2.0
5+
#
6+
# This file is part of the Apache Pekko project, which was derived from Akka.
7+
#
8+
9+
name: Nightly Builds (1.4)
10+
11+
on:
12+
schedule:
13+
- cron: "0 0 * * *"
14+
workflow_dispatch:
15+
16+
permissions: {}
17+
18+
jobs:
19+
pekko-cluster-metrics-sigar:
20+
name: Pekko Cluster Metrics Test with Sigar
21+
runs-on: ubuntu-22.04
22+
if: github.repository == 'apache/pekko'
23+
steps:
24+
- name: Checkout
25+
uses: actions/[email protected]
26+
with:
27+
fetch-depth: 0
28+
fetch-tags: true
29+
persist-credentials: false
30+
ref: 1.4.x
31+
32+
- name: Setup Java 11
33+
uses: actions/setup-java@v5
34+
with:
35+
distribution: temurin
36+
java-version: 11
37+
38+
- name: Install sbt
39+
uses: sbt/setup-sbt@3e125ece5c3e5248e18da9ed8d2cce3d335ec8dd # v1.1.14
40+
41+
- name: Cache Coursier cache
42+
uses: coursier/cache-action@bebeeb0e6f48ebad66d3783946588ecf43114433 # v6.4.8
43+
44+
- name: Enable jvm-opts
45+
run: cp .jvmopts-ci .jvmopts
46+
47+
- name: sbt cluster-metrics/test
48+
env:
49+
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
50+
run: |-
51+
sbt \
52+
-Djava.security.egd=file:/dev/./urandom \
53+
-Dpekko.test.sigar=true \
54+
-Dpekko.cluster.assert=on \
55+
-Dpekko.test.timefactor=2 \
56+
-Dpekko.actor.testkit.typed.timefactor=2 \
57+
-Dpekko.test.tags.exclude=gh-exclude,timing \
58+
-Dpekko.log.timestamps=true \
59+
-Dio.netty.leakDetection.level=PARANOID \
60+
-Dmultinode.XX:MetaspaceSize=128M \
61+
-Dmultinode.Xms256M \
62+
-Dmultinode.Xmx256M \
63+
-Dmultinode.Xlog:gc \
64+
-Dmultinode.XX:+AlwaysActAsServerClassMachine \
65+
clean cluster-metrics/test
66+
67+
pekko-classic-remoting-tests:
68+
name: Pekko Classic Remoting Tests
69+
runs-on: ubuntu-22.04
70+
if: github.repository == 'apache/pekko'
71+
strategy:
72+
fail-fast: false
73+
matrix:
74+
command:
75+
- cluster/test distributed-data/test cluster-tools/test cluster-metrics/test
76+
- cluster-sharding/test
77+
- cluster-typed/test cluster-sharding-typed/test
78+
steps:
79+
- name: Checkout
80+
uses: actions/[email protected]
81+
with:
82+
# we don't know what commit the last tag was it's safer to get entire repo so previousStableVersion resolves
83+
fetch-depth: 0
84+
fetch-tags: true
85+
persist-credentials: false
86+
ref: 1.4.x
87+
88+
- name: Setup Java 11
89+
uses: actions/setup-java@v5
90+
with:
91+
distribution: temurin
92+
java-version: 11
93+
94+
- name: Install sbt
95+
uses: sbt/setup-sbt@3e125ece5c3e5248e18da9ed8d2cce3d335ec8dd # v1.1.14
96+
97+
- name: Cache Coursier cache
98+
uses: coursier/cache-action@bebeeb0e6f48ebad66d3783946588ecf43114433 # v6.4.8
99+
100+
- name: Enable jvm-opts
101+
run: cp .jvmopts-ci .jvmopts
102+
103+
- name: sbt ${{ matrix.command }}
104+
env:
105+
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
106+
# note that this is not running any multi-jvm tests because multi-in-test=false
107+
run: |-
108+
sbt \
109+
-Djava.security.egd=file:/dev/./urandom \
110+
-Dpekko.remote.artery.enabled=off \
111+
-Dpekko.test.timefactor=2 \
112+
-Dpekko.actor.testkit.typed.timefactor=2 \
113+
-Dpekko.test.tags.exclude=gh-exclude,timing \
114+
-Dpekko.test.multi-in-test=false \
115+
-Dio.netty.leakDetection.level=PARANOID \
116+
-Dpekko.cluster.assert=on \
117+
clean ${{ matrix.command }}
118+
119+
jdk-nightly-build:
120+
name: JDK ${{ matrix.javaVersion }} / Scala ${{ matrix.scalaVersion }}
121+
runs-on: ubuntu-22.04
122+
if: github.repository == 'apache/pekko'
123+
strategy:
124+
fail-fast: false
125+
matrix:
126+
# No need to specify the full Scala version. Only the Scala
127+
# binary version is required and Pekko build will set the right
128+
# full version from it.
129+
scalaVersion: ["2.12.x", "2.13.x", "3.3.x"]
130+
javaVersion: [8, 11, 17, 21, 25]
131+
exclude:
132+
- scalaVersion: "2.12.x"
133+
javaVersion: 25
134+
steps:
135+
- name: Checkout
136+
uses: actions/[email protected]
137+
with:
138+
fetch-depth: 0
139+
fetch-tags: true
140+
persist-credentials: false
141+
ref: 1.4.x
142+
143+
- name: Setup Java ${{ matrix.javaVersion }}
144+
uses: actions/setup-java@v5
145+
with:
146+
distribution: temurin
147+
java-version: ${{ matrix.javaVersion }}
148+
149+
- name: Install sbt
150+
uses: sbt/setup-sbt@3e125ece5c3e5248e18da9ed8d2cce3d335ec8dd # v1.1.14
151+
152+
- name: Cache Coursier cache
153+
uses: coursier/cache-action@bebeeb0e6f48ebad66d3783946588ecf43114433 # v6.4.8
154+
155+
- name: Enable jvm-opts
156+
run: cp .jvmopts-ci .jvmopts
157+
158+
- name: Compile and Test
159+
env:
160+
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
161+
# note that this is not running any multi-jvm tests because multi-in-test=false
162+
run: |-
163+
sbt \
164+
-Dpekko.cluster.assert=on \
165+
-Dpekko.log.timestamps=true \
166+
-Dpekko.test.timefactor=2 \
167+
-Dpekko.actor.testkit.typed.timefactor=2 \
168+
-Dpekko.test.tags.exclude=gh-exclude,timing \
169+
-Dpekko.test.multi-in-test=false \
170+
-Dio.netty.leakDetection.level=PARANOID \
171+
clean "++ ${{ matrix.scalaVersion }} test" checkTestsHaveRun

0 commit comments

Comments
 (0)