Skip to content

Commit 46953b6

Browse files
add nightly test job
1 parent 5aa6a06 commit 46953b6

File tree

3 files changed

+56
-3
lines changed

3 files changed

+56
-3
lines changed

.github/workflows/nightly-tests.yaml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: "Run Nightly Tests"
2+
on:
3+
schedule:
4+
- "0 0 * * *" # run at 00:00 UTC
5+
workflow_dispatch:
6+
7+
concurrency:
8+
group: ${{ github.workflow}}-${{ github.ref }}
9+
cancel-in-progress: true
10+
11+
jobs:
12+
Run-Dsp-Compatibility-Test:
13+
name: "Run DSP Compatibility Test"
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
- uses: eclipse-edc/.github/.github/actions/setup-build@main
18+
- name: DSP Compatibility
19+
run: |
20+
./gradlew -p system-tests/dsp-compatibility-tests test -DincludeTags="NightlyTest" -PverboseTest=true
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
/*
2+
* Copyright (c) 2024 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
3+
*
4+
* This program and the accompanying materials are made available under the
5+
* terms of the Apache License, Version 2.0 which is available at
6+
* https://www.apache.org/licenses/LICENSE-2.0
7+
*
8+
* SPDX-License-Identifier: Apache-2.0
9+
*
10+
* Contributors:
11+
* Bayerische Motoren Werke Aktiengesellschaft (BMW AG) - initial API and implementation
12+
*
13+
*/
14+
15+
package org.eclipse.edc.junit.annotations;
16+
17+
import org.junit.jupiter.api.Tag;
18+
19+
import java.lang.annotation.ElementType;
20+
import java.lang.annotation.Retention;
21+
import java.lang.annotation.RetentionPolicy;
22+
import java.lang.annotation.Target;
23+
24+
/**
25+
* Annotation for Nightly testing. This is typically triggered by a nightly build action from CI.
26+
*/
27+
@Target({ ElementType.TYPE })
28+
@Retention(RetentionPolicy.RUNTIME)
29+
@IntegrationTest
30+
@Tag("NightlyTest")
31+
public @interface NightlyTest {
32+
}
33+

system-tests/dsp-compatibility-tests/compatibility-test-runner/src/test/java/org/eclipse/edc/tck/dsp/EdcCompatibilityTest.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
package org.eclipse.edc.tck.dsp;
1616

17-
import org.eclipse.edc.junit.annotations.EndToEndTest;
17+
import org.eclipse.edc.junit.annotations.NightlyTest;
1818
import org.eclipse.edc.junit.extensions.EmbeddedRuntime;
1919
import org.eclipse.edc.junit.extensions.RuntimeExtension;
2020
import org.eclipse.edc.junit.extensions.RuntimePerClassExtension;
@@ -35,7 +35,7 @@
3535

3636
import static org.eclipse.edc.util.io.Ports.getFreePort;
3737

38-
@EndToEndTest
38+
@NightlyTest
3939
@Testcontainers
4040
public class EdcCompatibilityTest {
4141

@@ -74,7 +74,7 @@ private static String resource(String s) {
7474
@Disabled(value = "Need to disable this test until the connector is 100% compliant with DSP")
7575
@Timeout(60)
7676
@Test
77-
void assertRuntimeReady() {
77+
void assertDspCompatibility() {
7878
// pipe the docker container's log to this console at the INFO level
7979
var monitor = new ConsoleMonitor(">>> TCK Runtime (Docker)", ConsoleMonitor.Level.INFO, true);
8080
TCK_CONTAINER.addFileSystemBind(resource("docker.tck.properties"), "/etc/tck/config.properties", BindMode.READ_ONLY, SelinuxContext.SINGLE);

0 commit comments

Comments
 (0)