Skip to content

Commit

Permalink
Remove debug logging and fix CI pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
pkosiec committed Sep 26, 2023
1 parent 7ab2573 commit 08ea6c5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 17 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/branch-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,7 @@ jobs:
BOTKUBE_CLOUD_DEV_REFRESH_TOKEN: ${{ secrets.BOTKUBE_CLOUD_DEV_REFRESH_TOKEN }}
BOTKUBE_CLOUD_DEV_AUTH0_CLIENT_ID: ${{ secrets.BOTKUBE_CLOUD_DEV_AUTH0_CLIENT_ID }}
run: |
KUBECONFIG=$(k3d kubeconfig write cli-migration-e2e-cluster) \
make test-migration-tool
KUBECONFIG=$(k3d kubeconfig write cli-migration-e2e-cluster) make test-cli-migration-e2e
- name: Upload artifacts
uses: actions/upload-artifact@v3
Expand Down Expand Up @@ -256,9 +255,8 @@ jobs:
BOTKUBE_CLOUD_FREE_ORGANIZATION_ID: ${{ secrets.E2E_DEV_BOTKUBE_CLOUD_FREE_ORGANIZATION_ID }}
SCREENSHOTS_DIR: ${{ runner.temp }}/screenshots
DEBUG_MODE: true
run:
KUBECONFIG=$(k3d kubeconfig write cloud-slack-dev-e2e-cluster) \
make test-cloud-slack-dev-e2e
run: |
KUBECONFIG=$(k3d kubeconfig write cli-migration-e2e-cluster) make test-cloud-slack-dev-e2e
- name: Upload artifacts
uses: actions/upload-artifact@v3
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ test-integration-slack: system-check
test-integration-discord: system-check
@go test -v -tags=integration -race -count=1 ./test/e2e/... -run "TestDiscord"

test-migration-tool: system-check
test-cli-migration-e2e: system-check
@go test -v -tags=migration -race -count=1 ./test/e2e/...

test-cloud-slack-dev-e2e: system-check
Expand Down
11 changes: 0 additions & 11 deletions test/cloud-slack-dev-e2e/cloud_slack_dev_e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -567,11 +567,6 @@ func newBrowserPage(t *testing.T, browser *rod.Browser, cfg E2ESlackConfig) *rod
}

func removeSourcesAndAddActions(t *testing.T, gql *graphql.Client, existingDeployment *gqlModel.Deployment) *gqlModel.Deployment {
existingDeployment.HelmCommand = nil
existingDeployment.InstallUpgradeInstructions = nil
existingDeployment.APIKey = nil
formatx.StructDumper().Dump("Deployment before update", existingDeployment)
formatx.StructDumper().Dump("Deployment platforms before update", existingDeployment.Platforms)
var updateInput struct {
UpdateDeployment gqlModel.Deployment `graphql:"updateDeployment(id: $id, input: $input)"`
}
Expand Down Expand Up @@ -619,8 +614,6 @@ func removeSourcesAndAddActions(t *testing.T, gql *graphql.Client, existingDeplo
})
}

formatx.StructDumper().Dump("Deployment platforms after update", platforms)

updateVariables := map[string]interface{}{
"id": graphql.ID(existingDeployment.ID),
"input": gqlModel.DeploymentUpdateInput{
Expand All @@ -634,10 +627,6 @@ func removeSourcesAndAddActions(t *testing.T, gql *graphql.Client, existingDeplo
err := gql.Mutate(context.Background(), &updateInput, updateVariables)
require.NoError(t, err)

updateInput.UpdateDeployment.HelmCommand = nil
updateInput.UpdateDeployment.InstallUpgradeInstructions = nil
updateInput.UpdateDeployment.APIKey = nil
formatx.StructDumper().Dump("Deployment after update", updateInput.UpdateDeployment)
return &updateInput.UpdateDeployment
}

Expand Down

0 comments on commit 08ea6c5

Please sign in to comment.