Skip to content

Add first attempt at a centralised update workflow - #288

Merged
Cadair merged 41 commits into
mainfrom
centralised_updating_workflow
Aug 6, 2026
Merged

Add first attempt at a centralised update workflow#288
Cadair merged 41 commits into
mainfrom
centralised_updating_workflow

Conversation

@Cadair

@Cadair Cadair commented Aug 5, 2026

Copy link
Copy Markdown
Member

PR Description

This is an attempt to fix #171

PRed from an upstream branch to test

AI Assistance Disclosure

AI tools were used for:

  • Code generation (e.g., when writing an implementation or fixing a bug)
  • Test/benchmark generation
  • Documentation (including examples)
  • Research and understanding
  • No AI tools were used

Regardless of AI use, the human contributor remains fully responsible for correctness, design choices, licensing compatibility, and long-term maintainability.

Comment thread .github/workflows/centralised_cruft_updater.yml Fixed
@Cadair
Cadair had a problem deploying to global-cruft-update August 5, 2026 10:48 — with GitHub Actions Failure
@Cadair
Cadair force-pushed the centralised_updating_workflow branch from ac05127 to caaf5c0 Compare August 5, 2026 10:49
@Cadair
Cadair had a problem deploying to global-cruft-update August 5, 2026 10:49 — with GitHub Actions Failure
@Cadair
Cadair had a problem deploying to global-cruft-update August 5, 2026 10:51 — with GitHub Actions Failure
@Cadair
Cadair had a problem deploying to global-cruft-update August 5, 2026 10:53 — with GitHub Actions Failure
@Cadair
Cadair deployed to global-cruft-update August 5, 2026 10:56 — with GitHub Actions Active
Comment thread .github/workflows/centralised_cruft_updater.yml Fixed
@Cadair
Cadair force-pushed the centralised_updating_workflow branch 2 times, most recently from c479b02 to 39b4a46 Compare August 5, 2026 11:32
Comment thread .github/workflows/centralised_cruft_updater.yml Fixed
Comment thread .github/workflows/centralised_cruft_updater.yml Fixed
@Cadair
Cadair force-pushed the centralised_updating_workflow branch 10 times, most recently from 58befcc to 231ee04 Compare August 5, 2026 15:17
Comment thread .github/workflows/centralised_cruft_updater.yml Fixed
Comment thread .github/workflows/centralised_cruft_updater.yml Fixed
Comment thread .github/workflows/centralised_cruft_updater.yml Fixed
Comment thread .github/workflows/centralised_cruft_updater.yml Fixed
Comment thread .github/workflows/centralised_cruft_updater.yml Fixed
Comment thread .github/workflows/centralised_cruft_updater.yml Fixed
Comment thread .github/workflows/centralised_cruft_updater.yml Fixed
Comment thread .github/workflows/centralised_cruft_updater.yml Fixed
@Cadair
Cadair force-pushed the centralised_updating_workflow branch 3 times, most recently from c87da8c to 53abde5 Compare August 5, 2026 15:57
Comment thread .github/workflows/centralised_cruft_updater.yml Fixed
@Cadair
Cadair force-pushed the centralised_updating_workflow branch from 9ac392a to 71f8159 Compare August 5, 2026 16:08
Comment thread .github/workflows/centralised_cruft_updater.yml Outdated
$([ "$DRAFT" = "true" ] && echo "--draft" || echo ""))
PR_NUMBER="${PR_URL##*/}"
echo "pr_number=$PR_NUMBER" >> "$GITHUB_OUTPUT"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Could add another step in here to add labels (no changelog? minor change?)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This workflow doesn't have the permissions to do that.

@Cadair
Cadair force-pushed the centralised_updating_workflow branch from 71f8159 to 304d37d Compare August 6, 2026 12:46
@Cadair

Cadair commented Aug 6, 2026

Copy link
Copy Markdown
Member Author

#290 is an example of the issue opened if a job fails

@alasdairwilson alasdairwilson left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I dont think you need to make any changes, the thing is so complex...I wouldn't want to start rooting around in it and forcing another 12 iterations to get it working again.

Comment thread .github/workflows/centralised_cruft_updater.yml
id: cruft_json
run: |
git status --porcelain=1
if [[ "$(git status --porcelain=1)" == " M .cruft.json" ]]; then

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

What does this do? considering you later disregard if the diff is empty, there is a LOT of further steps that are using this return so, assumning that the reason you use a later check is because this was submitting blank commits....U suspect that this is returning has_changes = 1 even if there aren't any.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

The idea of this task is that if only .cruft.json has been updated (i.e. just the commit has revved but there are no changes) then we stop.

@Cadair

Cadair commented Aug 6, 2026

Copy link
Copy Markdown
Member Author

I'm going to merge this and we can fix up stuff incrementally.

@Cadair
Cadair merged commit 5c98b2c into main Aug 6, 2026
13 checks passed
@Cadair
Cadair deleted the centralised_updating_workflow branch August 6, 2026 15:04
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.

Add a workflow which can template all SunPy repos when workflow files change

3 participants