triagebot.toml caching is troublesome #1875
Copy link
Copy link
Open
Description
Activity
FWIW, in new bors I use GitHub's API to download the contents of the bors config file from the default branch (https://github.com/rust-lang/bors/blob/main/src/github/api/client.rs#L56). That hopefully shouldn't be cached at all, since it reads git state directly.
Other than that, I also reload the config only periodically though.
I tried using the git Rest APIs in #2088 but I couldn't make it work reliably. I think I give up unless someone has a better idea 🤷♂ The code is there, anyone is free to take it further.
What issues did you encounter with it?
Ah, I didn't notice the comment (#2088 (comment)).
Metadata
Metadata
Assignees
Labels
No labels
triagebot.tomlis cached fairly aggressively. This can cause difficulty, particularly during development. When updating the file, it can take a long time for that update to be reflected.There are two aspects to this:
curlon the command-line would get the new content, which was very confusing.Some random thoughts:
triagebot.tomlhas been updated? I believe we can get this list of files from the PushEvent commit list (there are limits, but shouldn't be an issue here).