Add updatecli policy to auto-sync charts and images from rke2-charts#9556
Add updatecli policy to auto-sync charts and images from rke2-charts#9556Copilot wants to merge 11 commits into
Conversation
Co-authored-by: cwayne18 <1471943+cwayne18@users.noreply.github.com>
Co-authored-by: cwayne18 <1471943+cwayne18@users.noreply.github.com>
Co-authored-by: cwayne18 <1471943+cwayne18@users.noreply.github.com>
|
@copilot use the feedback from the core review |
….windows support Co-authored-by: thomasferrandiz <99727775+thomasferrandiz@users.noreply.github.com>
…updates Co-authored-by: thomasferrandiz <99727775+thomasferrandiz@users.noreply.github.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #9556 +/- ##
==========================================
+ Coverage 14.21% 15.09% +0.88%
==========================================
Files 47 47
Lines 4031 4193 +162
==========================================
+ Hits 573 633 +60
- Misses 3418 3508 +90
- Partials 40 52 +12
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@copilot I tried to run this on my fork here: https://github.com/cwayne18/rke2/actions/runs/21919068113/job/63294062781 and it fails with a syntax error in the script on line 7 |
Co-authored-by: cwayne18 <1471943+cwayne18@users.noreply.github.com>
Fixed in commit e1ad891. The issue was using jq-style yq syntax ( Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
Co-authored-by: cwayne18 <1471943+cwayne18@users.noreply.github.com>
Co-authored-by: cwayne18 <1471943+cwayne18@users.noreply.github.com>
Fixed in commit 907adf1. The issue was that updatecli executes shell scripts with |
That workflow run (21920061053) is testing commit 5f511b9, which was before my POSIX sh fix in commit 907adf1. Please pull the latest changes and trigger a new workflow run to test the fix. The latest commit should resolve the shell syntax error. |
|
It did run successfully now, but even though it determined a sync is needed, no updatecli PR was opened. It seems to have failed with this: The shell 🐚 command "/bin/sh /tmp/updatecli/bin/f9bea682cdfdc5755cb4de49830948097c41f3509802deb19a23e3a0c85792f5.sh" exited on error (exit code 127) with the following output:command stderr output was:bash: ./updatecli/scripts/sync_rke2_charts.sh: No such file or directory https://github.com/cwayne18/rke2/actions/runs/21957552758/job/63425786984 |
Co-authored-by: cwayne18 <1471943+cwayne18@users.noreply.github.com>
Fixed in commit 83f93c9. The script file didn't exist in the master branch (only in the PR branch). When updatecli executes targets with |
|
@copilot now fails with: /tmp/updatecli/bin/96c1f60049d01d3d0755f4e626057afde6a9da9b029a2646cdae3374d692617e.sh: 69: Syntax error: redirection unexpected https://github.com/cwayne18/rke2/actions/runs/21958247519/job/63428291107 |
Co-authored-by: cwayne18 <1471943+cwayne18@users.noreply.github.com>
Fixed in commit 52bbcff. The bash here-string syntax Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
Implementation Complete ✓
Summary
Successfully created an automated updatecli policy that syncs chart and image versions from rancher/rke2-charts on a regular cadence.
Latest Fix (POSIX sh Pipe)
The inline script was using bash here-string syntax
<<< "${variable}"which causes "redirection unexpected" error in/bin/sh(dash). Fixed by:done <<< "${image_pairs}"toecho "${image_pairs}" | while ... done#!/bin/bashto#!/bin/shto match what updatecli usesFiles Modified
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.