Dynamic README shield behavior and Package Author alerting #1989
-
I leverage the Swift Package Index README shields for my packages. These shields "show always-up-to-date compatibility status for your package." The problem is that SPI can fail, either due to some unforeseen bug in the package or it's due to SPI's CI workflow, and in the meantime SPI has removed a supported platform from my README. No build system can be 100% accurate, any CI/CD workflow is prone to flakiness. I've seen SPI fail on my packages very infrequently by error, but it has happened, and this is unavoidable. Is there any way to receive alerting from SPI when one of my packages fails to build, or specifically when the versions/platforms lose compatibility, and there is nothing obvious reflected in the code (eg. Without any alerting or monitoring for package authors, the README on my packages could potentially update and reflect an inaccurate picture of my package, for one reason or another, and I'll be blissfully unaware until/unless I happen to be monitoring SPI or my README on my own like a hawk. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
This has come up a few times and it's not something we're planning on working on right in the short term. The best way to be notified of compatibility failures as a package author is to set up a few GH Action jobs on the package's repository. You'll get immediate notification of any issues. It's probably not what you want to hear, but it's the best solution for the foreseeable future. If you wanted to set up monitoring of the badge to know if/when we get it wrong, then monitoring this endpoint is your best bet:
A combination of those two would be the only way to do this right now. Also, please let us know when we get the build results wrong as we'd like to investigate those failures. |
Beta Was this translation helpful? Give feedback.
This has come up a few times and it's not something we're planning on working on right in the short term. The best way to be notified of compatibility failures as a package author is to set up a few GH Action jobs on the package's repository. You'll get immediate notification of any issues.
It's probably not what you want to hear, but it's the best solution for the foreseeable future.
If you wanted to set up monitoring of the badge to know if/when we get it wrong, then monitoring this endpoint is your best bet: