Skip to content

CD integration for uploading to HotCRP#85

Open
hhkit wants to merge 10 commits into
mainfrom
ivan/hotcrp-ci
Open

CD integration for uploading to HotCRP#85
hhkit wants to merge 10 commits into
mainfrom
ivan/hotcrp-ci

Conversation

@hhkit

@hhkit hhkit commented Jul 3, 2026

Copy link
Copy Markdown

This PR adds an opt-in script to tools that uploads submisison.pdf to HotCRP in GitHub Actions.

@hhkit hhkit requested review from bollu and tobiasgrosser July 3, 2026 12:37

@bollu bollu left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I understand correctly, I can use 'upload-to-hotcrp.sh' without adding it as a GH action, correct? Very sweet.

While I'm not the biggest fan of shell scripts, this one is well written (too well written 🤖) so LGTM.

Comment thread .github/workflows/build_paper.yml
Comment thread tools/upload-to-hotcrp.sh Outdated
local name="$1"
local value="${!name:-}"

if [ -z "$value" ] || [ "$value" = "TODO" ] || [ "$value" = "TODO_REPLACE_ME" ]; then

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if [ -z "$value" ] || [ "$value" = "TODO" ] || [ "$value" = "TODO_REPLACE_ME" ]; then
if [ -z "$value" ] || [ "$value" = "TODO" ]; then

Do we really need to check for two different todo values?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we now check for all the TODO values

Comment thread .github/hotcrp.env Outdated
Comment thread tools/upload-to-hotcrp.sh Outdated
Comment on lines +15 to +16
CONFIG_FILE is sourced as a shell env file. If omitted, .github/hotcrp.env is
sourced when it exists; otherwise existing environment variables are used.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this actually accurate w.r.t what's implemented?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

now it is

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👦 written not 🤖

@hhkit

hhkit commented Jul 3, 2026

Copy link
Copy Markdown
Author

If I understand correctly, I can use 'upload-to-hotcrp.sh' without adding it as a GH action, correct? Very sweet.

While I'm not the biggest fan of shell scripts, this one is well written (too well written 🤖) so LGTM.

not the biggest fan either, but we don't really want to bloat the actions container with other packages, right?

@alexkeizer

Copy link
Copy Markdown
Contributor

not the biggest fan either, but we don't really want to bloat the actions container with other packages, right?

I mean, since you already use python, and the main point of this script is to just send a HTTP request (right?), why not just use python for all of it? I guess there is a little bloat / startup time then if you want to use the python's request library (I assume you'd have to install it via pip or something). You could fix that via some caching of the pip modules, but that's probably over-engineering.

Yeah, I guess if a shell script works it's probably the simplest solution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants