Skip to content

Commit 9d3b99c

Browse files
authored
Merge pull request #2231 from newrelic/gha-ubuntu-24
Update GHA workflows to Ubuntu 24 and 22
2 parents 5e745ea + 232c660 commit 9d3b99c

File tree

33 files changed

+87
-25
lines changed

33 files changed

+87
-25
lines changed

.github/workflows/Create-Custom-Jar.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ on:
1414
jobs:
1515
create_custom_jar:
1616
name: Create jar
17-
runs-on: ubuntu-20.04
17+
runs-on: ubuntu-24.04
1818
env:
1919
# we use this in env var for conditionals (secrets can't be used in conditionals)
2020
AWS_KEY: ${{ secrets.AWS_ACCESS_KEY_ID }}

.github/workflows/GHA-Functional-Tests.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
java-functional-tests:
2222
name: Java ${{ matrix.java-version }}
2323
timeout-minutes: 150
24-
runs-on: ubuntu-20.04
24+
runs-on: ubuntu-24.04
2525
env:
2626
default-branch: "main"
2727
strategy:

.github/workflows/GHA-Scala-Functional-Tests.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
scala-functional-tests:
2121
name: Java ${{ matrix.java-version }}
2222
timeout-minutes: 120
23-
runs-on: ubuntu-20.04
23+
runs-on: ubuntu-24.04
2424
strategy:
2525
##max-parallel: 1 ## used to force sequential
2626
fail-fast: false

.github/workflows/GHA-Scala-Instrumentation-Tests.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
scala-instrumentation-tests:
2121
name: Scala ${{ matrix.scala }} on Java ${{ matrix.java-version }}
2222
timeout-minutes: 120
23-
runs-on: ubuntu-20.04
23+
runs-on: ubuntu-24.04
2424
env:
2525
# we use this in env var for conditionals (secrets can't be used in conditionals)
2626
AWS_KEY: ${{ secrets.AWS_ACCESS_KEY_ID }}

.github/workflows/GHA-Spotbugs.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ on:
1717
jobs:
1818
spotbugs:
1919
timeout-minutes: 15
20-
runs-on: ubuntu-20.04
20+
runs-on: ubuntu-24.04
2121
steps:
2222
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # pin@v4
2323
with:
@@ -78,7 +78,7 @@ jobs:
7878

7979
publish:
8080
needs: spotbugs
81-
runs-on: ubuntu-20.04
81+
runs-on: ubuntu-24.04
8282
concurrency: gh-pages
8383
env:
8484
BRANCH_NAME: ${{ inputs.agent-ref || 'main' }}

.github/workflows/GHA-Unit-Tests.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
unit-test:
2121
name: Java ${{ matrix.java-version }}
2222
timeout-minutes: 150
23-
runs-on: ubuntu-20.04
23+
runs-on: ubuntu-24.04
2424
strategy:
2525
# max-parallel: 1 ## used to force sequential vs. concurrent
2626
fail-fast: false

.github/workflows/GHPages-Cleanup.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ on:
1414
type: string
1515
jobs:
1616
cleanup:
17-
runs-on: ubuntu-20.04
17+
runs-on: ubuntu-24.04
1818
env:
1919
DAYS: ${{ inputs.days || '5' }}
2020
steps:

.github/workflows/Java-Instrumentation-Tests.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
name: Java ${{ matrix.java-version }}
2525
timeout-minutes: 120
2626
# needs: install-all-java
27-
runs-on: ubuntu-20.04
27+
runs-on: ubuntu-24.04
2828
env:
2929
# we use these in env vars for conditionals (secrets can't be used in conditionals)
3030
AWS_KEY: ${{ secrets.aws-secret-access-key }}

.github/workflows/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ jobs:
267267
secrets: inherit
268268

269269
another-job:
270-
runs-on: ubuntu-20.04
270+
runs-on: ubuntu-24.04
271271
needs: build-agent
272272
steps:
273273
- name: Retrieve agent from cache

.github/workflows/Release-CopyToS3-prod.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111
jobs:
1212
copy-to-s3:
1313
name: Copy ${{ inputs.version_number }} to S3 (Prod)
14-
runs-on: ubuntu-20.04
14+
runs-on: ubuntu-24.04
1515
steps:
1616
- name: Checkout Self
1717
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # pin@v4

.github/workflows/Release-CopyToS3-staging.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ on:
1515
jobs:
1616
copy-to-s3:
1717
name: Copy ${{ inputs.version_number }} to S3 (Staging)
18-
runs-on: ubuntu-20.04
18+
runs-on: ubuntu-24.04
1919
steps:
2020
- name: Checkout Self
2121
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # pin@v4

