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

Add permissions check #30

Merged

Conversation

wagnerlmichael
Copy link
Member

@wagnerlmichael wagnerlmichael commented May 3, 2024

This PR adds a step in the pre-commit action that prints permissions of files in the R cache directory. Hopefully this helps us debug known cache issues.

Successful run here

Comment on lines 3 to 6
#- repo: https://github.com/adrienverge/yamllint
# rev: v1.32.0
# hooks:
# - id: yamllint
Copy link
Member Author

Choose a reason for hiding this comment

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

Temporarily commented out because I made the branch name too long

Copy link
Collaborator

Choose a reason for hiding this comment

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

[Question, non-blocking] Out of curiosity, how does the branch name affect the yamllint hook?

@@ -13,4 +13,4 @@ jobs:
uses: actions/checkout@v4

- name: Run pre-commit checks
uses: ccao-data/actions/pre-commit@main
uses: ccao-data/actions/pre-commit@add-step-to-troubleshoot-intermittent-caching-errors
Copy link
Member Author

Choose a reason for hiding this comment

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

Will revert this after review

pre-commit/action.yaml Outdated Show resolved Hide resolved
@wagnerlmichael wagnerlmichael marked this pull request as ready for review May 3, 2024 20:39
Copy link
Collaborator

@jeancochrane jeancochrane left a comment

Choose a reason for hiding this comment

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

Remember to revert the temporary changes before merging, otherwise this is good to go!

pre-commit/action.yaml Outdated Show resolved Hide resolved
Comment on lines 3 to 6
#- repo: https://github.com/adrienverge/yamllint
# rev: v1.32.0
# hooks:
# - id: yamllint
Copy link
Collaborator

Choose a reason for hiding this comment

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

[Question, non-blocking] Out of curiosity, how does the branch name affect the yamllint hook?

@wagnerlmichael
Copy link
Member Author

wagnerlmichael commented May 6, 2024

#30 (comment), @jeancochrane the length of the branch name when it is referenced in pre-commit.yaml is too long for yamllint

@wagnerlmichael wagnerlmichael merged commit c513d00 into main May 6, 2024
1 check passed
@wagnerlmichael wagnerlmichael deleted the add-step-to-troubleshoot-intermittent-caching-errors branch May 6, 2024 14:59
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.

None yet

2 participants