Skip to content

Commit c5ca0d6

Browse files
authored
Merge pull request #571 from apache/FELIX-6869-http-its-jdk27
FELIX-6869 - Run the HTTP integration tests on a current JDK and on this framework
2 parents 06126be + 6c02bcc commit c5ca0d6

5 files changed

Lines changed: 36 additions & 20 deletions

File tree

‎.github/workflows/maven-ci.yml‎

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,18 @@ jobs:
7676
- name: Felix Log
7777
if: steps.changes.outputs.log == 'true'
7878
run: mvn -B -V -Dstyle.color=always --file log/pom.xml clean verify
79+
# Built and installed before Felix HTTP, whose integration tests run on it.
80+
# Also runs when only http changed, so those tests always exercise the framework
81+
# in this repository rather than the last release. See FELIX-6869.
82+
- name: Felix Framework
83+
if: steps.changes.outputs.framework == 'true' || steps.changes.outputs.http == 'true'
84+
run: mvn -B -V -Dstyle.color=always --file framework/pom.xml clean install
7985
- name: Felix HTTP
8086
if: steps.changes.outputs.http == 'true'
81-
run: mvn -B -V -Dstyle.color=always "-Dit.test=!MissingWebsocketDependenciesIT" --file http/pom.xml clean install verify "-Dmaven.repo.local=/home/runner/.m2/repository/"
87+
run: |
88+
FRAMEWORK_VERSION=$(mvn -B -q --file framework/pom.xml help:evaluate -Dexpression=project.version -DforceStdout)
89+
echo "Running the integration tests against framework $FRAMEWORK_VERSION"
90+
mvn -B -V -Dstyle.color=always "-Dit.test=!MissingWebsocketDependenciesIT" --file http/pom.xml clean install verify "-Dmaven.repo.local=/home/runner/.m2/repository/" "-Dfelix.framework.version=$FRAMEWORK_VERSION"
8291
- name: Felix Maven bundle plugin
8392
if: steps.changes.outputs.maven-bundle-plugin == 'true'
8493
run: mvn -B -V -Dstyle.color=always --file tools/maven-bundle-plugin/pom.xml clean install verify
@@ -88,13 +97,6 @@ jobs:
8897
- name: Felix Webconsole
8998
if: steps.changes.outputs.webconsole == 'true'
9099
run: mvn -B -V -Dstyle.color=always --file webconsole/pom.xml clean install verify
91-
- name: Felix Framework
92-
if: steps.changes.outputs.framework == 'true'
93-
# install, not verify: the TCK below is a separate Maven invocation and resolves
94-
# the framework from the repository, so without installing it silently tests
95-
# whatever org.apache.felix.framework is published rather than the build under
96-
# test.
97-
run: mvn -B -V -Dstyle.color=always --file framework/pom.xml clean install
98100
- name: OSGi-TCK Framework
99101
if: steps.changes.outputs.framework == 'true'
100102
run: mvn -B -V -Dstyle.color=always --file framework.tck/pom.xml clean verify

‎http/jetty/pom.xml‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,13 @@
4545
<jetty.version>11.0.26</jetty.version>
4646
<baseline.skip>true</baseline.skip>
4747
<org.ops4j.pax.exam.version>4.13.3</org.ops4j.pax.exam.version>
48+
<!-- The OSGi framework the integration tests run on. Pinned rather than taken
49+
from the reactor, because each module here builds on its own and the
50+
framework is not necessarily built first; 7.0.5 is the latest release.
51+
Override to test against a locally built framework, for example:
52+
mvn verify -Dfelix.framework.version=7.1.0-SNAPSHOT
53+
after mvn install in framework/. See FELIX-6869. -->
54+
<felix.framework.version>7.0.5</felix.framework.version>
4855
<!-- To debug the pax process, override this with -D -->
4956
<pax.vm.options>-Xmx512M</pax.vm.options>
5057
</properties>
@@ -523,7 +530,7 @@
523530
<dependency>
524531
<groupId>org.apache.felix</groupId>
525532
<artifactId>org.apache.felix.framework</artifactId>
526-
<version>7.0.5</version>
533+
<version>${felix.framework.version}</version>
527534
<scope>test</scope>
528535
</dependency>
529536
<dependency>

