Project

General

Profile

Actions

Task #3092

closed

Create an automatic list of LibO dailies somewhere

Added by Beluga Beluga about 4 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Normal
Category:
Webserver
Target version:
-
Start date:
Due date:
% Done:

0%

Tags:

Description

Attached is a PHP script, which snoops inside https://dev-builds.libreoffice.org/daily/master/ and creates a simple html file listing the most recent dailies. This will help QA & design contributors in discovering the latest and greatest.

I propose to put this somewhere on our infra (I'm out of ideas on where exactly) and create a cron job to run it at hours 00, 08 and 16.

I thought generating a static file by cron would be best as the info does not need to be real-time and I would not want to cause any pointless traffic.


Files

libomaster.zip (2.58 KB) libomaster.zip PHP script and example html output Beluga Beluga, 2020-02-10 13:25
Actions #1

Updated by Guilhem Moulin about 4 years ago

  • Assignee set to Guilhem Moulin

Attached is a PHP script, which snoops inside https://dev-builds.libreoffice.org/daily/master/ .

The HTML index pages are auto-generated by the HTTPd and are not meant to be parsable. Many infra calls ago we discussed providing sidecar JSON index files (also auto-generated, but parsable this time), but seems there was not enough interest. Given it makes most sense to serve libo_master_daily_builds.html on the dev-builds box itself, one could simply do a FS traversal to discover recent builds. Compared to hammering the HTTPd with requests and scrapping the HTML, it'll be more robust and much more efficient.

Another thing is that the PHP CLI is (intentionally) not part of the baseline, unlike say, POSIX shell, bash, perl, python3 (and still python2). The dev-build box in particular doesn't have PHP installed. Seems really overkill to install it (along with php-curl) just for a 150 lines script :-P I can provide a drop-in using GNU findutils and bash.

Actions #2

Updated by Beluga Beluga about 4 years ago

Yeah, this was written from the perspective of someone without file system access, so I guess it will indeed be rather trivial for you to reimplement as a shell script :)

I just wanted this done as there is a pressing need to have a clear listing, not only for onboarding new contributors, but for helping existing ones as well.

Actions #3

Updated by Guilhem Moulin about 4 years ago

  • Subject changed from Copy my PHP script for creating a list of LibO dailies somewhere and create a cron job to Create an automatic list of LibO dailies somewhere
  • Status changed from New to Feedback

How about https://dev-builds.libreoffice.org/daily/master/current.html ? (Took the liberty to show the mtime of the most recent build found.)

Actions #4

Updated by Beluga Beluga about 4 years ago

  • Status changed from Feedback to Closed

That looks wonderful. Thanks a lot!

Actions

Also available in: Atom PDF