.github/workflows/Release-UpdateSystemConfig.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111
jobs:
1212
update-system-config:
1313
name: Set java_agent_version to ${{ inputs.version_number }} in system config
14-
runs-on: ubuntu-20.04
14+
runs-on: ubuntu-24.04
1515
steps:
1616
- name: Update system configuration page
1717
run: |

.github/workflows/Test-AITs.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747

4848
list-tests:
4949
name: List tests
50-
runs-on: ubuntu-20.04
50+
runs-on: ubuntu-22.04
5151
outputs:
5252
tests: ${{ steps.read-single-test.outputs.tests || steps.read-tests.outputs.tests }}
5353
steps:
@@ -117,7 +117,7 @@ jobs:
117117
name: ${{ matrix.tests }}
118118
needs: [ build-agent, list-tests ]
119119
timeout-minutes: 120
120-
runs-on: ubuntu-20.04
120+
runs-on: ubuntu-22.04
121121
# Determine if easier to make the env strings below part of the matrix
122122
strategy:
123123
fail-fast: false
@@ -318,7 +318,7 @@ jobs:
318318
ln -s ${GITHUB_WORKSPACE}/newrelic-agent/build/newrelicJar/newrelic.jar ${GITHUB_WORKSPACE}/newrelic.jar
319319
echo "still complains of file not found"
320320
sudo apt-get install virtualenv
321-
virtualenv -p /usr/bin/python3.8 .
321+
virtualenv -p /usr/bin/python3.10 .
322322
. bin/activate
323323
bin/pip3 install -r conf/requirements.txt
324324
ZULU11=${JDK_zulu_11} \
@@ -369,7 +369,7 @@ jobs:
369369

370370
notify-if-negative-values:
371371
needs: [ tests ]
372-
runs-on: ubuntu-20.04
372+
runs-on: ubuntu-22.04
373373
steps:
374374
- name: Download artifact(s) # surely there is a way to only download the negative_value_*.txt artifacts?
375375
uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # pin@v4

.github/workflows/VerifyInstrumentation-Single.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ on:
1515
jobs:
1616
verify-module:
1717
name: Verify Instrumentation (${{ github.event.inputs.module || inputs.module }})
18-
runs-on: ubuntu-20.04
18+
runs-on: ubuntu-24.04
1919
env:
2020
MODULE: ${{ github.event.inputs.module || inputs.module }}
2121
AWS_KEY: ${{ secrets.aws-secret-access-key }}

.github/workflows/VerifyInstrumentation.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
notify-failure:
5555
needs: [ verify-instrumentation-1, verify-instrumentation-2 ]
5656
if: ${{ failure() }}
57-
runs-on: ubuntu-20.04
57+
runs-on: ubuntu-24.04
5858
steps:
5959
- name: Send failure message to Slack
6060
id: slack

.github/workflows/X-Reusable-BuildAgent.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ on:
1616
jobs:
1717
# build the agent and saves Gradle's cache so all modules can use the cache
1818
build-agent:
19-
runs-on: ubuntu-20.04
19+
runs-on: ubuntu-24.04
2020
env:
2121
# we use this in env var for conditionals (secrets can't be used in conditionals)
2222
AWS_KEY: ${{ secrets.AWS_ACCESS_KEY_ID }}

.github/workflows/X-Reusable-VerifyInstrumentation.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
# this job reads the directories in newrelic-java-agent/instrumentation and creates a JSON with the list of the modules
2323
# this list is paginated and will be used in the verify-module job.
2424
read-modules:
25-
runs-on: ubuntu-20.04
25+
runs-on: ubuntu-24.04
2626
outputs:
2727
modules: ${{ steps.set-modules.outputs.modules }}
2828
steps:
@@ -48,7 +48,7 @@ jobs:
4848
4949
verify-module:
5050
name: ${{ matrix.modules }}
51-
runs-on: ubuntu-20.04
51+
runs-on: ubuntu-24.04
5252
needs: read-modules
5353
strategy:
5454
fail-fast: false

.github/workflows/publish_main_snapshot.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66

77
jobs:
88
publish_snapshot:
9-
runs-on: ubuntu-20.04
9+
runs-on: ubuntu-24.04
1010
steps:
1111
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # pin@v4
1212

.github/workflows/publish_release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

88
jobs:
99
publish_release:
10-
runs-on: ubuntu-20.04
10+
runs-on: ubuntu-24.04
1111
steps:
1212
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # pin@v4
1313

.github/workflows/repolinter.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on: [ push, workflow_dispatch ]
1111
jobs:
1212
repolint:
1313
name: Run Repolinter
14-
runs-on: ubuntu-20.04
14+
runs-on: ubuntu-24.04
1515
steps:
1616
- name: Test Default Branch
1717
id: default-branch

