Skip to content

fix: correct executable bits on docs and scripts - #281

Open
avneetbansal-aws wants to merge 2 commits into
awslabs:mainfrom
avneetbansal-aws:fix/precommit-executable-bits
Open

avneetbansal-aws wants to merge 2 commits into
awslabs:mainfrom
avneetbansal-aws:fix/precommit-executable-bits

Conversation

@avneetbansal-aws

@avneetbansal-aws avneetbansal-aws commented Oct 2, 2026 •

Copy link
Copy Markdown

Fixes #215.

Two pre-commit hooks fail because of wrong Unix executable bits. check-executables-have-shebangs flags six hyperpod-* .md docs that are tracked as executable (100755) with no shebang, and check-shebang-scripts-are-executable flags Python scripts that carry a #!/usr/bin/env python3 shebang but are not executable. This clears the executable bit on the docs and sets it on the scripts.

The issue listed two scripts when it was filed, but the hook now flags nine on current main, since more scripts were added in the meantime. All nine have shebangs and are flagged, so this fixes the full current set rather than leaving the hook red after a partial fix.

Docs that had the executable bit cleared:

plugins/sagemaker-ai/skills/hyperpod-issue-report/SKILL.md
plugins/sagemaker-ai/skills/hyperpod-issue-report/references/collection-details.md
plugins/sagemaker-ai/skills/hyperpod-issue-report/references/troubleshooting.md
plugins/sagemaker-ai/skills/hyperpod-ssm/SKILL.md
plugins/sagemaker-ai/skills/hyperpod-ssm/references/troubleshooting.md
plugins/sagemaker-ai/skills/hyperpod-version-checker/SKILL.md

Shebang scripts that had the executable bit set:

tools/generate_codex_manifests.py
plugins/sagemaker-ai/skills/dataset-transformation/scripts/transformation_tools.py
plugins/aws-transform/skills/aws-transform/scripts/verify-traceability.py
plugins/deploy-on-aws/scripts/lib/fix_icon_colors.py
plugins/deploy-on-aws/scripts/lib/fix_nesting.py
plugins/deploy-on-aws/scripts/lib/fix_step_badges.py
plugins/deploy-on-aws/scripts/lib/post_process_drawio.py
tools/evals/databases-on-aws/dsql/scripts/run_functional_evals.py
tools/evals/databases-on-aws/dsql/scripts/run_query_explainability_evals.py

No file contents changed, only mode bits. Both hooks pass locally after the change.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the project license.

Two pre-commit hooks failed on wrong Unix executable bits:

- check-executables-have-shebangs: 6 hyperpod-* `.md` docs were marked
  executable (100755) with no shebang. Docs should not be executable; cleared
  the bit (-> 100644).
- check-shebang-scripts-are-executable: 9 `.py` scripts have a
  `#!/usr/bin/env python3` shebang but were not executable; set the bit
  (-> 100755). (Issue awslabs#215 listed 2; the set has since grown to 9, all with
  shebangs flagged by the hook on current main.)

Fixes awslabs#215
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.

pre-commit: incorrect executable bits (6 .md marked +x; 2 .py scripts missing +x)

1 participant