Skip to content

ci(pr-test): use PWD instead of CONTENT_TRANSLATED_ROOT #28386

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

Merged
merged 2 commits into from
Aug 14, 2025
Merged

Conversation

argl
Copy link
Contributor

@argl argl commented Aug 14, 2025

Description

Fixes a double files/ path component introduced in the last change

@github-actions github-actions bot added the system Infrastructure and configuration for the project label Aug 14, 2025
@argl argl marked this pull request as ready for review August 14, 2025 08:24
@argl argl requested a review from a team as a code owner August 14, 2025 08:24
@argl argl requested a review from caugner August 14, 2025 08:24
@caugner caugner changed the title remove files/ prefix for path arguments ci(pr-test): remove files/ prefix for path arguments Aug 14, 2025
Comment on lines 157 to 158
file_without_prefix="${file#files/}"
ARGS+=("-f" "$CONTENT_TRANSLATED_ROOT/$file_without_prefix")
Copy link
Contributor

Choose a reason for hiding this comment

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

What is the reason to go with this, rather than replicating what we do in the content workflow?

Suggested change
file_without_prefix="${file#files/}"
ARGS+=("-f" "$CONTENT_TRANSLATED_ROOT/$file_without_prefix")
ARGS+=("-f" "$PWD/$file")

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 was replicating what was there in the first place. But I don't have a strong opinion on either.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

But being somewhat in line with the content repository's workflows, I am happy to change.

Copy link
Contributor

Choose a reason for hiding this comment

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

Let's do this, and get this out asap.

@caugner caugner changed the title ci(pr-test): remove files/ prefix for path arguments ci(pr-test): use PWD instead of CONTENT_TRANSLATED_ROOT Aug 14, 2025
@caugner caugner merged commit a472324 into main Aug 14, 2025
11 checks passed
@caugner caugner deleted the fix-test-workflow branch August 14, 2025 10:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
system Infrastructure and configuration for the project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants