Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix pr test job submission #132

Merged
merged 4 commits into from
Jan 23, 2025

Conversation

mwasilew
Copy link
Contributor

No description provided.

if (!fs.existsSync(temp)){
fs.mkdirSync(temp);
}
fs.writeFileSync(path.join(temp, 'build_url.zip'), Buffer.from(download.data));
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is it ZIP-ped?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think it comes from the upload-action which zips the content by default: https://github.com/actions/upload-artifact?tab=readme-ov-file#inputs. This code comes from github example

.github/workflows/test-pr.yml Show resolved Hide resolved
This change allows to keep the base URL in one place and helps avoid
mistakes when changing it.

Signed-off-by: Milosz Wasilewski <[email protected]>
This is required for running tests after PR builds. Tests triggered
after PR build will use the artifact file to retrieve base download URL.

Signed-off-by: Milosz Wasilewski <[email protected]>
Workflows triggered by "workflow_run" event don't receive any variables
from triggering event. the only way to pass the variable is throught the
uploaded artifact

test-pr workflow is triggered by PR build completion. This patch allows
test-pr to retrieve the build_url from saved artifact before triggering
tests.

Signed-off-by: Milosz Wasilewski <[email protected]>
Display title is set to title of the PR that triggered original build

Signed-off-by: Milosz Wasilewski <[email protected]>
@mwasilew mwasilew force-pushed the fix-pr-test-job-submission branch from 104d173 to 6f77043 Compare January 22, 2025 14:20
@mwasilew
Copy link
Contributor Author

I rebased on top of current main and addressed the comments.

@ndechesne ndechesne merged commit 79dad80 into qualcomm-linux:main Jan 23, 2025
11 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

5 participants