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

remove unnecessary casts #527

Merged
merged 2 commits into from
Jun 21, 2024

Conversation

stephan-herrmann
Copy link
Contributor

When eclipse-jdt/eclipse.jdt.core#2471 is merged, ecj will signal more casts as unnecessary.

With this PR I suggest to remove affected casts before new warnings will show up in the build.

Copy link

github-actions bot commented Jun 20, 2024

Test Results

  375 files  ±0    375 suites  ±0   45m 6s ⏱️ -24s
1 893 tests ±0  1 890 ✅ ±0  3 💤 ±0  0 ❌ ±0 
6 679 runs  ±0  6 670 ✅ ±0  9 💤 ±0  0 ❌ ±0 

Results for commit f7ba2ec. ± Comparison against base commit b76734f.

♻️ This comment has been updated with latest results.

@stephan-herrmann
Copy link
Contributor Author

stephan-herrmann commented Jun 20, 2024

10 successful and 1 failing checks

how does this fit to a list of only successful checks, nevermind I found the scrollbar

and btw how does this correspond to the "Checks" tab above saying "9". That tab indeed shows no failure...

@stephan-herrmann
Copy link
Contributor Author

AutomatedTests org.eclipse.equinox.p2.tests.artifact.repository.AllTests.testSimpleRepositoryPerformanceOnLoadReadonlyLocalRepository (from AutomatedTests org.eclipse.equinox.p2.tests.artifact.repository.AllTests org.eclipse.equinox.p2.tests.artifact.repository.FoldersRepositoryTest) :

Querying artifact key from simple repository has performance issue. expected:<1.0> but was:<16.0>

should I worry, or can someone simply retrigger the build?

@merks
Copy link
Contributor

merks commented Jun 20, 2024

Probably a slow build executor. Don’t worry about it.

@merks
Copy link
Contributor

merks commented Jun 20, 2024

I think there are version problems still

plugin:4.0.8:compare-version-with-baselines (compare-attached-artifacts-with-release) on project org.eclipse.equinox.p2.ui.importexport: Only qualifier changed for (org.eclipse.equinox.p2.ui.importexport/1.4.400.v20240620-1753). Expected to have bigger x.y.z than what is available in baseline (1.4.400.v20240321-1450) -> [Help 1]

@stephan-herrmann stephan-herrmann force-pushed the removeCasts branch 2 times, most recently from 6980d58 to b199a15 Compare June 20, 2024 19:03
@stephan-herrmann
Copy link
Contributor Author

This error looks new:

15:20:37  [ERROR] Failed to execute goal org.eclipse.tycho:tycho-apitools-plugin:4.0.8:verify (verify) on project org.eclipse.equinox.p2.reconciler.dropins: Execute ApiApplication failed: InvocationTargetException: Error reading manifest for /home/jenkins/agent/workspace/p2_PR-527/.m2/repository/p2/osgi/bundle/bcprov.source/1.78.1/bcprov.source-1.78.1.jar: zip file is empty -> [Help 1]

@stephan-herrmann
Copy link
Contributor Author

does anybody have a clue how bcprov.source-1.78.1.jar is relevant for the build and/or what could have broken it (in the local maven repo, i.e.)?

@stephan-herrmann
Copy link
Contributor Author

@stephan-herrmann see:

* [BundleComponent.isValidBundle() should no throw if reading manifest fail eclipse-pde/eclipse.pde#1303](https://github.com/eclipse-pde/eclipse.pde/pull/1303)

Wow, so we need to wait for PDE which waits for a license check (for what?) until p2 can again build cleanly?

Should all this block the merge in JDT, or is it acceptable that p2 will see a few new warnings regarding unnecessary casts (I don't recall right now if they were reported as warning or error)?

@laeubi
Copy link
Member

laeubi commented Jun 21, 2024

Sometimes it works some time later when the Network is not flaky anymore or one can trust the three successful runs on Github Actions and the committer to have it checked in the IDE :-)

@akurtakov
Copy link
Member

Let's merge this one. The changes looks good and some builds succeed so I'll call this PR "validated"

@akurtakov akurtakov merged commit 2ab996a into eclipse-equinox:master Jun 21, 2024
10 of 11 checks passed
@stephan-herrmann
Copy link
Contributor Author

Let's merge this one. The changes looks good and some builds succeed so I'll call this PR "validated"

thanks a lot!

@stephan-herrmann stephan-herrmann deleted the removeCasts branch June 21, 2024 16:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants