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

Added a task to check for unpublished artifacts #1453

Merged
merged 4 commits into from
Mar 8, 2024
Merged

Conversation

lefou
Copy link
Member

@lefou lefou commented Mar 7, 2024

Staged Publishing via Sonatype Nexus fail occasionally. Sometime, the staging process was complete, sometimes not. Since subsequence publish-jobs fail for previously properly published artifacts, it's not easy to tell, which CI publish jobs in failure state need a restart.

Therefore you can use theis new command to check for already published modules.

Example: Some modules where published, some not

In that case, you need to find that shard, which published these modules. In the CI log, go to the last lines, where all published modules are printed. If you found the correct shard, restart it.

> mill checkPublishedArtifacts --artifacts __.publishSelfDependency --version 3.0.0-M1-3-47512ee8 --ttl "1 sec"
...
1 targets failed
checkPublishedArtifacts Missing 46 of 276 published artifacts: 
- com.lihaoyi:ammonite-compiler-interface_3.3.0:3.0.0-M1-3-47512ee8
- com.lihaoyi:ammonite-compiler-interface_3.3.1:3.0.0-M1-3-47512ee8
- com.lihaoyi:ammonite-compiler-interface_3.3.2:3.0.0-M1-3-47512ee8
- com.lihaoyi:ammonite-compiler-interface_3.3.3:3.0.0-M1-3-47512ee8
- com.lihaoyi:ammonite-compiler_3.2.2:3.0.0-M1-3-47512ee8
- com.lihaoyi:ammonite-compiler_3.3.0:3.0.0-M1-3-47512ee8
- com.lihaoyi:ammonite-compiler_3.3.1:3.0.0-M1-3-47512ee8
...
- com.lihaoyi:ammonite-sshd_3.3.2:3.0.0-M1-3-47512ee8
- com.lihaoyi:ammonite-sshd_3.3.3:3.0.0-M1-3-47512ee8
- com.lihaoyi:ammonite-terminal_3:3.0.0-M1-3-47512ee8

Example: All modules published successfully

> mill show checkPublishedArtifacts --artifacts __.publishSelfDependency --version 3.0.0-M1
[1/1] show 
[1/1] show > [2485/2485] checkPublishedArtifacts 
"All artifacts published for version 3.0.0-M1"

Example: All modules not published

> mill show checkPublishedArtifacts --artifacts __.publishSelfDependency --version 3.0.0-M2
[1/1] show 
[1/1] show > [2485/2485] checkPublishedArtifacts 
1 targets failed
show 1 targets failed
checkPublishedArtifacts All artifacts missing for version 3.0.0-M2

@lefou lefou marked this pull request as ready for review March 7, 2024 23:18
@lefou lefou merged commit 8a463ab into main Mar 8, 2024
25 checks passed
@lefou lefou deleted the checkPublishedArtifacts branch March 8, 2024 08:15
@lefou lefou added this to the 3.0.0-M2 milestone Mar 8, 2024
lefou added a commit that referenced this pull request Mar 8, 2024
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.

1 participant