Commit ccf4e1f6 authored by Emanuele Aina's avatar Emanuele Aina

arcrc: Stub data to avoid crash on startup

On a fresh checkout, `docker-compose up` fails with:

    Starting QA Report App
    Traceback (most recent call last):
      File "./webhook.py", line 350, in <module>
        main()
      File "./webhook.py", line 334, in main
        connect_to_phab(config.get('arcrc'))
      File "/app/taskmanager.py", line 50, in connect_to_phab
        phabricator.ARCRC.update(json.load(f))
      File "/usr/lib/python3.7/json/__init__.py", line 296, in load
        parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
      File "/usr/lib/python3.7/json/__init__.py", line 348, in loads
        return _default_decoder.decode(s)
      File "/usr/lib/python3.7/json/decoder.py", line 337, in decode
        obj, end = self.raw_decode(s, idx=_w(s, 0).end())
      File "/usr/lib/python3.7/json/decoder.py", line 355, in raw_decode
        raise JSONDecodeError("Expecting value", s, err.value) from None
    json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

By making the default `arcrc` valid enough the service now starts up
just fine and it simply disables the Phabricator connection:

    Phab API connection failed: ERR-INVALID-AUTH: API token "replace-me-with-an-actual-token!" has the wrong format. API tokens should be 32 characters long and begin with one of these prefixes: api, cli, clr.
Signed-off-by: Emanuele Aina's avatarEmanuele Aina <emanuele.aina@collabora.com>
parent c6e7f8fd
Pipeline #93642 passed with stage
in 1 minute and 40 seconds
#
# Add in this file the arcrc configuration to
# access the Phabricator API.
#
{
"hosts": {
"https://phabricator.apertis.org/api/": {
"token": "replace-me-with-an-actual-token!"
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment