Automation to update repositories.yaml
of probe-scraper
with the latest metrics_index.py
list.
Fetches and parses the metrics_index.py
from gecko-dev
, extracts the relevant list of YAML files
and creates a new Pull Request against probe-scraper
if it contains any changes.
Name | Description |
---|---|
DEBUG |
If set enables debug logging |
DRY_RUN |
If set to True will not create a PR |
GITHUB_REPOSITORY_OWNER |
The owner of the probe-scraper repository |
AUTHOR_NAME |
The name to use for the commit |
AUTHOR_EMAIL |
The email to use for the commit |
$ docker build -t fog-update .
$ docker run -it --rm fog-update
$ python3 -m venv env
$ pip install -r requirements.txt
$ pip install pytest
You can run the tests:
pytest
Manual runs of the updater requires a GITHUB_TOKEN
.
Go to https://github.com/settings/tokens and create a new token (no additional scopes necessary).
Set it in your shell:
export GITHUB_TOKEN=<the generated token>
This repository is governed by Mozilla's code of conduct and etiquette guidelines. For more details, please read the Mozilla Community Participation Guidelines.
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/
See LICENSE.