Skip to content
Snippets Groups Projects

cli.add_forge_now: Allow queue name prefix override

Closed Antoine R. Dumont requested to merge add-forge-now-cli-evolution into master

This will allow to schedule add-forge-now requests to different queues. For example [1] will send git tasks to the add_forge_now_slow:swh.loader.git... queue.

That queue being configured to be consumed by worker with a different, e.g. a slow, workload than the standard one.

[1]

swh ... add-forge-now ... \
  --preset $ENVIRONMENT \
  schedule-first-visits \
    --type-name git \
    --prefix-queue add_forge_now_slow

Refs. swh/infra/ci-cd/swh-charts!59 (merged)

Edited by Antoine R. Dumont

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • For more proper English, this should be queue-prefix (or even more precisely queue-name-prefix), rather than prefix-queue.

    There was a typo in the format string for the queue name (too much puppet?)

  • added 1 commit

    • 61b011e1 - cli.add_forge_now: Allow prefix queue name override

    Compare with previous version

  • the typo in the format string is still there

  • Jenkins job DSCH/gitlab-builds #48 succeeded .
    See Console Output and Coverage Report for more details.

  • added 1 commit

    • 1c38463a - cli.add_forge_now: Allow queue name prefix override

    Compare with previous version

  • Jenkins job DSCH/gitlab-builds #49 succeeded .
    See Console Output and Coverage Report for more details.

  • Antoine R. Dumont resolved all threads

    resolved all threads

  • 93 93
    94 94 assert scheduled_tasks == expected_tasks
    95 95
    96 # Ensure the scheduling happens on the right queue
    97 if getattr(send_task, "call_args"):
    98 queue_name = send_task.call_args[1]["queue"]
    99 queue_name_prefix, queue_name_suffix = queue_name.split(":")
    100
    101 if len(subcmd_args) > 1 and subcmd_args[0] == "--queue-name-prefix":
    102 expected_queue_name_prefix = subcmd_args[1]
  • 93 93
    94 94 assert scheduled_tasks == expected_tasks
    95 95
    96 # Ensure the scheduling happens on the right queue
    97 if getattr(send_task, "call_args"):
  • added 1 commit

    • cf2ca93d - cli.add_forge_now: Allow queue name prefix override

    Compare with previous version

  • Jenkins job DSCH/gitlab-builds #50 succeeded .
    See Console Output and Coverage Report for more details.

  • Nicolas Dandrimont approved this merge request

    approved this merge request

  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Please register or sign in to reply
    Loading