Skip to content

Add automated telegraf-agent upgrade workflow - #1652

Merged
suyadav1 merged 4 commits into
ci_prodfrom
auto/add-telegraf-upgrade-workflow
May 4, 2026
Merged

suyadav1 merged 4 commits into
ci_prodfrom
auto/add-telegraf-upgrade-workflow

Conversation

@suyadav1

@suyadav1 suyadav1 commented Apr 17, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Adds a scheduled GitHub Actions workflow (.github/workflows/check-telegraf-upgrade.yml) that automatically detects new telegraf-agent packages on PMC and creates PRs to update kubernetes/linux/setup.sh.

How it works

  1. Runs every day at 10 AM UTC
  2. Scrapes PMC for the latest telegraf-agent version
  3. Compares against the version in kubernetes/linux/setup.sh
  4. If newer and no existing PR — updates setup.sh, pushes a branch, and creates a PR

Testing

After merging, trigger manually via Actions → Check Telegraf Package Upgrade → Run workflow to verify it detects the current version correctly.

@suyadav1
suyadav1 requested a review from a team as a code owner April 17, 2026 22:33
Adds a scheduled GitHub Actions workflow that checks PMC daily for new
telegraf-agent packages and creates PRs to update kubernetes/linux/setup.sh.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@suyadav1
suyadav1 force-pushed the auto/add-telegraf-upgrade-workflow branch from 00d7fb6 to f523d2a Compare April 17, 2026 22:34
@suyadav1

Copy link
Copy Markdown
Contributor Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

- Add 'Fetch upstream release notes' step that fetches from influxdata/telegraf
  GitHub releases using gh api (authenticated, best-effort with fallback)
- Enhanced PR body with collapsible release notes, full release link, and
  compare link between versions
- Use --body-file and env vars to safely handle multiline release notes
  containing special characters
- Use unique delimiter for GITHUB_OUTPUT multiline values to prevent collision

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions

Copy link
Copy Markdown
Contributor

This PR is stale because it has been open 7 days with no activity. Remove stale label or comment or this will be closed in 5 days.

@github-actions

Copy link
Copy Markdown
Contributor

This PR was closed because it has been stalled for 12 days with no activity.

@github-actions github-actions Bot closed this Apr 30, 2026
@suyadav1 suyadav1 reopened this Apr 30, 2026
@suyadav1

Copy link
Copy Markdown
Contributor Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

suyadav1 and others added 2 commits May 1, 2026 03:01
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Rename workflow to 'Telegraf Package Upgrade'
- Add co-authored-by trailer to commit message
- Fix heredoc indentation for clean PR body rendering

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@suyadav1

suyadav1 commented May 1, 2026

Copy link
Copy Markdown
Contributor Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@suyadav1
suyadav1 merged commit be74168 into ci_prod May 4, 2026
19 checks passed
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.

2 participants