Commit graph

21 commits

Author SHA1 Message Date
Joey Riches
bcdd47c35d common: Parse build page json in buildserver-notification.sh
**Summary**
Make use of the new json output from the build page in order to obtain
more reliable results.

Additionally, get the tag from the package.yml stored in the latest commit
instead potentially tagging from any unstaged changes.

Lastly, take this opportunity to cleanup the script a little.
2023-10-20 19:49:47 +01:00
Reilly Brogan
1963a9ac15
common: Make notify-complete more robust
Signed-off-by: Reilly Brogan <reilly@reillybrogan.com>
2023-10-18 08:28:51 -05:00
Thomas Staudinger
3d053c29fa buildserver-notification: also use tags from pspec.xml 2023-10-08 00:23:30 +02:00
Joey Riches
066cfcc186 common: Fix notify-complete for monorepo
The script is crap but still very useful.
2023-09-23 17:00:53 +02:00
Joey Riches
389f18cb7f common: buildserver-notification: disambiguate
God this script is ballz
2023-04-27 09:59:21 +01:00
Joey Riches
cb89794a7f common: buildserver-notification: Update grep for failed build for new site 2023-04-22 13:41:17 +01:00
Joey Riches
4fdabd71b0 common: buildserver-notification: Switch to cdn index URI 2023-04-22 13:06:13 +01:00
Joey Riches
7df0cb6a20 common: buildserver-notification: update for build page 2023-04-21 00:35:59 +01:00
Joey Riches
49d3d62526 common: notify-complete: Use a portable bash shebang 2022-12-29 14:49:31 +00:00
Joey Riches
f05b826694 common: buildserver-notification: Use curl's If-Modified-Since option to save bandwidth
The buildpage size is miniscule but savings are savings.

Also increase the time to index timeout to 1m:30s due to paraview
reaching the timeout limit.
2022-08-02 14:28:01 +01:00
Joey Riches
4772e7a43e common: buildserver-notification: Add DISABLE_BUILD_NOTIFY_SUCCESS option for...
Integration within the rebuild-template-script.sh script. Where we
only want to be notified for failures and not every successful rebuild.
2022-08-01 22:11:18 +01:00
Joey Riches
41aa5fd12d common: buildserver-notifcation: Add requirements and misc fixups 2022-07-27 20:49:10 +01:00
Joey Riches
c1b25a24a3 common: buildserver-notification: Print sha value more concisely 2022-07-25 18:19:32 +01:00
Joey Riches
8bbbeabf17 common: buildserver-notification: Actually update the INDEX_SHA when it changes 2022-07-25 17:39:38 +01:00
Joey Riches
71225a8ae4 common: buildserver-notification: Some more oopsie woopies 2022-07-25 16:39:22 +01:00
Joey Riches
592e65a7c5 common: buildserver-notification: Use a variable for build server URL 2022-07-25 16:35:41 +01:00
Joey Riches
cce8a9232b common: buildserver-notification: final cleanups hopefully 2022-07-25 16:31:24 +01:00
Joey Riches
9a447a45aa common: buildserver-notification: Use a foolproof indexing check
Previously the unstable repo had to be enabled and the use of sudo
was required to check if a package got indexed into the repo.

Now we download the index directly and compare to it if the build
succeeds. Additionally, this means we can always check when a package
gets indexed.
2022-07-25 16:21:12 +01:00
Joey Riches
68144cc13c common: buildserver-notification: Handle the republish case
Previously if a package had to be republished it would get confused
by the previously failed build.

Now, we get the latest build id for the tag and check for that instead.
2022-07-25 13:46:49 +01:00
Joey Riches
41bfb3c393 common: buildserver-notification: Optionally check if the TAG has been indexed
If the unstable repo is found then this script will also check up
to a minute if the package has been successfully indexed into the repo.

Some of the shortcomings of this approach are:
- The unstable repo can be called anything but is hardcoded here
- Updating the repo requires sudo access
2022-07-25 11:29:48 +01:00
Joey Riches
43a2216a8e common: Add notify-complete to get a notification when the build has completed on the buildserver 2021-12-06 17:30:46 +00:00