Skip to content

Commit

Permalink
ci: debug pipeline
Browse files Browse the repository at this point in the history
Signed-off-by: Anish Ramasekar <anish.ramasekar@gmail.com>
  • Loading branch information
aramase committed Aug 16, 2023
1 parent 59b6a5f commit ee60f65
Show file tree
Hide file tree
Showing 2 changed files with 76 additions and 74 deletions.
144 changes: 72 additions & 72 deletions .pipelines/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,55 +18,55 @@ pr:
pool: staging-pool-amd64-mariner-2

jobs:
- job: scan_images
timeoutInMinutes: 30
workspace:
clean: all
steps:
- template: templates/scan-images.yaml
- job: lint
timeoutInMinutes: 30
workspace:
clean: all
steps:
- script: make lint
displayName: golangci-lint
- script: make helm-lint
displayName: helm lint
- script: |
go mod tidy
if ! git diff --exit-code go.mod go.sum; then
echo "go.mod/go.sum is not up to date. Please run 'go mod tidy'"
exit 1
fi
displayName: go mod tidy
- script: |
make manifests
if ! git diff --exit-code manifest_staging/; then
echo "manifest_staging/ is not up to date. Please run 'make manifests'"
exit 1
fi
displayName: make manifests
- job: unit_test
timeoutInMinutes: 30
workspace:
clean: all
steps:
- script: make test
displayName: Unit test
- job: shellcheck
timeoutInMinutes: 5
workspace:
clean: all
steps:
- script: make shellcheck
displayName: shellcheck
# - job: scan_images
# timeoutInMinutes: 30
# workspace:
# clean: all
# steps:
# - template: templates/scan-images.yaml
# - job: lint
# timeoutInMinutes: 30
# workspace:
# clean: all
# steps:
# - script: make lint
# displayName: golangci-lint
# - script: make helm-lint
# displayName: helm lint
# - script: |
# go mod tidy
# if ! git diff --exit-code go.mod go.sum; then
# echo "go.mod/go.sum is not up to date. Please run 'go mod tidy'"
# exit 1
# fi
# displayName: go mod tidy
# - script: |
# make manifests
# if ! git diff --exit-code manifest_staging/; then
# echo "manifest_staging/ is not up to date. Please run 'make manifests'"
# exit 1
# fi
# displayName: make manifests
# - job: unit_test
# timeoutInMinutes: 30
# workspace:
# clean: all
# steps:
# - script: make test
# displayName: Unit test
# - job: shellcheck
# timeoutInMinutes: 5
# workspace:
# clean: all
# steps:
# - script: make shellcheck
# displayName: shellcheck
- job:
timeoutInMinutes: 60
dependsOn:
- lint
- scan_images
- shellcheck
# dependsOn:
# - lint
# - scan_images
# - shellcheck
workspace:
clean: all
variables:
Expand All @@ -80,34 +80,34 @@ jobs:
- group: e2e-environment-variables
strategy:
matrix:
aks_windows_dockershim:
REGISTRY: upstream.azurecr.io/azure-workload-identity
WINDOWS_CLUSTER: "true"
GINKGO_SKIP: \[AKSSoakOnly\]
aks_windows_containerd:
REGISTRY: upstream.azurecr.io/azure-workload-identity
WINDOWS_CLUSTER: "true"
WINDOWS_CONTAINERD: "true"
GINKGO_SKIP: \[AKSSoakOnly\]
# aks_windows_dockershim:
# REGISTRY: upstream.azurecr.io/azure-workload-identity
# WINDOWS_CLUSTER: "true"
# GINKGO_SKIP: \[AKSSoakOnly\]
# aks_windows_containerd:
# REGISTRY: upstream.azurecr.io/azure-workload-identity
# WINDOWS_CLUSTER: "true"
# WINDOWS_CONTAINERD: "true"
# GINKGO_SKIP: \[AKSSoakOnly\]
aks_linux:
REGISTRY: upstream.azurecr.io/azure-workload-identity
GINKGO_SKIP: \[AKSSoakOnly\]
kind_v1_24_12:
KIND_NODE_VERSION: v1.24.12
LOCAL_ONLY: "true"
TEST_HELM_CHART: "true"
kind_v1_25_8:
KIND_NODE_VERSION: v1.25.8
LOCAL_ONLY: "true"
TEST_HELM_CHART: "true"
kind_v1_26_3:
KIND_NODE_VERSION: v1.26.3
LOCAL_ONLY: "true"
TEST_HELM_CHART: "true"
kind_v1_27_1:
KIND_NODE_VERSION: v1.27.1
LOCAL_ONLY: "true"
TEST_HELM_CHART: "true"
# kind_v1_24_12:
# KIND_NODE_VERSION: v1.24.12
# LOCAL_ONLY: "true"
# TEST_HELM_CHART: "true"
# kind_v1_25_8:
# KIND_NODE_VERSION: v1.25.8
# LOCAL_ONLY: "true"
# TEST_HELM_CHART: "true"
# kind_v1_26_3:
# KIND_NODE_VERSION: v1.26.3
# LOCAL_ONLY: "true"
# TEST_HELM_CHART: "true"
# kind_v1_27_1:
# KIND_NODE_VERSION: v1.27.1
# LOCAL_ONLY: "true"
# TEST_HELM_CHART: "true"
steps:
- script: echo "##vso[task.setvariable variable=CLUSTER_NAME]azwi-e2e-$(openssl rand -hex 2)"
displayName: Set CLUSTER_NAME
Expand Down
6 changes: 4 additions & 2 deletions scripts/ci-e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,10 @@ cleanup() {
trap cleanup EXIT

main() {
az login -i > /dev/null && echo "Using machine identity for az commands" || echo "Using pre-existing credential for az commands"
az account set --subscription "${AZURE_SUBSCRIPTION_ID}" > /dev/null
az login -i
az account set --subscription "${AZURE_SUBSCRIPTION_ID}"
# az login -i > /dev/null && echo "Using machine identity for az commands" || echo "Using pre-existing credential for az commands"
# az account set --subscription "${AZURE_SUBSCRIPTION_ID}" > /dev/null

create_cluster
make deploy
Expand Down

0 comments on commit ee60f65

Please sign in to comment.