Skip to content

Commit

Permalink
Stop using simrel 2021-06 in tests
Browse files Browse the repository at this point in the history
It's archived and frequent usage leads to broken builds with:
"org.eclipse.equinox.p2.core.ProvisionException: No repository found at
https://download.eclipse.org/technology/epp/packages/2021-06/202106121200."
as archives are not mirrored and this leads to heavy load (and DoS) of
archive.eclipse.org.
  • Loading branch information
akurtakov committed Dec 20, 2024
1 parent bb9b19f commit d7ac55b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ Require-Bundle: org.eclipse.osgi,
org.junit
Bundle-Activator: test.Activator
Bundle-ActivationPolicy: lazy
Bundle-RequiredExecutionEnvironment: JavaSE-11
Bundle-RequiredExecutionEnvironment: JavaSE-17
4 changes: 2 additions & 2 deletions tycho-its/projects/target.restriction.filter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@
<artifactId>target-platform-configuration</artifactId>
<version>${tycho-version}</version>
<configuration>
<executionEnvironment>JavaSE-11</executionEnvironment>
<executionEnvironment>JavaSE-17</executionEnvironment>
<filters>
<filter>
<!-- make sure that a 3.4.x version of bundle org.eclipse.osgi is used -->
<type> eclipse-plugin </type>
<id> org.eclipse.osgi </id> <!-- extra whitespace is not needed; it is just here to make the test harder -->
<restrictTo>
<versionRange>
[3.16,3.17)
[3.21,3.22)
</versionRange>
</restrictTo>
</filter>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public class Test extends TestCase {

public void test() {
Version version = new Version((String) Activator.context.getBundle(0).getHeaders().get("Bundle-Version"));
assertTrue(version.compareTo(new Version("3.17")) < 0);
assertTrue(version.compareTo(new Version("3.22")) < 0);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class TargetPlatformFilteringIntegrationTest extends AbstractTychoIntegra
@Test
public void test() throws Exception {
Verifier verifier = getVerifier("target.restriction.filter", false);
verifier.addCliOption("-De342-repo=" + "https:////download.eclipse.org/releases/2021-06/");
verifier.addCliOption("-De342-repo=" + "https:////download.eclipse.org/releases/2024-09/");
verifier.addCliOption("-De352-repo=" + P2Repositories.ECLIPSE_LATEST.toString().replace("/", "//"));
verifier.executeGoal("verify");
verifier.verifyErrorFreeLog();
Expand Down

0 comments on commit d7ac55b

Please sign in to comment.