Skip to content

fix USE_GCPCACHE conditional#187

Merged
giordano merged 4 commits into
mainfrom
ss/fix-gcpcache-if
Jul 1, 2026
Merged

fix USE_GCPCACHE conditional#187
giordano merged 4 commits into
mainfrom
ss/fix-gcpcache-if

Conversation

@mofeing

@mofeing mofeing commented Jul 1, 2026

Copy link
Copy Markdown
Collaborator

it evaluated to true even when USE_GCPCACHE=false because I believe it was just testing whether the variable was empty or not.

this should fix local builds as they don't have the GCPCACHE key.

it evaluated to true even when `USE_GCPCACHE=false` because I believe it was just testing whether the variable was empty or not.

this should fix local builds as they don't have the GCPCACHE key.
@mofeing mofeing requested a review from wsmoses July 1, 2026 09:40
@wsmoses

wsmoses commented Jul 1, 2026

Copy link
Copy Markdown
Member

oh lol fair, considering I screwed this up to begin with @giordano can you check this properly

@giordano giordano left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good, but doesn't need to trigger registration. Please add [skip ci] to the merge commit message

@giordano

giordano commented Jul 1, 2026

Copy link
Copy Markdown
Member

But cache isn't being used?

@giordano

giordano commented Jul 1, 2026

Copy link
Copy Markdown
Member

USE_GCPCACHE=$(BinaryBuilder.is_yggdrasil())
this is probably wrong (but I need to see the full log to be sure)

@wsmoses

wsmoses commented Jul 1, 2026

Copy link
Copy Markdown
Member

semi relatedly @giordano can we add info on skip ci to the readme, I also personally keep forgetting the specific things we need to do for that

@giordano

giordano commented Jul 1, 2026

Copy link
Copy Markdown
Member

Yeah, USE_GCPCACHE is wrong: https://github.com/EnzymeAD/ReactantBuilder/actions/runs/28508321396/job/84502440684#step:10:104. I'll fix it.

@giordano giordano self-requested a review July 1, 2026 12:08
@giordano giordano force-pushed the ss/fix-gcpcache-if branch from a11c74b to e1435ec Compare July 1, 2026 12:21
@giordano giordano force-pushed the ss/fix-gcpcache-if branch from e1435ec to 8d40ba5 Compare July 1, 2026 12:26
Comment thread R/Reactant/build_tarballs.jl Outdated
# Don't use ccache on Yggdrasil, doesn't seem to work.
USE_CCACHE=$(!BinaryBuilder.is_yggdrasil())
USE_GCPCACHE=$(get(ENV, "GITHUB_ACTIONS", "false") == "true" && get(ENV, "GITHUB_ACTION_REPOSITORY", "") in ("EnzymeAD/ReactantBuilder", "EnzymeAD/Enzyme-JAX"))
USE_GCPCACHE=$(get(ENV, "GITHUB_ACTIONS", "false") == "true" && get(ENV, "GITHUB_REPOSITORY", "") in ("EnzymeAD/ReactantBuilder", "EnzymeAD/Enzyme-JAX"))

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@giordano do we actually need to check if its in those two ?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

can we instead change this to check os == 'jll' ?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

In 56ec692 I changed it to check the name of the runner

@giordano giordano force-pushed the ss/fix-gcpcache-if branch from 703835c to 55498b3 Compare July 1, 2026 12:50
@giordano giordano force-pushed the ss/fix-gcpcache-if branch from 55498b3 to 56ec692 Compare July 1, 2026 12:53
Comment thread R/Reactant/build_tarballs.jl Outdated
# Don't use ccache on Yggdrasil, doesn't seem to work.
USE_CCACHE=$(!BinaryBuilder.is_yggdrasil())
USE_GCPCACHE=$(get(ENV, "GITHUB_ACTIONS", "false") == "true" && get(ENV, "GITHUB_ACTION_REPOSITORY", "") in ("EnzymeAD/ReactantBuilder", "EnzymeAD/Enzyme-JAX"))
USE_GCPCACHE=$(get(ENV, "GITHUB_ACTIONS", "false") == "true" && get(ENV, "GITHUB_REPOSITORY", "") in ("EnzymeAD/ReactantBuilder", "EnzymeAD/Enzyme-JAX"))

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

can we instead change this to check os == 'jll' ?

# Don't use ccache on Yggdrasil, doesn't seem to work.
USE_CCACHE=$(!BinaryBuilder.is_yggdrasil())
USE_GCPCACHE=$(BinaryBuilder.is_yggdrasil())
USE_GCPCACHE=$(get(ENV, "GITHUB_ACTIONS", "false") == "true" && startswith(get(ENV, "RUNNER_NAME", ""), "jll"))

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

can we check if the runner has the jll tag rather than checking the runner name?

We may have other named runners with the jll group

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@giordano giordano merged commit fb2004c into main Jul 1, 2026
16 checks passed
@giordano giordano deleted the ss/fix-gcpcache-if branch July 1, 2026 16:27
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