‎http/jetty/src/test/java/org/apache/felix/http/jetty/it/AbstractJettyTestSupport.java‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -175,11 +175,11 @@ protected ModifiableCompositeOption optionalRemoteDebug() {
175175
public static ModifiableCompositeOption spifly() {
176176
return composite(
177177
mavenBundle().groupId("org.apache.aries.spifly").artifactId("org.apache.aries.spifly.dynamic.bundle").version("1.3.7"),
178-
mavenBundle().groupId("org.ow2.asm").artifactId("asm-analysis").version("9.7"),
179-
mavenBundle().groupId("org.ow2.asm").artifactId("asm-commons").version("9.7"),
180-
mavenBundle().groupId("org.ow2.asm").artifactId("asm-tree").version("9.7"),
181-
mavenBundle().groupId("org.ow2.asm").artifactId("asm-util").version("9.7"),
182-
mavenBundle().groupId("org.ow2.asm").artifactId("asm").version("9.7")
178+
mavenBundle().groupId("org.ow2.asm").artifactId("asm-analysis").version("9.10.1"),
179+
mavenBundle().groupId("org.ow2.asm").artifactId("asm-commons").version("9.10.1"),
180+
mavenBundle().groupId("org.ow2.asm").artifactId("asm-tree").version("9.10.1"),
181+
mavenBundle().groupId("org.ow2.asm").artifactId("asm-util").version("9.10.1"),
182+
mavenBundle().groupId("org.ow2.asm").artifactId("asm").version("9.10.1")
183183
);
184184
}
185185
}

‎http/jetty12/pom.xml‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,13 @@
4949
<slf4j.version>2.0.17</slf4j.version>
5050
<baseline.skip>false</baseline.skip>
5151
<org.ops4j.pax.exam.version>4.13.3</org.ops4j.pax.exam.version>
52+
<!-- The OSGi framework the integration tests run on. Pinned rather than taken
53+
from the reactor, because each module here builds on its own and the
54+
framework is not necessarily built first; 7.0.5 is the latest release.
55+
Override to test against a locally built framework, for example:
56+
mvn verify -Dfelix.framework.version=7.1.0-SNAPSHOT
57+
after mvn install in framework/. See FELIX-6869. -->
58+
<felix.framework.version>7.0.5</felix.framework.version>
5259
<!-- To debug the pax process, override this with -D -->
5360
<pax.vm.options>-Xmx512M</pax.vm.options>
5461
</properties>
@@ -701,7 +708,7 @@
701708
<dependency>
702709
<groupId>org.apache.felix</groupId>
703710
<artifactId>org.apache.felix.framework</artifactId>
704-
<version>7.0.5</version>
711+
<version>${felix.framework.version}</version>
705712
<scope>test</scope>
706713
</dependency>
707714
<dependency>

‎http/jetty12/src/test/java/org/apache/felix/http/jetty/it/AbstractJettyTestSupport.java‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -175,11 +175,11 @@ protected ModifiableCompositeOption optionalRemoteDebug() {
175175
public static ModifiableCompositeOption spifly() {
176176
return composite(
177177
mavenBundle().groupId("org.apache.aries.spifly").artifactId("org.apache.aries.spifly.dynamic.bundle").version("1.3.7"),
178-
mavenBundle().groupId("org.ow2.asm").artifactId("asm-analysis").version("9.7"),
179-
mavenBundle().groupId("org.ow2.asm").artifactId("asm-commons").version("9.7"),
180-
mavenBundle().groupId("org.ow2.asm").artifactId("asm-tree").version("9.7"),
181-
mavenBundle().groupId("org.ow2.asm").artifactId("asm-util").version("9.7"),
182-
mavenBundle().groupId("org.ow2.asm").artifactId("asm").version("9.7")
178+
mavenBundle().groupId("org.ow2.asm").artifactId("asm-analysis").version("9.10.1"),
179+
mavenBundle().groupId("org.ow2.asm").artifactId("asm-commons").version("9.10.1"),
180+
mavenBundle().groupId("org.ow2.asm").artifactId("asm-tree").version("9.10.1"),
181+
mavenBundle().groupId("org.ow2.asm").artifactId("asm-util").version("9.10.1"),
182+
mavenBundle().groupId("org.ow2.asm").artifactId("asm").version("9.10.1")
183183
);
184184
}
185185
}

0 commit comments

Comments
 (0)