instrumentation/jdbc-mariadb-1.1.7/src/test/java/org/mariadb/jdbc/MariaDbTest.java

+4
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@
2929

3030
@RunWith(InstrumentationTestRunner.class)
3131
@InstrumentationTestConfig(includePrefixes = {"org.mariadb.jdbc", "java.sql", "javax.sql" })
32+
@Ignore
33+
/* Using an embedded mariaDB instance is incompatible with Ubuntu 22 and our goal of adding test converage of Java 8.
34+
* Todo: Use test containers as opposed to the mariaDB instance and remove the @Ignore annotation
35+
*/
3236
public class MariaDbTest {
3337

3438
private static DB mariaDb;

instrumentation/jdbc-mariadb-1.3.0/src/test/java/org/mariadb/jdbc/MariaDbTest.java

+4
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@
2929

3030
@RunWith(InstrumentationTestRunner.class)
3131
@InstrumentationTestConfig(includePrefixes = {"org.mariadb.jdbc"})
32+
@Ignore
33+
/* Using an embedded mariaDB instance is incompatible with Ubuntu 22 and our goal of adding test coverage of Java 8.
34+
* Todo: Use test containers as opposed to the mariaDB instance and remove the @Ignore annotation
35+
*/
3236
public class MariaDbTest {
3337

3438
private static DB mariaDb;

instrumentation/jdbc-mariadb-3.0.0/src/test/java/org/mariadb/jdbc/MariaDbTest.java

+4
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@
2929

3030
@RunWith(InstrumentationTestRunner.class)
3131
@InstrumentationTestConfig(includePrefixes = {"org.mariadb.jdbc"})
32+
@Ignore
33+
/* Using an embedded mariaDB instance is incompatible with Ubuntu 22 and our goal of adding test coverage of Java 8.
34+
* Todo: Use test containers as opposed to the mariaDB instance and remove the @Ignore annotation
35+
*/
3236
public class MariaDbTest {
3337

3438
private static DB mariaDb;

instrumentation/r2dbc-mariadb-1.1.2/src/test/java/com/nr/agent/instrumentation/r2dbc/MariadbInstrumentedTest.java

+5
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
import io.r2dbc.spi.ConnectionFactory;
1212
import org.junit.AfterClass;
1313
import org.junit.Before;
14+
import org.junit.Ignore;
1415
import org.junit.Test;
1516
import org.junit.runner.RunWith;
1617
import reactor.core.publisher.Mono;
@@ -19,6 +20,10 @@
1920

2021
@RunWith(InstrumentationTestRunner.class)
2122
@InstrumentationTestConfig(includePrefixes = "org.mariadb.r2dbc")
23+
@Ignore
24+
/* Using an embedded mariaDB instance is incompatible with Ubuntu 22 and our goal of adding test coverage of Java 8.
25+
* Todo: Use test containers as opposed to the mariaDB instance and remove the @Ignore annotation
26+
*/
2227
public class MariadbInstrumentedTest {
2328

2429
public static DB mariaDb;

instrumentation/r2dbc-mariadb-1.1.2/src/test/java/com/nr/agent/instrumentation/r2dbc/MariadbNoInstrumentationTest.java

+5
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
import io.r2dbc.spi.ConnectionFactory;
1212
import org.junit.AfterClass;
1313
import org.junit.Before;
14+
import org.junit.Ignore;
1415
import org.junit.Test;
1516
import org.junit.runner.RunWith;
1617
import reactor.core.publisher.Mono;
@@ -19,6 +20,10 @@
1920

2021
@RunWith(InstrumentationTestRunner.class)
2122
@InstrumentationTestConfig(includePrefixes = "none")
23+
@Ignore
24+
/* Using an embedded mariaDB instance is incompatible with Ubuntu 22 and our goal of adding test coverage of Java 8.
25+
* Todo: Use test containers as opposed to the mariaDB instance and remove the @Ignore annotation
26+
*/
2227
public class MariadbNoInstrumentationTest {
2328

2429
public static DB mariaDb;

instrumentation/r2dbc-mariadb-1.2.1/src/test/java/com/nr/agent/instrumentation/r2dbc/MariadbInstrumentedTest.java

+5
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
import io.r2dbc.spi.ConnectionFactory;
1212
import org.junit.AfterClass;
1313
import org.junit.Before;
14+
import org.junit.Ignore;
1415
import org.junit.Test;
1516
import org.junit.runner.RunWith;
1617
import reactor.core.publisher.Mono;
@@ -19,6 +20,10 @@
1920

2021
@RunWith(InstrumentationTestRunner.class)
2122
@InstrumentationTestConfig(includePrefixes = "org.mariadb.r2dbc")
23+
@Ignore
24+
/* Using an embedded mariaDB instance is incompatible with Ubuntu 22 and our goal of adding test coverage of Java 8.
25+
* Todo: Use test containers as opposed to the mariaDB instance and remove the @Ignore annotation
26+
*/
2227
public class MariadbInstrumentedTest {
2328

2429
public static DB mariaDb;

instrumentation/r2dbc-mariadb-1.2.1/src/test/java/com/nr/agent/instrumentation/r2dbc/MariadbNoInstrumentationTest.java

+5
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
import io.r2dbc.spi.ConnectionFactory;
1212
import org.junit.AfterClass;
1313
import org.junit.Before;
14+
import org.junit.Ignore;
1415
import org.junit.Test;
1516
import org.junit.runner.RunWith;
1617
import reactor.core.publisher.Mono;
@@ -19,6 +20,10 @@
1920

2021
@RunWith(InstrumentationTestRunner.class)
2122
@InstrumentationTestConfig(includePrefixes = "none")
23+
@Ignore
24+
/* Using an embedded mariaDB instance is incompatible with Ubuntu 22 and our goal of adding test coverage of Java 8.
25+
* Todo: Use test containers as opposed to the mariaDB instance and remove the @Ignore annotation
26+
*/
2227
public class MariadbNoInstrumentationTest {
2328

2429
public static DB mariaDb;

instrumentation/r2dbc-mariadb/src/test/java/com/nr/agent/instrumentation/r2dbc/MariadbInstrumentedTest.java

+5
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
import io.r2dbc.spi.ConnectionFactory;
1212
import org.junit.AfterClass;
1313
import org.junit.Before;
14+
import org.junit.Ignore;
1415
import org.junit.Test;
1516
import org.junit.runner.RunWith;
1617
import reactor.core.publisher.Mono;
@@ -19,6 +20,10 @@
1920

2021
@RunWith(InstrumentationTestRunner.class)
2122
@InstrumentationTestConfig(includePrefixes = "org.mariadb.r2dbc")
23+
@Ignore
24+
/* Using an embedded mariaDB instance is incompatible with Ubuntu 22 and our goal of adding test coverage of Java 8.
25+
* Todo: Use test containers as opposed to the mariaDB instance and remove the @Ignore annotation
26+
*/
2227
public class MariadbInstrumentedTest {
2328

2429
public static DB mariaDb;

instrumentation/r2dbc-mariadb/src/test/java/com/nr/agent/instrumentation/r2dbc/MariadbNoInstrumentationTest.java

+5
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
import io.r2dbc.spi.ConnectionFactory;
1212
import org.junit.AfterClass;
1313
import org.junit.Before;
14+
import org.junit.Ignore;
1415
import org.junit.Test;
1516
import org.junit.runner.RunWith;
1617
import reactor.core.publisher.Mono;
@@ -19,6 +20,10 @@
1920

2021
@RunWith(InstrumentationTestRunner.class)
2122
@InstrumentationTestConfig(includePrefixes = "none")
23+
@Ignore
24+
/* Using an embedded mariaDB instance is incompatible with Ubuntu 22 and our goal of adding test coverage of Java 8.
25+
* Todo: Use test containers as opposed to the mariaDB instance and remove the @Ignore annotation
26+
*/
2227
public class MariadbNoInstrumentationTest {
2328

2429
public static DB mariaDb;

instrumentation/r2dbc-mysql-1.1.3/src/test/java/com/nr/agent/instrumentation/r2dbc/MySQLInstrumentedTest.java

+5
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
import io.r2dbc.spi.ConnectionFactory;
1212
import org.junit.AfterClass;
1313
import org.junit.Before;
14+
import org.junit.Ignore;
1415
import org.junit.Test;
1516
import org.junit.runner.RunWith;
1617
import reactor.core.publisher.Mono;
@@ -19,6 +20,10 @@
1920

2021
@RunWith(InstrumentationTestRunner.class)
2122
@InstrumentationTestConfig(includePrefixes = "io.asyncer.r2dbc.mysql")
23+
@Ignore
24+
/* Using an embedded mariaDB instance is incompatible with Ubuntu 22 and our goal of adding test coverage of Java 8.
25+
* Todo: Use test containers as opposed to the mariaDB instance and remove the @Ignore annotation
26+
*/
2227
public class MySQLInstrumentedTest {
2328

2429
public static DB mariaDb;

0 commit comments

Comments
 (0)