You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by to...@apache.org on 2022/08/11 20:21:52 UTC
[lucene-jira-archive] branch main updated: add test step to the instruction
This is an automated email from the ASF dual-hosted git repository.
tomoko pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/lucene-jira-archive.git
The following commit(s) were added to refs/heads/main by this push:
new c9438552 add test step to the instruction
c9438552 is described below
commit c9438552af5f91e2acc552552212d7197710dafb
Author: Tomoko Uchida <to...@gmail.com>
AuthorDate: Fri Aug 12 05:21:43 2022 +0900
add test step to the instruction
---
migration/instructions-for-infra-team.md | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
diff --git a/migration/instructions-for-infra-team.md b/migration/instructions-for-infra-team.md
index eb5c60e5..6feb8974 100644
--- a/migration/instructions-for-infra-team.md
+++ b/migration/instructions-for-infra-team.md
@@ -57,7 +57,30 @@ six==1.16.0
urllib3==1.26.9
```
+## Test the import script
+
+To make sure everything is correctly set up, you can import one issue for a trial. This command imports only LUCENE-1 to GitHub `apache/lucene` repo.
+
+```
+(.venv) migration $ python src/import_github_issues.py --min 1
+```
+
+If the command is successfully done, you'll see an issue id mapping file `mapping-data/issue-map.csv`. This will look like this.
+
+```
+(.venv) migration $ cat mappings-data/issue-map.csv
+JiraKey,GitHubUrl,GitHubNumber
+LUCENE-1,https://github.com/apache/lucene/issues/1080,1080
+```
+
+### Clean up the test data
+
+Once the test is done, please delete `mapping-data/issue-map.csv` file and the imported issue (only admin accounts can delete an issue) before the actual migration.
+
## Run the import script
+
+Please specify the `min` option to 1 and `max` option to the maximum number of the Lucene Jira issue, that will be known by then.
+
```
(.venv) migration $ nohup python src/import_github_issues.py --min 1 --max <will be known> &
# would take 24 hours