Skip to content

Latest commit

 

History

History
 
 

fog-updater

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

fog-update-bot

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.

Environment variables

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

Running with Docker

$ docker build -t fog-update .
$ docker run -it --rm fog-update

Development

$ python3 -m venv env
$ pip install -r requirements.txt
$ pip install pytest

Testing

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>

Code of Conduct

This repository is governed by Mozilla's code of conduct and etiquette guidelines. For more details, please read the Mozilla Community Participation Guidelines.

See CODE_OF_CONDUCT.md

License

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.