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] Run whitespace check on GitHub Actions and annotate source code #55281

Merged
merged 3 commits into from
Jul 28, 2024

Conversation

giordano
Copy link
Contributor

There some advantages in running this on GitHub Actions (GHA) rather than Buildkite (BK):

  • on GHA this task takes ~10 seconds, on BK it takes ~1 minute (job setup on BK takes way too long)
  • since for this task we can use GitHub-hosted runners (which come with Julia preinstalled), we can spare BK runners from running this job. Admittedly it's very marginal saving, but better than nothing when the queue gets long
  • using GHA allows us to easily add source code annotations in PR overviews, which make it easier to quickly spot the line to fix from the GitHub web interface. This would be doable also on BK, but slightly more annoying. As an example:
    image

If this PR is accepted, I'll remove the corresponding job from BK.

@giordano giordano added the ci Continuous integration label Jul 28, 2024
@giordano giordano requested a review from a team as a code owner July 28, 2024 12:14
.github/workflows/Whitespace.yml Outdated Show resolved Hide resolved
.github/workflows/Whitespace.yml Show resolved Hide resolved
.github/workflows/Whitespace.yml Outdated Show resolved Hide resolved
@DilumAluthge
Copy link
Member

I think this is worth trying out.

The PR should be good to go once the review suggestions are done.

@DilumAluthge DilumAluthge added the merge me PR is reviewed. Merge when all tests are passing label Jul 28, 2024
@DilumAluthge DilumAluthge merged commit 7de15ba into JuliaLang:master Jul 28, 2024
8 of 9 checks passed
@DilumAluthge DilumAluthge removed the merge me PR is reviewed. Merge when all tests are passing label Jul 28, 2024
@giordano giordano deleted the mg/gha-whitespace branch July 28, 2024 20:31
lazarusA pushed a commit to lazarusA/julia that referenced this pull request Aug 17, 2024
…uliaLang#55281)

There some advantages in running this on GitHub Actions (GHA) rather
than Buildkite (BK):

* on GHA this task takes ~10 seconds, on BK it takes ~1 minute (job
setup on BK takes way too long)
* since for this task we can use GitHub-hosted runners (which come with
Julia preinstalled), we can spare BK runners from running this job.
Admittedly it's very marginal saving, but better than nothing when the
queue gets long
* using GHA allows us to easily add source code annotations in PR
overviews, which make it easier to quickly spot the line to fix from the
GitHub web interface. This would be doable also on BK, but slightly more
annoying. As [an
example](giordano@a7725e4):

![image](https://github.com/user-attachments/assets/8a459a61-8953-4590-980e-ff156a62701f)

If this PR is accepted, I'll remove the corresponding job from BK.

---------

Co-authored-by: Dilum Aluthge <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci Continuous integration
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants