Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • S sysadm-environment
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 198
    • Issues 198
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Model experiments
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Platform
  • Infrastructure
  • sysadm-environment
  • Issues
  • #4686

Add forge now - process gitea instance https://git.deuxfleurs.fr

As per the query [1].

staging:

  • Register listing [2]
  • Trigger some origins listed [2]
  • Checks [3]

production:

  • https://forge.softwareheritage.org/D8990 (in review): swh.lister > v4.3 to deploy
  • Register listing [4]
  • Trigger some origins listed [5]
  • Checks [5]

[1] https://archive.softwareheritage.org/admin/add-forge/request/21/

[2]

swhscheduler@scheduler0:~$ swh scheduler --url http://scheduler0.internal.staging.swh.network:5008/ \
>   add-forge-now --preset staging \
>     register-lister gitea \
>       url=https://git.deuxfleurs.fr/api/v1/
Created 1 tasks

Task 33420189
  Next run: today (2023-01-02T14:16:24.204442+00:00)
  Interval: 90 days, 0:00:00
  Type: list-gitea-full
  Policy: oneshot
  Args:
  Keyword args:
    enable_origins: False
    max_origins_per_page: 10
    max_pages: 3
    url: 'https://git.deuxfleurs.fr/api/v1/'

swhscheduler@scheduler0:~$ swh scheduler --url http://scheduler0.internal.staging.swh.network:5008/ \
>   add-forge-now --preset staging \
>   schedule-first-visits \
>     --type-name git \
>     --lister-name gitea \
>     --lister-instance-name git.deuxfleurs.fr
100 slots available in celery queue
20 visits to send to celery

[3]

2023-01-02 15:20:09 swh-scheduler@db1:5432 λ select last_visit_status, count(ovs.url)
from origin_visit_stats ovs
join listed_origins lo USING(url, visit_type)
where lister_id = (select id from listers
                   where name='gitea' and
                   instance_name='git.deuxfleurs.fr')
and visit_type='git'
group by last_visit_status;
+-------------------+-------+
| last_visit_status | count |
+-------------------+-------+
| successful        |     7 |
| (null)            |    13 |
+-------------------+-------+
(2 rows)

Time: 1858.477 ms (00:01.858)

[4]

swhscheduler@saatchi:~$ SCHEDULER_RPC=http://saatchi.internal.softwareheritage.org:5008/
swhscheduler@saatchi:~$ swh scheduler --url $SCHEDULER_RPC \
>   add-forge-now \
>     register-lister gitea \
>       url=https://git.deuxfleurs.fr/api/v1/
Created 1 tasks

Task 415264716
  Next run: today (2023-01-03T10:49:27.840529+00:00)
  Interval: 90 days, 0:00:00
  Type: list-gitea-full
  Policy: recurring
  Args:
  Keyword args:
    url: 'https://git.deuxfleurs.fr/api/v1/'

Created 1 tasks

Task 415264717
  Next run: tomorrow (2023-01-04T10:49:27.922083+00:00)
  Interval: 1 day, 0:00:00
  Type: list-gitea-incremental
  Policy: recurring
  Args:
  Keyword args:
    url: 'https://git.deuxfleurs.fr/api/v1/'

[5]

swhscheduler@saatchi:~$ swh scheduler --url $SCHEDULER_RPC \
>   add-forge-now \
>   schedule-first-visits \
>     --type-name git \
>     --lister-name gitea \
>     --lister-instance-name git.deuxfleurs.fr

10000 slots available in celery queue
91 visits to send to celery

[6]

2023-01-03 11:53:41 softwareheritage-scheduler@belvedere:5432 λ select last_visit_status, count(ovs.url)
from origin_visit_stats ovs
join listed_origins lo USING(url, visit_type)
where lister_id = (select id from listers
                   where name='gitea' and
                   instance_name='git.deuxfleurs.fr')
and visit_type='git'
group by last_visit_status;
+-------------------+-------+
| last_visit_status | count |
+-------------------+-------+
| successful        |    91 |
+-------------------+-------+
(1 row)

Time: 191481.271 ms (03:11.481)
Edited Jan 03, 2023 by Antoine R. Dumont
Assignee
Assign to
Time tracking