Skip to content

Commit 9cde3e2

Browse files
committed
Merge PR ceph#64191 into main
* refs/pull/64191/head: script: remove obsolete script .github: add workflow for redmine upkeep script: add redmine-upkeep script Reviewed-by: Ernesto Puerta <[email protected]>
2 parents 99def68 + 2b9c009 commit 9cde3e2

File tree

5 files changed

+925
-789
lines changed

5 files changed

+925
-789
lines changed
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
---
2+
name: Redmine Upkeep
3+
on:
4+
# To manually trigger this: https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#workflow_dispatch
5+
# View past runs and output: https://github.com/ceph/ceph/actions/workflows/create-backport-trackers.yml
6+
workflow_dispatch:
7+
inputs:
8+
issue:
9+
description: 'issue to update'
10+
type: string
11+
default: ''
12+
limit:
13+
description: '--limit: limit issue traversal'
14+
default: 50
15+
type: int
16+
debug:
17+
description: '--debug: Show debug-level messages'
18+
default: false
19+
type: boolean
20+
schedule:
21+
- cron: '*/30 * * * *'
22+
# TODO enable/setup after upkeep has caught up
23+
# push:
24+
# tags:
25+
# - 'v*'
26+
# for testing
27+
push:
28+
branches:
29+
- 'feature/redmine-upkeep'
30+
concurrency:
31+
group: redmine-upkeep-workflow-concurrency-group
32+
cancel-in-progress: false
33+
jobs:
34+
redmine-upkeep:
35+
runs-on: ubuntu-latest
36+
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/feature/redmine-upkeep'
37+
steps:
38+
- name: checkout main
39+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
40+
with:
41+
path: ceph
42+
fetch-depth: 0
43+
44+
- name: Setup Python
45+
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
46+
with:
47+
python-version: '3.9'
48+
cache: 'pip'
49+
cache-dependency-path: ceph/src/script/requirements.redmine-upkeep.txt
50+
51+
- name: install dependencies
52+
run: pip install -r ceph/src/script/requirements.redmine-upkeep.txt
53+
54+
- run: >
55+
python3 ceph/src/script/redmine-upkeep.py
56+
--github-action
57+
--git-dir=./ceph/
58+
${{ github.event_name == 'workflow_dispatch' && (inputs.debug && '--debug' || '') || '' }}
59+
${{ github.event_name == 'workflow_dispatch' && format('--limit={}', inputs.limit) || '' }}
60+
env:
61+
REDMINE_API_KEY: ${{ secrets.REDMINE_API_KEY_BACKPORT_BOT }}

doc/dev/release-checklists.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ Make sure X (and, ideally, X+1) is defined:
4141
Scripts
4242
~~~~~~~
4343

44-
- [x] src/script/backport-resolve-issue (`releases()`, `ver_to_release()`)
4544
- [x] src/script/backport-create-issue (`releases()`)
4645
- [x] src/script/ceph-release-notes (up to X)
4746

0 commit comments

Comments
 (0)