Page MenuHomeSoftware Heritage
Feed Advanced Search

Mar 11 2020

lewo added a comment to D2792: Functional Package Loader.

@ardumont I squashed commits and do some cleaning and remove the WIP status.

Mar 11 2020, 3:00 PM
lewo updated the diff for D2792: Functional Package Loader.
  • package.loader: add origin argument
  • Add the functional loader
  • cli: add the functional loader in the cli tests
Mar 11 2020, 2:59 PM
lewo updated the summary of D2792: Functional Package Loader.
Mar 11 2020, 12:19 PM
lewo updated the diff for D2792: Functional Package Loader.
  • cli: add the functional loader in the cli tests
Mar 11 2020, 11:56 AM
lewo updated the diff for D2792: Functional Package Loader.
  • cli: add the functional loader in the cli tests
Mar 11 2020, 11:34 AM
lewo updated the diff for D2792: Functional Package Loader.
  • functional: order entry points
  • cli: add the functional loader in the cli tests
Mar 11 2020, 11:28 AM

Mar 10 2020

lewo added inline comments to D2792: Functional Package Loader.
Mar 10 2020, 6:52 PM
lewo updated the diff for D2792: Functional Package Loader.

I created a new diff containing the evaluation branch: see D2807 instead.

Mar 10 2020, 6:51 PM
lewo updated the task description for T1991: Implement a Guix/Nix loader.
Mar 10 2020, 6:49 PM · Package Loader
lewo created D2807: functional.loader: add a pointer to the eval revision.
Mar 10 2020, 6:48 PM
lewo updated the task description for T1991: Implement a Guix/Nix loader.
Mar 10 2020, 6:42 PM · Package Loader
lewo planned changes to D2792: Functional Package Loader.
Mar 10 2020, 6:31 PM
lewo updated the diff for D2792: Functional Package Loader.
  • package.loader: add hook_branches method
  • functional: create a branch named evaluation pointing to the evaluation commit
Mar 10 2020, 6:27 PM
lewo updated the diff for D2792: Functional Package Loader.
  • functional: use the visit fixture in the test
  • functional: add comments, licenses...
  • functional: add provider and when in metadata.extrinsic
  • functional: type _retrieve_sources
Mar 10 2020, 11:46 AM

Mar 9 2020

lewo updated the summary of D2792: Functional Package Loader.
Mar 9 2020, 5:45 PM
lewo created D2793: Use /usr/bin/env bash instead of /bin/bash.
Mar 9 2020, 5:39 PM
lewo retitled D2792: Functional Package Loader from functional package loader to wip: Functional Package Loader.
Mar 9 2020, 5:10 PM
lewo created D2792: Functional Package Loader.
Mar 9 2020, 5:07 PM
lewo added a comment to D2025: [wip] swh.lister.functionalPackages: add lister getting sources from a JSON file.

Thanks to @zimoun, https://guix.gnu.org/sources.json is now generated periodically (every hour). Each url is now a list.

Mar 9 2020, 2:35 PM · Lister

Mar 6 2020

lewo abandoned D2025: [wip] swh.lister.functionalPackages: add lister getting sources from a JSON file.

@lewo : Let me know the new diff number. :-)

Mar 6 2020, 5:40 PM · Lister

Mar 5 2020

lewo added a comment to D2025: [wip] swh.lister.functionalPackages: add lister getting sources from a JSON file.

After some discussions with the SWH team, it is actually no longer the good way to fill the archive with our sources. Instead, I'm starting to write a loader which will be in charge of reading our sources.json and fill the archive. So, I'm closing this diff and will create a new diff with a loader in the next few days;)
There are also some advantages of implementing a loader: for instance, we could query the SWH API to know which sources of a specific sources.json file have been archived!

Mar 5 2020, 4:36 PM · Lister

Mar 2 2020

lewo added a comment to D2025: [wip] swh.lister.functionalPackages: add lister getting sources from a JSON file.

> @lewo: Does the version of the format should be bumped to 2 with this string-to-array modification?

Mar 2 2020, 6:52 PM · Lister

Feb 27 2020

lewo added a comment to D2025: [wip] swh.lister.functionalPackages: add lister getting sources from a JSON file.

