Skip to content
This repository was archived by the owner on Jul 11, 2023. It is now read-only.

feat(Windows): Add Windows nightly job #4117

Merged
merged 1 commit into from
Sep 16, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .github/workflows/windows-nightly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Windows Nightly Job
on:
workflow_run:
workflows: ["Windows Images"]
types: [completed]

env:
CTR_REGISTRY: openservicemesh
CTR_TAG: latest-main

jobs:
test:
name: Windows Cluster Nightly Job
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- name: Checkout v2
uses: actions/checkout@v2
- name: Authenticate and set context
uses: azure/k8s-set-context@v1
with:
method: kubeconfig
kubeconfig: ${{ secrets.CI_WINDOWS_KUBECONFIG }}
id: setcontext
- name: Setup Go 1.16
uses: actions/setup-go@v1
with:
go-version: 1.16
- name: Run e2es
run: |
make build-osm
go test ./tests/e2e -test.v -ginkgo.v -ginkgo.progress -ginkgo.focus='\[Cross-platform\]|\[windows\]' -test.timeout 180m -deployOnWindowsWorkers=true
- name: Cleanup resources
if: ${{ always() }}
run: |
kubectl delete service vault -n osm-system --ignore-not-found --wait
1 change: 1 addition & 0 deletions tests/e2e/e2e_egress_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ var _ = OSMDescribe("HTTP and HTTPS Egress",
OSMDescribeInfo{
Tier: 1,
Bucket: 2,
OS: OSCrossPlatform,
},
func() {
Context("Egress", func() {
Expand Down
2 changes: 1 addition & 1 deletion tests/framework/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ var _ = AfterSuite(func() {
})

func (o OSMDescribeInfo) String() string {
return fmt.Sprintf("[Tier %d][Bucket %d]", o.Tier, o.Bucket)
return fmt.Sprintf("[Tier %d][Bucket %d][%s]", o.Tier, o.Bucket, o.OS)
}

// OSMDescribe givens the description of an e2e test
Expand Down
6 changes: 6 additions & 0 deletions tests/framework/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ import (
"github.com/openservicemesh/osm/pkg/gen/client/policy/clientset/versioned"
)

// OSCrossPlatform indicates that a test can run on all operating systems.
const OSCrossPlatform string = "Cross-platform"

// OSMDescribeInfo is a struct to represent the Tier and Bucket of a given e2e test
type OSMDescribeInfo struct {
// Tier represents the priority of the test. Lower value indicates higher priority.
Expand All @@ -19,6 +22,9 @@ type OSMDescribeInfo struct {
// Bucket indicates in which test Bucket the test will run in for CI. Each
// Bucket is run in parallel while tests in the same Bucket run sequentially.
Bucket int

// OS indicates which OS the test can run on.
OS string
}

// InstallType defines several OSM test deployment scenarios
Expand Down