-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
Fix extractjar task ci #33272
Fix extractjar task ci #33272
Conversation
Add build integration test instead
Pinging @elastic/es-core-infra |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, just one main thing
ZipEntry licenseEntry = zipFile.getEntry("META-INF/LICENSE.txt"); | ||
ZipEntry noticeEntry = zipFile.getEntry("META-INF/NOTICE.txt"); | ||
assertNotNull("Jar does not have META-INF/LICENSE.txt", licenseEntry); | ||
assertNotNull("Jar does not have META-INF/NOTICE", noticeEntry); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NOTICE -> NOTICE.txt
assertNotNull("Jar does not have META-INF/LICENSE.txt", licenseEntry); | ||
assertNotNull("Jar does not have META-INF/NOTICE", noticeEntry); | ||
try ( | ||
InputStream licese = zipFile.getInputStream(licenseEntry); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo: licese -> license
import org.gradle.api.artifacts.ProjectDependency | ||
import org.gradle.api.artifacts.ResolvedArtifact | ||
import org.gradle.api.artifacts.SelfResolvingDependency | ||
import org.gradle.api.* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please revert converting to wildcard imports...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Groovy has a different setting for this, I was under the impression that I already had it configured,
but looks like it was the case only for java.
@elasticmachine test this please |
1 similar comment
@elasticmachine test this please |
@elasticmachine test this please |
Remove tasks to check license and notice and add build integration test instead. Closes #33201
* master: (197 commits) Prevent NPE parsing the stop datafeed request. (elastic#33347) HLRC: Add ML get overall buckets API (elastic#33297) Core: Fix epoch millis java time formatter (elastic#33302) [Docs] Improve tuning for speed advice (elastic#33315) [Rollup] Fix Caps Comparator to handle calendar/fixed time (elastic#33336) [CI] Mute IndexShardTests#testIndexCheckOnStartup fails elastic#33345 [CI] Mute LuceneChangesSnapshotTests#testUpdateAndReadChangesConcurrently Security for _field_names field should not override field statistics (elastic#33261) Add early termination support to BucketCollector (elastic#33279) Fix extractjar task ci (elastic#33272) Mute testFollowIndexAndCloseNode Logging: Drop Settings from some logging ctors (elastic#33332) HLREST: add update by query API (elastic#32760) TEST: Increase timeout testFollowIndexAndCloseNode (elastic#33333) HLRC: ML Flush job (elastic#33187) HLRC: Adding ML Job stats (elastic#33183) LLREST: Drop deprecated methods (elastic#33223) Mute testSyncerOnClosingShard [DOCS] Moves machine learning APIs to docs folder (elastic#31118) Mute test watcher usage stats output ...
I don't see anything wrong with how the task is being set up.
I suspect there's a race condition with Gradle's lazy task configuration as we have seen before,
but instead spending all the time tracking it down, it makes more sense to move this to an integration test instead.
Closes #33201