Thursday 14 March 2024

Re: Latest features in autopkgtest-cloud

Hi Florent,

A JSON API would be awesome! 

> May I suggest that you fill a bug here [1] with some details on your use-case and requirements

We haven't really scoped out exactly what we'll be doing on our side with respect to our dashboard integration quite yet, so I'm not ready to file a formal request with your team at this moment. However, once we've discussed it more internally and have a better idea of that, I'll definitely fill out a request.

Thanks!

-Mitchell Augustin
Ubuntu Partner Engineering

On Thu, Mar 14, 2024 at 11:20 AM Florent 'Skia' Jacquet <florent.jacquet@canonical.com> wrote:
Le 14/03/2024 à 16:51, Mitchell Augustin a écrit :
>  > the page is absolutely **not** dynamic
>
> Thanks for pointing that out! Interestingly enough, @dann frazier
> <mailto:dann.frazier@canonical.com> and I were just recently considering
> querying autopkgtest.ubuntu.com <http://autopkgtest.ubuntu.com> as one
> part of the update process for one of our internal dashboards, so this
> is very relevant info for us. Is it safe to assume that this means it
> will stay that way? (one query method we were considering is scraping
> the HTML as long as the format does not change frequently, as this would
> allow us to query for a single package as opposed to downloading the
> entire multiple GB database and querying that instead)
>

I guess it could be not too hard for us to implement for example a
`?json` argument for those pages. At least for the
`/packages/<name>/<release>/<arch>` page, I could see a quick way to do
so, since we already compute everything in a single data structure to
fill up the table. The `/packages/<name>` page doesn't have this
computing yet, so it's a bit harder.

May I suggest that you fill a bug here [1] with some details on your
use-case and requirements, it would probably be easier to track down
this topic rather than through a mailing list thread :-)

Thanks

[1]: https://bugs.launchpad.net/auto-package-testing/