summaryrefslogtreecommitdiffstats
path: root/src/script (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #28264 from rhcs-dashboard/mypy-config-to-fileSebastian Wagner2019-06-181-13/+4
|\ | | | | | | | | | | src/script: extract mypy config to mypy.ini Reviewed-by: Ernesto Puerta <epuertat@redhat.com> Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
| * src/script: extract mypy config to mypy.inialfonsomthd2019-05-281-13/+4
| | | | | | | | | | | | Now the default config can be read by other scripts/tools. Signed-off-by: Alfonso Martínez <almartin@redhat.com>
* | script/ceph-backport.sh: Add prepare functionTiago Melo2019-06-121-5/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a new flag, --prepare, that when used will fetch all necessary info and cherrypick all original commits automatically. It will also prevent the main code to be executed. After running with --prepare, and if there were no conflicts, you can simply remove the flag from the command and run the script again. This time it will run the main code and create the PR and update the backport issue. p.e.: ceph-backport.sh 19206 jewel --prepare ceph-backport.sh 19206 jewel Signed-off-by: Tiago Melo <tmelo@suse.com>
* | Merge pull request #28225 from sebastian-philipp/script-run-mypy-sort-groupsSebastian Wagner2019-05-291-3/+75
|\ \ | |/ |/| | | | | | | script/run_mypy: Sort groups Reviewed-by: Alfonso Martínez <almartin@redhat.com> Reviewed-by: Patrick Nawracay <pnawracay@suse.com>
| * script/run_mypy: Sort groupsSebastian Wagner2019-05-281-3/+75
| | | | | | | | | | | | Workaround for https://github.com/python/mypy/issues/2144 Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
* | scripts/kubejacker: Fix mgr_plugins target for centosSebastian Wagner2019-05-131-4/+2
|/ | | | | | Also use the latest master as default FROM Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
* doc: improve ceph-backport.sh comment blockNathan Cutler2019-05-101-18/+39
| | | | Signed-off-by: Nathan Cutler <ncutler@suse.com>
* Merge pull request #27887 from smithfarm/wip-bci-len255plusNathan Cutler2019-05-031-1/+1
|\ | | | | | | | | | | | | script/backport-create-issue: handle long Redmine issue names Reviewed-by: Casey Bodley <cbodley@redhat.com> Reviewed-by: Kefu Chai <kchai@redhat.com> Reviewed-by: Abhishek Lekshmanan <abhishek@suse.com>
| * script/backport-create-issue: handle long Redmine issue namesNathan Cutler2019-04-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | Redmine issue names have a maximum length of 255 characters. When we prepend, e.g., "nautilus: " to a very long issue name, we can end up with a string that is over 255 characters long. Such a string will be refused by Redmine: ValidationError: Subject is too long (maximum is 255 characters) This patch avoids such an eventuality by truncating the post-prepend string to 255 characters. Signed-off-by: Nathan Cutler <ncutler@suse.com>
* | Merge pull request #21729 from badone/wip-add-ceph_dump_log.pyJosh Durgin2019-05-011-0/+92
|\ \ | |/ |/| | | | | scripts: ceph_dump_log.py Reviewed-by: Josh Durgin <jdurgin@redhat.com>
| * scripts: ceph_dump_log.py (initial commit)Brad Hubbard2019-04-121-0/+92
| | | | | | | | Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
* | script: Obtain milestones via github APILenz Grimmer2019-04-241-24/+7
| | | | | | | | | | | | | | Replace the hard-coded list of milestones with an API request that obtains this data from github directly. Signed-off-by: Lenz Grimmer <lgrimmer@suse.com>
* | Merge PR #27281 into masterPatrick Donnelly2019-04-081-2/+2
|\ \ | | | | | | | | | | | | | | | | | | | | | * refs/pull/27281/head: script/ceph-release-notes: alternate merge commit format Reviewed-by: Patrick Donnelly <pdonnell@redhat.com> Reviewed-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
| * | script/ceph-release-notes: alternate merge commit formatNathan Cutler2019-03-301-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When PRs are merged via GitHub web GUI, the merge commit looks like this: Merge pull request #27161 from cbodley/wip-qa-rgw-nautilus however, nowadays PRs are also getting merged via the "ptl-tool.py" CLI tool, which generates merge commits that look like this: Merge PR #27139 into nautilus This commit adapts the regex so it matches both. Signed-off-by: Nathan Cutler <ncutler@suse.com>
* | | src/script/kubejacker: Fix and simplifySebastian Wagner2019-04-012-60/+38
|/ / | | | | | | | | | | | | | | | | | | | | | | Unfortunately, kubejacker script is not widely used. In the meantime, simplify it to my needs, as I don't need to push new binaries right now. Also: updated to new `ceph/ceph` base image Fixes: http://tracker.ceph.com/issues/39065 Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
* | script/ceph-backport.sh: allow user to specify remote repoKefu Chai2019-03-281-2/+10
| | | | | | | | | | | | | | | | | | before this change, the script always push to "origin", in my case, "origin" points to "ceph/ceph", while we need to create the branch in private repo. and the name of private repo might vary. so would be great if we can customize this setting. Signed-off-by: Kefu Chai <kchai@redhat.com>
* | script/ceph-backport.sh: fix sanity test of issue numberKefu Chai2019-03-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | * no need for checking negative numbers * use regex for matching the number instead of using bash's pattern matching, otherwise i have ./ceph-backport.sh: line 79: syntax error in conditional expression: unexpected token `(' the pattern matching works fine if i use it in command line, but it fails to work in shell script. Signed-off-by: Kefu Chai <kchai@redhat.com>
* | scrips/run_mypy: add .gitignoreSebastian Wagner2019-03-261-8/+11
| | | | | | | | | | Co-Authored-by: Patrick Nawracay <pnawracay@suse.com> Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
* | script: enable nautilus in ceph-release-notesNathan Cutler2019-03-151-1/+1
| | | | | | | | Signed-off-by: Nathan Cutler <ncutler@suse.com>
* | script: enable nautilus in ceph-backport.shNathan Cutler2019-03-151-1/+4
| | | | | | | | Signed-off-by: Nathan Cutler <ncutler@suse.com>
* | script: enable nautilus in backport-create-issueNathan Cutler2019-03-151-1/+1
| | | | | | | | Signed-off-by: Nathan Cutler <ncutler@suse.com>
* | src/script: add run_mypy to run static type checking on Python codeSebastian Wagner2019-03-041-0/+37
| | | | | | | | Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
* | script/ptl-tool: allow invocation within a subdirectorySage Weil2019-02-161-3/+12
| | | | | | | | | | | | Make ptl-tool.py work from a subdirectory inside the repo (e.g., build/). Signed-off-by: Sage Weil <sage@redhat.com>
* | cmake: further removal/cleanup of subman configurationAlfredo Deza2019-02-111-8/+0
| | | | | | | | Signed-off-by: Alfredo Deza <adeza@redhat.com>
* | Merge PR #25020 into masterPatrick Donnelly2018-11-271-1/+1
|\ \ | | | | | | | | | | | | | | | | | | * refs/pull/25020/head: script/ceph-backport.sh: adjust to change in github API Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
| * | script/ceph-backport.sh: adjust to change in github APINathan Cutler2018-11-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This curl command was working fine before, but recently it started throwing the following error: + curl --silent --data-binary '{"milestone":"$milestone_number","assignee":"smithfarm","labels":["bug fix","core"]}' 'https://api.github.com/repos/ceph/ceph/issues/25018?access_token=8ecba7355a11fab00365e44fece350bf01388553' { "message": "Invalid request.\n\nFor 'properties/milestone', \"$milestone_number\" is not an integer or null.", "documentation_url": "https://developer.github.com/v3" } Signed-off-by: Nathan Cutler <ncutler@suse.com>
* | | credits.sh: Ignore package-lock.json and .xlf filesTiago Melo2018-11-161-2/+3
|/ / | | | | | | | | | | | | | | | | | | | | | | package-lock.json: This file is modified automatically by npm any time we update a frontend package, and can amount to large number of line changes. For example, updating around 10 packages can result in 3k lines changed in package-lock.json. .xlf: They are used for the I18M of the dashboard and are automatically created by Angular/transifex. Curretly each has around 5k lines and those lines should not be credited to the commiter. Signed-off-by: Tiago Melo <tmelo@suse.com>
* | Merge pull request #23569 from jcsp/wip-kubejackerJohn Spray2018-10-302-1/+7
|\ \ | | | | | | | | | | | | script/kubejacker: include cls libs Reviewed-by: Sage Weil <sage@redhat.com>
| * | script/kubejacker: include cls libsJohn Spray2018-08-142-1/+7
| | | | | | | | | | | | | | | | | | ...so that rbd, rgw etc will work. Signed-off-by: John Spray <john.spray@redhat.com>
* | | Merge PR #24596 into masterSage Weil2018-10-161-10/+4
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | * refs/pull/24596/head: ptl-tool.py: move githubmap update into merge commit Reviewed-by: Sage Weil <sage@redhat.com> Reviewed-by: Neha Ojha <nojha@redhat.com>
| * | | ptl-tool.py: move githubmap update into merge commitPatrick Donnelly2018-10-011-10/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Otherwise Github will reject the push because one commit is not part of the PR (and "untested"). Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
* | | | mgr/orchestrator: Fix Python 3 issuesSebastian Wagner2018-10-091-5/+3
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * `Exception.message` is deprecated. * Use relative imports. * `filter` returns an iterator in Py3 * `urlparse` moved. * `s/log.warn/log.warning` * Dockerfile: install Py3 versions. Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
* | | tools: backport-create-issue: rate-limit to avoid seeming like a spammerNathan Cutler2018-09-241-0/+4
| | | | | | | | | | | | Signed-off-by: Nathan Cutler <ncutler@suse.com>
* | | Merge PR #24207 into masterPatrick Donnelly2018-09-211-2/+3
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | * refs/pull/24207/head: script/ptl-tool.py: fix BASE_PATH Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
| * | | script/ptl-tool.py: fix BASE_PATHNeha Ojha2018-09-211-2/+3
| | | | | | | | | | | | | | | | Signed-off-by: Neha Ojha <nojha@redhat.com>
* | | | script: fix typosKefu Chai2018-09-213-4/+4
|/ / / | | | | | | | | | Signed-off-by: Kefu Chai <kchai@redhat.com>
* | | Merge pull request #24055 from sebastian-philipp/kubejacker-opensuse-mimicJohn Spray2018-09-122-8/+17
|\ \ \ | | | | | | | | | | | | | | | | script/kubejacker: Add openSUSE based images Reviewed-by: John Spray <john.spray@redhat.com>
| * | | script/kubejacker: Add openSUSE based imagesSebastian Wagner2018-09-122-8/+17
| |/ / | | | | | | | | | | | | | | | | | | | | | * Added executable bit of `kubejacker.sh`. * Reduced the number of `RUN` commands * Added zypper commands for SUSE. Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
* / / script: backport-create-issue: optionally take list of issue numbersNathan Cutler2018-09-111-5/+16
|/ / | | | | | | | | | | | | | | | | | | | | Make the script optionally take a comma-separated list of issue numbers. (Could be just one issue.) Before this patch, backport-create-issue script insisted on looping over all issues in Pending Backport status. This was cumbersome in cases when only one issue (or a couple issues) needed to be processed. Signed-off-by: Nathan Cutler <ncutler@suse.com>
* | script: add kubejacker scriptJohn Spray2018-08-063-0/+118
| | | | | | | | | | | | | | | | For those with running k8s/Rook environments, that want to inject newly built binaries from their development tree into their kubernetes environment. Signed-off-by: John Spray <john.spray@redhat.com>
* | script: new ceph_backport.sh scriptNathan Cutler2018-07-191-0/+133
| | | | | | | | | | | | | | | | | | | | Once the local backport git branch has been prepared (i.e. after cherry-picking stage), this script automates the process of opening the backport PR and updating the backport tracker issue. Parts of this script were written by Loic Dachary. Signed-off-by: Nathan Cutler <ncutler@suse.com>
* | ceph-debug-docker: install python3 cephfs/rados packagesPatrick Donnelly2018-07-141-2/+2
| | | | | | | | | | | | Fixes: http://tracker.ceph.com/issues/24870 Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
* | Merge pull request #21634 from smithfarm/wip-bci-complain-dupeNathan Cutler2018-06-291-11/+12
|\ \ | | | | | | | | | | | | scripts: backport-create-issue: complain about duplicates and support mimic Reviewed-by: Kefu Chai <kchai@redhat.com>
| * | script/backport-create-issue: fix username/password authNathan Cutler2018-05-091-1/+1
| | | | | | | | | | | | | | | Fixes: http://tracker.ceph.com/issues/24071 Signed-off-by: Nathan Cutler <ncutler@suse.com>
| * | scripts: backport-create-issue: support mimicNathan Cutler2018-05-091-1/+1
| | | | | | | | | | | | Signed-off-by: Nathan Cutler <ncutler@suse.com>
| * | scripts: backport-create-issue: eliminate "success" variableNathan Cutler2018-05-091-7/+3
| | | | | | | | | | | | | | | | | | | | | | | | The update_relations() function call does not care about the return value, so eliminate the code that was trying to make it return True or False. Instead, make update_relations() explicitly return None. Signed-off-by: Nathan Cutler <ncutler@suse.com>
| * | scripts: backport-create-issue: complain about duplicatesNathan Cutler2018-05-091-3/+8
| | | | | | | | | | | | | | | | | | | | | | | | It can happen that duplicate backport issues get created. As long as they are properly linked (via "copied" relation) to the mother bug, this patch will report them when the script is run. Signed-off-by: Nathan Cutler <ncutler@suse.com>
* | | scripts: add ceph-common-dbg to debug packagesPatrick Donnelly2018-06-251-6/+7
| | | | | | | | | | | | Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
* | | script: remove subman scriptAlfredo Deza2018-06-131-22/+0
| | | | | | | | | | | | | | | | | | Based on ceph-disk, most probably unused Signed-off-by: Alfredo Deza <adeza@redhat.com>
* | | ptl-tool: skip empty comment bodyPatrick Donnelly2018-05-151-8/+9
|/ / | | | | | | Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>