YunoHost / yunorunner

Job manager/scheduler for YunoHost apps CI tests
14 stars 6 forks source link

Unrecognized arguments error when trying to run the Server #33

Closed weex closed 1 year ago

weex commented 2 years ago

On Debian Bullseye, tried with and without the virtualenv being activated but get thesame error.

dsterry@ wgeneraldev ~/code/yunorunner (master) $ ve3/bin/python ./run.py ../CI_package_check/analyseCI.sh --dont-monitor-git --no-monthly-jobs
usage: run.py [-h] [-c CONFIG]
run.py: error: unrecognized arguments: ../CI_package_check/analyseCI.sh --dont-monitor-git --no-monthly-jobs
dsterry@ wgeneraldev ~/code/yunorunner (master) $ . ve3/bin/activate
(ve3) dsterry@ wgeneraldev ~/code/yunorunner (master) $ python ./run.py ../CI_package_check/analyseCI.sh --dont-monitor-git --no-monthly-jobs
usage: run.py [-h] [-c CONFIG]
run.py: error: unrecognized arguments: ../CI_package_check/analyseCI.sh --dont-monitor-git --no-monthly-jobs
tituspijean commented 2 years ago

It looks like the run.py does not look for these --flags any more. Try creating a config.py file in the same directory with these lines, adapted to you liking:

BASE_URL = "https://YOUR.DOMAIN.TLD/PATH"
PORT = 4242
DEBUG = False
PATH_TO_ANALYZER = "/home/CI_package_check/analyseCI.sh"
MONITOR_APPS_LIST = False
MONITOR_GIT = False
MONITOR_ONLY_GOOD_QUALITY_APPS = False
MONTHLY_JOBS = False
WORKER_COUNT = 1

And anyways, the flags you were trying to setup are already set to False now. ;)

weex commented 2 years ago

Nice. I'd love to automate builds based on Ecko/Acropolis mains and setting up a yunorunner would help greatly. Will close once I've tested this.

alexAubin commented 1 year ago

Closing because 1 year old and original problem is answered by titus comment