While looking into this with @zimoun, we realized it would be nicer if url were an array of URLs (as is the case at https://guix.gnu.org/packages.json) rather than a single URL.

without changing now the crawler, i.e., the crawler can ingest only the first elem of the array and it will be modified later.

Feb 27 2020, 10:24 PM · Lister

Jan 30 2020

lewo added a comment to D2025: [wip] swh.lister.functionalPackages: add lister getting sources from a JSON file.
> If you are going to the FOSDEM, would be nice to meet you there to talk about next steps!

It would but i'm not going.
Jan 30 2020, 8:56 PM · Lister
lewo added a comment to D2025: [wip] swh.lister.functionalPackages: add lister getting sources from a JSON file.
> If you are going to the FOSDEM, would be nice to meet you there to talk about next steps!

I'm already in Brussels and would be happy to meet!
Jan 30 2020, 8:53 PM · Lister

Jan 29 2020

lewo added a comment to D2025: [wip] swh.lister.functionalPackages: add lister getting sources from a JSON file.

A CI job is building a sources.json every day! The file is available at https://nix-community.github.io/nixpkgs-swh/sources.json ;)
This is a community CI (not hosted on main NixOS infrascture) which will allow me to iterate quickly on this file.

Jan 29 2020, 11:39 PM · Lister
lewo updated the summary of D2025: [wip] swh.lister.functionalPackages: add lister getting sources from a JSON file.
Jan 29 2020, 11:33 PM · Lister

Jan 21 2020

lewo retitled D2025: [wip] swh.lister.functionalPackages: add lister getting sources from a JSON file from [wip] swh.lister.json: Add lister getting sources from JSON file to [wip] swh.lister.functionalPackages: add lister getting sources from a JSON file.
Jan 21 2020, 7:12 PM · Lister

Jan 16 2020

lewo added inline comments to D2025: [wip] swh.lister.functionalPackages: add lister getting sources from a JSON file.
Jan 16 2020, 10:12 PM · Lister
lewo updated the diff for D2025: [wip] swh.lister.functionalPackages: add lister getting sources from a JSON file.

And fix another one :/

Jan 16 2020, 10:00 PM · Lister
lewo updated the diff for D2025: [wip] swh.lister.functionalPackages: add lister getting sources from a JSON file.

Fix the loader name in the test

Jan 16 2020, 7:33 PM · Lister

Jan 14 2020

lewo added a comment to D2025: [wip] swh.lister.functionalPackages: add lister getting sources from a JSON file.

Sorry for the delay... I will be more responsive now.

Jan 14 2020, 6:58 PM · Lister
lewo updated the diff for D2025: [wip] swh.lister.functionalPackages: add lister getting sources from a JSON file.

Rebase and change load-tar to load-archive-files

Jan 14 2020, 6:56 PM · Lister

Nov 21 2019

lewo added inline comments to D2025: [wip] swh.lister.functionalPackages: add lister getting sources from a JSON file.
Nov 21 2019, 12:16 AM · Lister
lewo updated the diff for D2025: [wip] swh.lister.functionalPackages: add lister getting sources from a JSON file.

Fix ardumont comments

Nov 21 2019, 12:12 AM · Lister

Nov 14 2019

lewo added inline comments to D2025: [wip] swh.lister.functionalPackages: add lister getting sources from a JSON file.
Nov 14 2019, 8:22 PM · Lister
lewo updated the diff for D2025: [wip] swh.lister.functionalPackages: add lister getting sources from a JSON file.
  • Move sources.json mock to correct location
Nov 14 2019, 8:19 PM · Lister

Nov 13 2019

lewo updated the diff for D2025: [wip] swh.lister.functionalPackages: add lister getting sources from a JSON file.
  • Rename JSONLister to FunctionalPackageLister
  • Fix test
  • Cleaning
Nov 13 2019, 9:43 AM · Lister

Nov 6 2019

lewo updated the diff for D2025: [wip] swh.lister.functionalPackages: add lister getting sources from a JSON file.
  • wip: switch to the new format
Nov 6 2019, 9:54 PM · Lister
lewo added a comment to D2025: [wip] swh.lister.functionalPackages: add lister getting sources from a JSON file.

LGTM, though I think we should define the git type right away. For that, we can probably reuse a format similar to that found at https://guix.gnu.org/packages.json, which looks like:

{
    "type": "git",
    "git_url": "https://github.com/pali/0xffff.git",
    "git_ref": "0.8"
}

... where git_ref can be a tag name or a commit ID.

WDYT?

Nov 6 2019, 9:52 PM · Lister

Oct 26 2019

lewo updated subscribers of D2025: [wip] swh.lister.functionalPackages: add lister getting sources from a JSON file.

I discussed with Ludo and we agreed on the fact the current packages.json file is not really suitable for the SWH usecase.
tl;dr the idea is to expose a list of sources instead of a list of packages.

Oct 26 2019, 11:55 PM · Lister
lewo added a comment to D2025: [wip] swh.lister.functionalPackages: add lister getting sources from a JSON file.

Since Ludo (@civodul) posted this WIP feature on guix-devel mailing list [1] I am trying to follow this thread and I would like to help.

Oct 26 2019, 10:12 PM · Lister

Oct 21 2019

lewo updated the diff for D2025: [wip] swh.lister.functionalPackages: add lister getting sources from a JSON file.
  • [wip] swh.lister.json: Add lister getting sources from JSON file
  • Rebased
Oct 21 2019, 10:44 AM · Lister
lewo added a comment to D2025: [wip] swh.lister.functionalPackages: add lister getting sources from a JSON file.

By the way, i entertained the idea to write a guix lister with the current api, would that help (that could demo the tests to write as well)?

Oct 21 2019, 9:38 AM · Lister

Oct 17 2019

lewo added a comment to D2025: [wip] swh.lister.functionalPackages: add lister getting sources from a JSON file.

@ardumont @douardda Regarding the lister name, I agree the JSONLister name is not appropriate. @ardumont proposed FunctionalPackageManagerLister or FunctionalPackageLister but I'm not sure they are appropriated too :)

Oct 17 2019, 9:41 AM · Lister

Oct 16 2019

lewo added a comment to D2145: package.tar: Add a generic archive loader implementation (merge with gnu's).

I think the hash and the version should be optional. I explain a bit why we can't always provide the version in D2025.

Oct 16 2019, 9:31 AM

Oct 15 2019

lewo added inline comments to D2025: [wip] swh.lister.functionalPackages: add lister getting sources from a JSON file.
Oct 15 2019, 6:26 PM · Lister

Sep 23 2019

lewo updated the summary of D2025: [wip] swh.lister.functionalPackages: add lister getting sources from a JSON file.
Sep 23 2019, 9:37 PM · Lister
lewo updated the summary of D2025: [wip] swh.lister.functionalPackages: add lister getting sources from a JSON file.
Sep 23 2019, 9:36 PM · Lister
lewo updated the summary of D2025: [wip] swh.lister.functionalPackages: add lister getting sources from a JSON file.
Sep 23 2019, 9:27 PM · Lister
lewo added a comment to D2025: [wip] swh.lister.functionalPackages: add lister getting sources from a JSON file.

jsyk, @douardda and i are working on the package loader (T1389)

Sep 23 2019, 9:25 PM · Lister
lewo updated the diff for D2025: [wip] swh.lister.functionalPackages: add lister getting sources from a JSON file.

Using integrity attribute instead of hash. The format of this attribute follows the SRI specification.

Sep 23 2019, 9:16 PM · Lister

Sep 22 2019

lewo added a comment to D2025: [wip] swh.lister.functionalPackages: add lister getting sources from a JSON file.

This is a work in progress lister and we need to work on several points:

Sep 22 2019, 9:27 PM · Lister
lewo created D2025: [wip] swh.lister.functionalPackages: add lister getting sources from a JSON file.
Sep 22 2019, 8:59 PM · Lister

Sep 5 2019

lewo added a comment to T1985: swh-docker-dev: `load-tar` tasks are never executed.

Hm, i don't know how to close this issue, but it should be closed now.
Thx.

Sep 5 2019, 9:22 PM · Docker environment
lewo updated subscribers of T1985: swh-docker-dev: `load-tar` tasks are never executed.

Thx to this change (provided by @olasd) in the swh-docker-dev repository, tasks are exectued:

diff --git a/conf/loader.yml b/conf/loader.yml
index 4a4fb54..0cc07e6 100644
--- a/conf/loader.yml
+++ b/conf/loader.yml
@@ -5,6 +5,7 @@ storage:
 celery:
   task_broker: amqp://guest:guest@amqp//
   task_modules:
+    - swh.loader.package.tasks
     - swh.loader.debian.tasks
     - swh.loader.dir.tasks
     - swh.loader.git.tasks
@@ -16,6 +17,7 @@ celery:
     - swh.deposit.loader.tasks
Sep 5 2019, 9:20 PM · Docker environment

Sep 4 2019

lewo created T1985: swh-docker-dev: `load-tar` tasks are never executed in the S1 Public space.
Sep 4 2019, 8:21 PM · Docker environment

Sep 1 2019

lewo added a comment to T1979: Remarks on the tutorial "Run a new lister" .

Ok, thx a lot for your answers!

Sep 1 2019, 9:22 PM · Documentation, Lister
lewo updated the task description for T1979: Remarks on the tutorial "Run a new lister" .
Sep 1 2019, 10:15 AM · Documentation, Lister
lewo created T1979: Remarks on the tutorial "Run a new lister" in the S1 Public space.
Sep 1 2019, 10:13 AM · Documentation, Lister