Wire runtime idle threshold through runtime-api chart #607
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Validate Replicated Manifests | |
| on: | |
| pull_request: | |
| paths: | |
| - 'replicated/**' | |
| - 'charts/**' | |
| - 'Makefile' | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Helm | |
| uses: azure/setup-helm@v3 | |
| with: | |
| version: 'latest' | |
| - name: Install yq | |
| uses: mikefarah/yq@v4 | |
| - name: Install Replicated CLI | |
| run: | | |
| curl -s https://api.github.com/repos/replicatedhq/replicated/releases/latest \ | |
| | grep "browser_download_url.*linux_amd64.tar.gz" \ | |
| | cut -d : -f 2,3 \ | |
| | tr -d \" \ | |
| | wget -qi - | |
| mkdir -p /tmp/replicated-cli | |
| tar -xzf replicated_*_linux_amd64.tar.gz -C /tmp/replicated-cli replicated | |
| sudo mv /tmp/replicated-cli/replicated /usr/local/bin/ | |
| - name: Update chart dependencies to use local paths for PR validation | |
| run: | | |
| # For PR validation, we need to use file:// dependencies instead of OCI | |
| # because the updated chart versions don't exist in the registry yet. | |
| # | |
| # Note: openhands-secrets and image-loader are NOT dependencies of any chart. | |
| # They are standalone Replicated HelmChart resources (see replicated/secrets.yaml | |
| # and replicated/image-loader.yaml). Only runtime-api is a dependency of openhands. | |
| # | |
| # Check if runtime-api is a dependency in openhands chart and update it to use local path | |
| if yq -e '.dependencies[] | select(.name == "runtime-api")' charts/openhands/Chart.yaml > /dev/null 2>&1; then | |
| echo "Updating openhands chart to use local runtime-api dependency" | |
| yq -i '(.dependencies[] | select(.name == "runtime-api")).repository = "file://../runtime-api"' charts/openhands/Chart.yaml | |
| fi | |
| - name: Lint Replicated release | |
| env: | |
| REPLICATED_APP: ${{ secrets.REPLICATED_APP }} | |
| REPLICATED_API_TOKEN: ${{ secrets.REPLICATED_API_TOKEN }} | |
| run: make lint |