-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #164 from trz42/add_issue_comment_id_to_metadata
add issue comment id to metadata
- Loading branch information
Showing
6 changed files
with
428 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Configuration of pytest settings for the EESSI build-and-deploy bot, | ||
# see https://github.com/EESSI/eessi-bot-software-layer | ||
# | ||
# The bot helps with requests to add software installations to the | ||
# EESSI software layer, see https://github.com/EESSI/software-layer | ||
# | ||
# author: Thomas Roeblitz (@trz42) | ||
# | ||
# license: GPLv2 | ||
# | ||
|
||
|
||
def pytest_configure(config): | ||
# register custom markers | ||
config.addinivalue_line( | ||
"markers", "repo_name(name): parametrize test function with a repo name" | ||
) | ||
config.addinivalue_line( | ||
"markers", "pr_number(num): parametrize test function with a PR number" | ||
) | ||
config.addinivalue_line( | ||
"markers", "create_raises(string): define function behaviour" | ||
) | ||
config.addinivalue_line( | ||
"markers", "create_fails(bool): let function create_issue_comment return None" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,24 @@ | ||
# simplistic config file for tests (some functions run config.read_config() | ||
# sample config file for tests (some functions run config.read_config() | ||
# which reads app.cfg by default) | ||
[job_manager] | ||
|
||
# variable 'comment' under 'submitted_job_comments' should not be changed as there are regular expression patterns matching it | ||
[submitted_job_comments] | ||
initial_comment = New job on instance `{app_name}` for architecture `{arch_name}` for repository `{repo_id}` in job dir `{symlink}` | ||
awaits_release = job id `{job_id}` awaits release by job manager | ||
|
||
[new_job_comments] | ||
awaits_lauch = job awaits launch by Slurm scheduler | ||
|
||
[running_job_comments] | ||
running_job = job `{job_id}` is running | ||
|
||
[finished_job_comments] | ||
success = :grin: SUCCESS tarball `{tarball_name}` ({tarball_size} GiB) in job dir | ||
failure = :cry: FAILURE | ||
no_slurm_out = No slurm output `{slurm_out}` in job dir | ||
slurm_out = Found slurm output `{slurm_out}` in job dir | ||
missing_modules = Slurm output lacks message "No missing modules!". | ||
no_tarball_message = Slurm output lacks message about created tarball. | ||
no_matching_tarball = No tarball matching `{tarball_pattern}` found in job dir. | ||
multiple_tarballs = Found {num_tarballs} tarballs in job dir - only 1 matching `{tarball_pattern}` expected. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[PR] | ||
repo = test_repo | ||
pr_number = 999 | ||
pr_comment_id = 77 | ||
|
Oops, something went wrong.