This repository has been archived by the owner on Jul 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fetch-and-launch-reproducer,validate-inputs: add wrappers retriggering
Add wrapper for retriggering builds and tests. Add script to validate inputs.
- Loading branch information
1 parent
505e051
commit c3fc3cf
Showing
2 changed files
with
54 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Environment variables needed: | ||
# - TUXSUITE_TOKEN - the token to submit tuxsuite reproducer | ||
|
||
TESTRUN=$1 | ||
REPRODUCER=$2 | ||
pip install -r requirements.txt | ||
inputs="--testrun $TESTRUN --filename $REPRODUCER" | ||
echo $inputs | ||
python validate-inputs.py $inputs | ||
python squad-create-reproducer-from-testrun $inputs --plan | ||
tuxsuite plan $REPRODUCER |
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,43 @@ | ||
from argparse import ArgumentParser | ||
import logging | ||
from pathlib import Path | ||
|
||
|
||
logging.basicConfig(level=logging.INFO) | ||
logger = logging.getLogger(__name__) | ||
|
||
|
||
def parse_args(raw_args): | ||
parser = ArgumentParser() | ||
|
||
parser.add_argument( | ||
"--testrun", | ||
required=True, | ||
help="The ID of the TestRun.", | ||
) | ||
|
||
parser.add_argument( | ||
"--filename", | ||
required=True, | ||
help="The reproducer file.", | ||
) | ||
|
||
parser.add_argument( | ||
"--plan", | ||
required=False, | ||
action="store_true", | ||
default=False, | ||
help="Fetch a TuxPlan reproducer rather than a TuxTest of TuxBuild reproducer.", | ||
) | ||
|
||
return parser.parse_args(raw_args) | ||
|
||
|
||
def run(raw_args=None): | ||
args = parse_args(raw_args) | ||
|
||
return 0 | ||
|
||
|
||
if __name__ == "__main__": | ||
exit(run()) |