Hello,
We are migrating our CI from CircleCI to Github Actions. I've updated my bors.toml
file to something like:
status = [
"Test (ubuntu-latest)",
"Test (macos-latest)",
]
required_approvals = 0
timeout_sec = 900
delete_merged_branches = true
Only the status
item has been updated to match Gtihub Actions status.
But since then, Bors creates a stating.tmp
branch, pushes commits on it, which triggers Github Actions, but then Bors fails with this message (from the dashboard):
{{:badmatch,
{:error, :merge_branch,
%Tesla.Env{
__client__: %Tesla.Client{
adapter: {Tesla.Adapter.Httpc, :call,
[
[
ssl: [
verify: :verify_peer,
verify_fun: {&:ssl_verify_hostname.verify_fun/3,
[check_hostname: 'api.github.com']},
cacertfile: '/app/_build/prod/lib/certifi/priv/cacerts.pem'
]
]
]},
fun: nil,
post: [],
pre: [
{Tesla.Middleware.BaseUrl, :call,
["https://api.github.com"]},
{Tesla.Middleware.Headers, :call,
[
[
{"authorization",
"token v1.…"},
{"accept", "application/vnd.github.v3+json"},
{"user-agent", "bors-ng https://bors.tech"}
]
]},
{Tesla.Middleware.Retry, :call,
[[delay: 100, max_retries: 5]]}
]
},
__module__: Tesla,
body: "{\"message\":\"Resource not accessible by integration\",\"documentation_url\":\"https://developer.github.com/v3/repos/merging/#perform-a-merge\"}",
headers: [
{"date", "Mon, 16 Dec 2019 16:12:49 GMT"},
{"server", "GitHub.com"},
{"content-length", "137"},
{"content-type", "application/json; charset=utf-8"},
{"status", "403 Forbidden"},
{"x-ratelimit-limit", "5000"},
{"x-ratelimit-remaining", "4920"},
{"x-ratelimit-reset", "1576514802"},
{"x-github-media-type", "github.v3; format=json"},
{"access-control-expose-headers",
"ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type"},
{"access-control-allow-origin", "*"},
{"strict-transport-security",
"max-age=31536000; includeSubdomains; preload"},
{"x-frame-options", "deny"},
{"x-content-type-options", "nosniff"},
{"x-xss-protection", "1; mode=block"},
{"referrer-policy",
"origin-when-cross-origin, strict-origin-when-cross-origin"},
{"content-security-policy", "default-src 'none'"},
{"x-github-request-id",
"820F:12C0:094E:166A:5DF7AD01"}
],
method: :post,
opts: [],
query: [],
status: 403,
url: "https://api.github.com/repositories/176312472/merges"
}}},
[
{BorsNG.GitHub, :merge_branch!, 2,
[file: 'lib/github/github.ex', line: 124]},
{Enum, :"-reduce/3-lists^foldl/2-0-", 3,
[file: 'lib/enum.ex', line: 1940]},
{BorsNG.Worker.Batcher, :start_waiting_batch, 1,
[file: 'lib/worker/batcher.ex', line: 322]},
{BorsNG.Worker.Batcher, :poll_, 1,
[file: 'lib/worker/batcher.ex', line: 220]},
{BorsNG.Worker.Batcher, :handle_info, 2,
[file: 'lib/worker/batcher.ex', line: 183]},
{:gen_server, :try_dispatch, 4,
[file: 'gen_server.erl', line: 637]},
{:gen_server, :handle_msg, 6,
[file: 'gen_server.erl', line: 711]},
{:proc_lib, :init_p_do_apply, 3,
[file: 'proc_lib.erl', line: 249]}
]}
The PR is here https://github.com/wasmerio/python-ext-wasm/pull/101.
Any help is very welcomed, I don't clearly understand what happens here.
Thanks!