Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Fix PR lookup for fetchdep.sh #10990

Merged
merged 1 commit into from
May 25, 2023
Merged

Fix PR lookup for fetchdep.sh #10990

merged 1 commit into from
May 25, 2023

Conversation

richvdh
Copy link
Member

@richvdh richvdh commented May 25, 2023

Context: fetchdep.sh attempts to check out a github repository based on the details in a pull request. To do this, it needs to know how to find the pull request. So, the github workflows attempt to set environment variables to tell it. Unfortunately, they currently disagree about what the names of the environment variables should be.

So, when the workflows are called from workflows in other repositories, we end up looking at the wrong PR for information. 99% of the time that will be fine, but it's just possible we'll end up checking out a branch we didn't expect.

This appears to have been introduced by #8498.

To simplify matters, we may as well have the script use ${GITHUB_REPOSITORY} directly, and remove the unused REPOSITORY env var from the workflows.


This change is marked as an internal change (Task), so will not be included in the changelog.

@richvdh richvdh requested review from a team as code owners May 25, 2023 12:34
@richvdh richvdh requested a review from t3chguy May 25, 2023 12:34
@richvdh richvdh added the T-Task Refactoring, enabling or disabling functionality, other engineering tasks label May 25, 2023
@richvdh richvdh requested a review from andybalaam May 25, 2023 12:34
Context: `fetchdep.sh` attempts to check out a github repository based on the
details in a pull request. To do this, it needs to know how to find the pull
request. So, the github workflows attempt to set environment variables to tell
it. Unfortunately, they currently disagree about what the names of the
environment variables should be.

This appears to have been introduced by #8498.

To simplify matters, we may as well have the script use `${GITHUB_REPOSITORY}`
directly, and remove te unused `REPOSITORY` env var from the workflows.
@richvdh richvdh added this pull request to the merge queue May 25, 2023
Merged via the queue into develop with commit 192e6f6 May 25, 2023
@richvdh richvdh deleted the rav/fix_fetchdep_env_vars branch May 25, 2023 14:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
T-Task Refactoring, enabling or disabling functionality, other engineering tasks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants