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

[CI] GH check: add file-expired check, and more #6189

Merged
merged 1 commit into from
Feb 3, 2025

Conversation

chalin
Copy link
Contributor

@chalin chalin commented Feb 3, 2025

  • Contributes to [CI] Ensure that fix:dict etc get run as part of checks #6040
  • Renames .github/workflows/check-format.yml to .github/workflows/check-file.yml since the checks are over files, and more than just formatting related
  • Adds check:expired as a PR-build check in .github/workflows/check-file.yml
  • Simplifies the check-formatting:
    • Eliminates the use of PRETTIER_AT_VERS
    • Adds scripts/npx-helper.sh script to be used instead of setting env var like PRETTIER_AT_VERS
    • Contributes to Site build error under Windows #2120
      • Adjusts the __check:format to be more Windows friendsly.
        @trask can you give this a try under Windows and let me know if this help?

@chalin chalin added the CI/infra CI & infrastructure label Feb 3, 2025
@chalin chalin requested a review from a team as a code owner February 3, 2025 16:21
@chalin chalin mentioned this pull request Jan 23, 2025
2 tasks
@chalin chalin force-pushed the chalin-im-npx-vers-2025-02-03 branch from 6fde4f4 to 3c8de0c Compare February 3, 2025 16:31
Copy link
Contributor

@tiffany76 tiffany76 left a comment

Choose a reason for hiding this comment

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

RSLGTM.

@chalin chalin force-pushed the chalin-im-npx-vers-2025-02-03 branch from 3c8de0c to d9d31a4 Compare February 3, 2025 17:23
@chalin
Copy link
Contributor Author

chalin commented Feb 3, 2025

CSPELL:IGNORE check seems stuck, maybe because it was renamed? Merging anyway, since that the only thing pending.

@chalin chalin merged commit cbf96ed into open-telemetry:main Feb 3, 2025
18 checks passed
@chalin chalin deleted the chalin-im-npx-vers-2025-02-03 branch February 3, 2025 17:31
@chalin
Copy link
Contributor Author

chalin commented Feb 3, 2025

CSPELL:IGNORE check seems stuck, maybe because it was renamed? Merging anyway, since that the only thing pending.

Hmm, not sure that'll work, but we'll see.

Comment on lines +31 to 44
env:
FIX_CMD: fix:dict
steps:
- uses: actions/checkout@v4
- run: npm run fix:dict
- run: npm run ${{ env.FIX_CMD }}
- name: Any changed files?
run: |
CHANGES=`git status --porcelain`
if [[ $CHANGES ]]; then
echo "Locally run `npm run fix:dict` and commit the changes:"
echo "Add comment '/fix:${{ env.FIX_CMD }}' to your PR in GitHub,"
echo "or locally run 'npm run ${{ env.FIX_CMD }}' and commit the changes:"
echo "$CHANGES"
exit 1
else
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Note to self: might want to define a script so that this can be reused.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI/infra CI & infrastructure
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants