Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

disable vm install job in jdt #2919

Merged

Conversation

laeubi
Copy link
Member

@laeubi laeubi commented Oct 13, 2023

@@ -162,6 +162,7 @@ public void execute() throws MojoExecutionException, MojoFailureException {
} catch (Exception e) {
throw new MojoFailureException("Can't fetch dependencies!", e);
}
System.setProperty("DetectVMInstallationsJob.disabled", "true");

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be too late, not sure at which point in time this code is triggered...

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code is triggered (job is scheduled) when the jdt.launching bundle starts, which can be pretty early as it's required by jdt.core to resolve the classpath IIRC.
Wouldn't it be possible to set the flag before starting the VM (or at least the Equinox container) ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. This is before Equinox Container starts
  2. I now using the preference instead (so no unforeseen side effects)
  3. I have debugged that this prevents the job from being started.

So if setting it on the Jenkins Job directly works as system-property, this should then work here as well.

@laeubi laeubi force-pushed the disable_DetectVMInstallationsJob branch from 3c05780 to 0a6547c Compare October 13, 2023 11:50
@github-actions
Copy link

Test Results

   561 files  ±0     561 suites  ±0   4h 36m 59s ⏱️ - 12m 46s
   364 tests ±0     358 ✔️ +1    6 💤 ±0  0 ±0 
1 092 runs  ±0  1 073 ✔️ +1  19 💤 ±0  0 ±0 

Results for commit 9e400fc. ± Comparison against base commit 16eba00.

@laeubi laeubi merged commit 6cec40c into eclipse-tycho:master Oct 13, 2023
8 checks passed
@laeubi laeubi added the backport-to-tycho-4.0.x Can be added to a PR to trigger an automatic backport of the change label Oct 13, 2023
@github-actions
Copy link

💚 All backports created successfully

Status Branch Result
tycho-4.0.x

Questions ?

Please refer to the Backport tool documentation and see the Github Action logs for details

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-to-tycho-4.0.x Can be added to a PR to trigger an automatic backport of the change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants