tysonjh commented on pull request #12947: URL: https://github.com/apache/beam/pull/12947#issuecomment-700344217
> Makes sense. How did you track it down, out of curiosity? Browsing https://ci-beam.apache.org/job/beam_Release_NightlySnapshot/935/ and thereabouts didn't yield such a clear result while https://ci-beam.apache.org/job/beam_PostRelease_NightlySnapshot/ is healthy (I don't know what exactly these jobs actually do in detail, and particularly the latter name makes no sense to me) I tracked it down by throwing a debugger up on intellij and walking through the build.gradle file until I found the exception location in the Maven plugin (org/gradle/api/publish/maven/internal/publisher/AbstractMavenPublisher.java:75) where the Array OOB exception occurred. Then I put a break point in the build.gradle file (neat!) and eventually traced it to the snapshot metadata missing, opened up the maven-metadata.xml file and saw it was missing snapshot 'versions'. From there I compared it with the published metadata, got confused for a while, then found the user guide (https://docs.gradle.org/current/userguide/userguide.pdf) that talks about changes with the maven publish plugin. Eventually I found that there were some breaking changes mentioned in the guide, saw the Beam commit history that correlated with the breakage, and *POW*. After that I tried a few things, using the user guide examples with gratuitous searching of the word 'snapshot', and ended up here. There is also some information in the online user guide about components (e.g. the 'from components.java' bit) here: https://docs.gradle.org/current/userguide/publishing_customization.html. Regarding the jobs -- Those are two different jobs. The 'PostRelease_NightlySnapshot' runs validation tests against the snapshot that was *released by* the 'Release_NightlySnapshot' artifacts. So the 'PostRelease_NightlySnapshot' job has been running against an old snapshot from Sept. 9th (the last successful snapshot published). For example see the lastupdated date in the examples metadata (20200928070145): https://repository.apache.org/content/repositories/snapshots/org/apache/beam/beam-sdks-java-maven-archetypes-examples/2.26.0-SNAPSHOT/maven-metadata.xml ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
