From 759d241cd915d8dd8bed84fc8d9c9d66d0e37003 Mon Sep 17 00:00:00 2001 From: Moritz Johner Date: Mon, 24 Jan 2022 20:36:05 +0100 Subject: [PATCH] chore: test e2e Signed-off-by: Moritz Johner --- .github/workflows/e2e-managed.yml | 30 ------------------------------ e2e/framework/addon/chart.go | 6 ++++-- 2 files changed, 4 insertions(+), 32 deletions(-) diff --git a/.github/workflows/e2e-managed.yml b/.github/workflows/e2e-managed.yml index b23f69db8..adf221f6f 100644 --- a/.github/workflows/e2e-managed.yml +++ b/.github/workflows/e2e-managed.yml @@ -49,36 +49,6 @@ jobs: steps: - # set status=in_progress - - uses: actions/github-script@v1 - env: - number: ${{ github.event.client_payload.pull_request.number }} - job: ${{ github.job }} - conclusion: ${{ job.status }} - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - script: | - const { data: pull } = await github.pulls.get({ - ...context.repo, - pull_number: process.env.number - }); - const ref = pull.head.sha; - console.log("\n\nPR sha: " + ref) - const { data: checks } = await github.checks.listForRef({ - ...context.repo, - ref - }); - console.log("\n\nPR CHECKS: " + checks) - const check = checks.check_runs.filter(c => c.name === process.env.job); - console.log("\n\nPR Filtered CHECK: " + check) - console.log(check) - const { data: result } = await github.checks.update({ - ...context.repo, - check_run_id: check[0].id, - status: 'in_progress', - }); - return result; - # Check out merge commit - name: Fork based /ok-to-test-managed checkout uses: actions/checkout@v2 diff --git a/e2e/framework/addon/chart.go b/e2e/framework/addon/chart.go index ead4f1321..1067dcbdd 100644 --- a/e2e/framework/addon/chart.go +++ b/e2e/framework/addon/chart.go @@ -62,8 +62,10 @@ func (c *HelmChart) Install() error { } args := []string{"install", c.ReleaseName, c.Chart, + "--debug", "--wait", - "--timeout", "120s", + "--timeout", "600s", + "-o", "yaml", "--namespace", c.Namespace, } @@ -80,7 +82,7 @@ func (c *HelmChart) Install() error { } var sout, serr bytes.Buffer - log.Logf("installing chart %s", c.ReleaseName) + log.Logf("installing chart with args: %+q", args) cmd := exec.Command("helm", args...) cmd.Stdout = &sout cmd.Stderr = &serr