Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Envoy Integration Test Windows #18007

Merged
merged 290 commits into from
Jul 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
290 commits
Select commit Hold shift + click to select a range
35aab92
[CONSUL-395] Update check_hostport and Usage (#40)
joselo85 Sep 2, 2022
32fce35
[CONSUL-397] Copy envoy binary from Image (#41)
cocolavayen Sep 2, 2022
95d2f3c
[CONSUL-382] Support openssl in unique test dockerfile (#43)
iberlot Sep 5, 2022
80d6b6b
[CONSUL-405] Add bats to single container (#44)
iberlot Sep 7, 2022
7424ee7
[CONSUL-414] Run Prometheus Test Cases and Validate Changes (#46)
joselo85 Sep 7, 2022
b3ad08e
[CONSUL-410] Run Jaeger in Single container (#45)
cocolavayen Sep 8, 2022
0fe262f
[CONSUL-412] Run test-sds-server in single container (#48)
cocolavayen Sep 8, 2022
c917215
[CONSUL-408] Clean containers (#47)
iberlot Sep 8, 2022
e606698
[CONSUL-384] Rebase and sync fork (#50)
ezfepo Sep 9, 2022
56c677a
[CONSUL-415] Create Scenarios Troubleshooting Docs (#49)
joselo85 Sep 9, 2022
0ea0a79
[CONSUL-417] Update Docs Single Container (#51)
joselo85 Sep 9, 2022
146347f
[CONSUL-428] Add Socat to single container (#54)
joselo85 Sep 13, 2022
2a3b325
[CONSUL-424] Replace pkill in kill_envoy function (#52)
ezfepo Sep 13, 2022
45f272e
[CONSUL-434] Modify Docker run functions in Helper script (#53)
cocolavayen Sep 13, 2022
9877322
[CONSUL-435] Replace docker run in set_ttl_check_state & wait_for_age…
cocolavayen Sep 13, 2022
de41910
[CONSUL-438] Add netcat (nc) in the Single container Dockerfile (#56)
ezfepo Sep 14, 2022
8b247ad
[CONSUL-429] Replace Docker run with Docker exec (#57)
joselo85 Sep 14, 2022
460fe8a
[CONSUL-436] Curl timeout and run tests (#58)
cocolavayen Sep 14, 2022
7b10dde
[CONSUL-443] Create dogstatsd Function (#59)
joselo85 Sep 14, 2022
bbae5a9
[CONSUL-431] Update Docs Netcat (#60)
joselo85 Sep 15, 2022
e0d981a
[CONSUL-439] Parse nc Command in function (#61)
joselo85 Sep 16, 2022
f0e2b44
[CONSUL-463] Review curl Exec and get_ca_root Func (#63)
joselo85 Sep 20, 2022
febc362
[CONSUL-453] Docker hostname in Helper functions (#64)
cocolavayen Sep 20, 2022
ca3c608
[CONSUL-461] Test wipe volumes without extra cont (#66)
joselo85 Sep 21, 2022
85e9033
[CONSUL-454] Check ports in the Server and Agent containers (#65)
cocolavayen Sep 21, 2022
0a01500
[CONSUL-441] Update windows dockerfile with version (#62)
ezfepo Sep 22, 2022
80bfa8d
[CONSUL-466] Review case-grpc Failing Test (#67)
joselo85 Sep 23, 2022
b39f73f
[CONSUL-494] Review case-cfg-resolver-svc-failover (#68)
joselo85 Sep 28, 2022
99a3b55
[CONSUL-496] Replace docker_wget & docker_curl (#69)
joselo85 Sep 28, 2022
6e3abfe
[CONSUL-499] Cleanup Scripts - Remove nanoserver (#70)
joselo85 Sep 28, 2022
6fb32db
[CONSUL-500] Update Troubleshooting Docs (#72)
joselo85 Sep 29, 2022
6b11b09
[CONSUL-502] Pull & Tag Envoy Windows Image (#73)
joselo85 Sep 30, 2022
6203d36
[CONSUL-504] Replace docker run in docker_consul (#76)
joselo85 Oct 4, 2022
0d2b19a
[CONSUL-505] Change admin_bind
joselo85 Oct 4, 2022
0db9f45
[CONSUL-399] Update envoy to 1.23.1 (#78)
ezfepo Oct 6, 2022
13a5b09
[CONSUL-510] Support case-wanfed-gw on Windows (#79)
joselo85 Oct 6, 2022
895f2dc
[CONSUL-506] Update troubleshooting Documentation (#80)
joselo85 Oct 7, 2022
8c2ffcb
[CONSUL-512] Review debug_dump_volumes Function (#81)
joselo85 Oct 11, 2022
9c96f80
[CONSUL-514] Add zipkin to Docker Image (#82)
joselo85 Oct 13, 2022
c0210e5
[CONSUL-515] Update Documentation (#83)
joselo85 Oct 13, 2022
3243d6e
[CONSUL-529] Support case-consul-exec (#86)
joselo85 Oct 25, 2022
10f2643
[CONSUL-530] Update Documentation (#87)
joselo85 Oct 28, 2022
bd255c6
[CONSUL-530] Update default consul version 1.13.3
ezfepo Nov 2, 2022
6af2f31
[CONSUL-539] Cleanup (#91)
joselo85 Nov 10, 2022
b9bae6f
[CONSUL-546] Scripts Clean-up (#92)
joselo85 Nov 11, 2022
0a4c136
[CONSUL-491] Support admin_access_log_path value for Windows (#71)
cocolavayen Sep 30, 2022
5e0bec2
[CONSUL-519] Implement mkfifo Alternative (#84)
joselo85 Oct 19, 2022
41c02a0
[CONSUL-542] Create OS Specific Files for Envoy Package (#88)
joselo85 Nov 9, 2022
c592e5d
[CONSUL-543] Create exec_supported.go (#89)
joselo85 Nov 9, 2022
ace9e37
[CONSUL-544] Test and Build Changes (#90)
joselo85 Nov 10, 2022
7fab79f
Implement os.DevNull
joselo85 Nov 16, 2022
6b1fea5
fix merge conflict main
absolutelightning Jun 13, 2023
4b2fc2d
using mmap instead of disk files
absolutelightning Jun 13, 2023
13e5433
Merge branch 'main' into southworks/qa-consul
absolutelightning Jun 13, 2023
906aaa2
fix import in exec-unix
absolutelightning Jun 13, 2023
2a70c2f
fix nmap open too many arguemtn
absolutelightning Jun 19, 2023
fb1fd8e
go fmt on file
absolutelightning Jun 19, 2023
45f6f2a
changelog file
absolutelightning Jun 19, 2023
aec2a20
Merge branch 'main' into southworks/qa-consul
absolutelightning Jun 19, 2023
4ab3bdb
fix go mod
absolutelightning Jun 19, 2023
aad0dab
Merge branch 'southworks/qa-consul' of ssh://github.com/hashicorp/con…
absolutelightning Jun 19, 2023
4d62ffc
Update .changelog/17694.txt
absolutelightning Jun 21, 2023
55dba95
different mmap library
absolutelightning Jun 21, 2023
d0713f0
fix bootstrap json
absolutelightning Jun 27, 2023
dcd801b
some fixes
absolutelightning Jun 27, 2023
027819e
chocolatey version fix and image fix
absolutelightning Jun 27, 2023
6b0a813
using different library
absolutelightning Jun 28, 2023
6be9fcf
Merge branch 'southworks/qa-consul' of ssh://github.com/hashicorp/con…
absolutelightning Jun 28, 2023
27073a4
fix Map funciton call
absolutelightning Jun 28, 2023
b4cf245
fix mmap call
absolutelightning Jun 28, 2023
f6424ab
Merge branch 'main' into southworks/qa-consul
absolutelightning Jun 28, 2023
a6a11f4
fix tcp dump
absolutelightning Jun 28, 2023
15c5bf1
fix tcp dump
absolutelightning Jun 28, 2023
f30a676
windows tcp dump
absolutelightning Jun 28, 2023
5e7b004
Fix docker run
absolutelightning Jun 28, 2023
b72a5d8
merge conf resolve
absolutelightning Jun 28, 2023
0aa9052
fix tests
absolutelightning Jun 28, 2023
c6aca86
Merge branch 'main' into southworks/qa-consul
absolutelightning Jun 28, 2023
05b3fbd
fix go mod
absolutelightning Jun 28, 2023
1388115
Merge branch 'main' into southworks/qa-consul
absolutelightning Jun 29, 2023
0f28516
fix version 16.0
absolutelightning Jun 29, 2023
dd64fa8
fix version
absolutelightning Jun 29, 2023
01ab9bc
fix version dev
absolutelightning Jun 29, 2023
9774854
sleep to debug
absolutelightning Jun 29, 2023
06e9816
fix sleep
absolutelightning Jun 29, 2023
84006e7
fix permission issue
absolutelightning Jun 30, 2023
7a58e5a
fix permission issue
absolutelightning Jun 30, 2023
8a0f2a1
fix permission issue
absolutelightning Jun 30, 2023
5e24590
fix command
absolutelightning Jun 30, 2023
501a7e3
fix command
absolutelightning Jun 30, 2023
01e762b
fix funciton
absolutelightning Jun 30, 2023
a067d3e
fix assert config entry status command not found
absolutelightning Jun 30, 2023
5541de6
fix command not found assert_cert_has_cn
absolutelightning Jun 30, 2023
2456fc7
fix command not found assert_upstream_missing
absolutelightning Jun 30, 2023
b0d2788
fix command not found assert_upstream_missing_once
absolutelightning Jun 30, 2023
5e2b59a
fix command not found get_upstream_endpoint
absolutelightning Jun 30, 2023
7efe1f8
fix command not found get_envoy_public_listener_once
absolutelightning Jun 30, 2023
448b65e
fix command not found
absolutelightning Jun 30, 2023
5a283e1
fix test cases
absolutelightning Jul 3, 2023
3a95de8
windows integration test workflow github
absolutelightning Jul 3, 2023
7a0b163
made code similar to unix using npipe
absolutelightning Jul 3, 2023
cd3e7ae
Merge branch 'southworks/qa-consul' of ssh://github.com/hashicorp/con…
absolutelightning Jul 3, 2023
fd4ceed
fix go.mod
absolutelightning Jul 3, 2023
fd75fb7
fix dialing of npipe
absolutelightning Jul 3, 2023
f500139
dont wait
absolutelightning Jul 3, 2023
74de240
Merge branch 'main' into southworks/qa-consul
absolutelightning Jul 3, 2023
796a88a
check size of written json
absolutelightning Jul 4, 2023
a39760a
fix undefined n
absolutelightning Jul 4, 2023
baa84b7
running
absolutelightning Jul 4, 2023
3dfa8b5
fix dep
absolutelightning Jul 4, 2023
568c2ac
fix syntax error
absolutelightning Jul 4, 2023
a78775d
fix workflow file
absolutelightning Jul 4, 2023
ed30a7f
windows runner
absolutelightning Jul 4, 2023
65eb7e2
fix runner
absolutelightning Jul 4, 2023
1d5847f
fix from json
absolutelightning Jul 4, 2023
a14ae01
fix runs on
absolutelightning Jul 4, 2023
2a51cc2
merge connect envoy
absolutelightning Jul 4, 2023
b67a9f1
merge connect envoy
absolutelightning Jul 4, 2023
a85e66b
fix cin path
absolutelightning Jul 4, 2023
efa3a71
build
absolutelightning Jul 4, 2023
a80fbb8
fix file name
absolutelightning Jul 4, 2023
6c6f8c9
fix file name
absolutelightning Jul 4, 2023
53eb664
fix dev build
absolutelightning Jul 4, 2023
98521cb
remove unwanted code
absolutelightning Jul 4, 2023
e9bba5e
fix upload
absolutelightning Jul 4, 2023
86ff6f8
fix bin name
absolutelightning Jul 4, 2023
54cfc37
fix path
absolutelightning Jul 4, 2023
dba8033
checkout current branch
absolutelightning Jul 4, 2023
6c23ba9
fix path
absolutelightning Jul 4, 2023
0bb1b0f
fix tests
absolutelightning Jul 4, 2023
cbc7b88
fix shell bash for windows sh files
absolutelightning Jul 4, 2023
3554901
fix permission of run-test.sh
absolutelightning Jul 4, 2023
75092d9
removed docker dev
absolutelightning Jul 4, 2023
4664f40
added shell bash for tests
absolutelightning Jul 4, 2023
ce97da4
fix tag
absolutelightning Jul 4, 2023
9c20841
fix win=true
absolutelightning Jul 4, 2023
ea393ae
fix cd
absolutelightning Jul 4, 2023
61140d9
added dev
absolutelightning Jul 4, 2023
55e8a65
fix variable undefined
absolutelightning Jul 4, 2023
ff40319
removed failing tests
absolutelightning Jul 4, 2023
5db77f6
fix tcp dump image
absolutelightning Jul 4, 2023
8808d80
fix curl
absolutelightning Jul 4, 2023
65f08bc
fix curl
absolutelightning Jul 4, 2023
b467a1e
tcp dump path
absolutelightning Jul 4, 2023
3b88c20
fix tcpdump path
absolutelightning Jul 5, 2023
14fc691
fix curl
absolutelightning Jul 5, 2023
039eb20
fix curl install
absolutelightning Jul 5, 2023
3e6fa74
stop removing intermediate containers
absolutelightning Jul 5, 2023
e898bc7
fix tcpdump docker image
absolutelightning Jul 5, 2023
c86a54f
revert -rm
absolutelightning Jul 5, 2023
973cc17
--rm=false
absolutelightning Jul 5, 2023
ab0056c
makeing docker image before
absolutelightning Jul 5, 2023
a99956b
fix tcpdump
absolutelightning Jul 5, 2023
00b5dc4
removed case consul exec
absolutelightning Jul 5, 2023
b4718af
removed terminating gateway simple
absolutelightning Jul 5, 2023
66e60ef
comment case wasm
absolutelightning Jul 5, 2023
156d6b5
removed data dog
absolutelightning Jul 5, 2023
f612f1e
comment out upload coverage
absolutelightning Jul 5, 2023
efe6893
uncomment case-consul-exec
absolutelightning Jul 10, 2023
08c2b7f
comment case consul exec
absolutelightning Jul 10, 2023
46ed0d3
Merge branch 'main' of ssh://github.com/hashicorp/consul into fix-sw-qa
absolutelightning Jul 10, 2023
864f435
if always
absolutelightning Jul 10, 2023
7228e73
logs
absolutelightning Jul 10, 2023
b7a0baa
using consul 1.17.0
absolutelightning Jul 10, 2023
dfd5fd8
fix quotes
absolutelightning Jul 10, 2023
6f525be
revert quotes
absolutelightning Jul 10, 2023
88b1cac
redirect to dev null
absolutelightning Jul 10, 2023
4d527cf
Revert version
absolutelightning Jul 10, 2023
30d43cc
revert consul connect
absolutelightning Jul 10, 2023
a634f98
fix version
absolutelightning Jul 10, 2023
27a2763
removed envoy connect
absolutelightning Jul 10, 2023
d919f98
not using function
absolutelightning Jul 10, 2023
e894290
change log
absolutelightning Jul 10, 2023
0ebe3e9
Merge branch 'main' into fix-sw-qa
absolutelightning Jul 10, 2023
4c38203
docker logs
absolutelightning Jul 11, 2023
ee16417
fix logs
absolutelightning Jul 11, 2023
abcce53
restructure bad authz
absolutelightning Jul 11, 2023
3b4f710
rmeoved dev null
absolutelightning Jul 11, 2023
e32f09b
output
absolutelightning Jul 11, 2023
5a17b04
fix file descriptor
absolutelightning Jul 11, 2023
010e398
fix cacert
absolutelightning Jul 11, 2023
3351f86
fix cacert
absolutelightning Jul 11, 2023
7c26d39
fix ca cert
absolutelightning Jul 11, 2023
f012738
cacert does not work in windows curl
absolutelightning Jul 11, 2023
a9ede5a
fix func
absolutelightning Jul 11, 2023
d986ca1
removed docker logs
absolutelightning Jul 11, 2023
f718fdf
added sleep
absolutelightning Jul 11, 2023
8b634bb
fix tls
absolutelightning Jul 11, 2023
9434d03
commented case-consul-exec
absolutelightning Jul 11, 2023
5570b68
removed echo
absolutelightning Jul 11, 2023
0c6b7bc
retry docker consul
absolutelightning Jul 11, 2023
e7b064b
fix upload bin
absolutelightning Jul 11, 2023
ed283ea
uncomment consul exec
absolutelightning Jul 11, 2023
abc6fef
copying consul.exe to docker image
absolutelightning Jul 11, 2023
85c34ba
copy fix
absolutelightning Jul 11, 2023
d32dab2
fix paths
absolutelightning Jul 11, 2023
e5a3353
fix path
absolutelightning Jul 11, 2023
bc8653c
github workspace path
absolutelightning Jul 11, 2023
5a7d7b8
latest version
absolutelightning Jul 11, 2023
e8fc4f2
Revert "latest version"
absolutelightning Jul 11, 2023
fe716dd
commented consul exec
absolutelightning Jul 11, 2023
740b705
added ssl revoke best effort
absolutelightning Jul 12, 2023
977146a
revert best effort
absolutelightning Jul 12, 2023
13d9bb1
removed unused files
absolutelightning Jul 12, 2023
125d5f3
rename var name and change dir
absolutelightning Jul 13, 2023
a2c660b
windows runner
absolutelightning Jul 13, 2023
c607aab
permission
absolutelightning Jul 13, 2023
6196d94
needs setup fix
absolutelightning Jul 13, 2023
dad5af9
swtich to github runner
absolutelightning Jul 14, 2023
4d6bbe0
fix file path
absolutelightning Jul 15, 2023
c0bf4af
fix path
absolutelightning Jul 16, 2023
521482b
fix path
absolutelightning Jul 16, 2023
ef77e26
fix path
absolutelightning Jul 16, 2023
be841f7
fix path
absolutelightning Jul 16, 2023
7d3cbb8
fix path
absolutelightning Jul 16, 2023
a5166a8
fix build paths
absolutelightning Jul 16, 2023
27e0193
fix tag
absolutelightning Jul 16, 2023
cfda6f9
nightly runs
absolutelightning Jul 17, 2023
c3dd27f
added matrix in github workflow, renamed files
absolutelightning Jul 19, 2023
6e6a00d
fix job
absolutelightning Jul 19, 2023
8a85990
fix matrix
absolutelightning Jul 19, 2023
8864711
removed brackes
absolutelightning Jul 19, 2023
775f92f
from json
absolutelightning Jul 19, 2023
4a9350c
without using job matrix
absolutelightning Jul 19, 2023
821a082
fix quotes
absolutelightning Jul 19, 2023
93064f2
revert job matrix
absolutelightning Jul 19, 2023
642b519
fix workflow
absolutelightning Jul 19, 2023
33b732f
fix comment
absolutelightning Jul 19, 2023
767bed2
added comment
absolutelightning Jul 19, 2023
02ea08e
nightly runs
absolutelightning Jul 19, 2023
ab44712
Merge branch 'main' into fix-sw-qa
absolutelightning Jul 19, 2023
bb9493c
removed datadog ci as it is already measured in linux one
absolutelightning Jul 19, 2023
56576b3
Merge branch 'fix-sw-qa' of ssh://github.com/hashicorp/consul into fi…
absolutelightning Jul 19, 2023
7013d15
running test
absolutelightning Jul 19, 2023
2dbd65a
Revert "running test"
absolutelightning Jul 19, 2023
0f4039f
pr comment fixes
absolutelightning Jul 20, 2023
d8b7645
running test now
absolutelightning Jul 20, 2023
c0835b2
running subset of test
absolutelightning Jul 20, 2023
2724efe
running subset of test
absolutelightning Jul 20, 2023
7a33093
job matrix
absolutelightning Jul 20, 2023
071df6e
shell bash
absolutelightning Jul 20, 2023
a47c1ae
removed bash shell
absolutelightning Jul 20, 2023
dcd8896
linux machine for job matrix
absolutelightning Jul 20, 2023
d7ac1a6
fix output
absolutelightning Jul 20, 2023
56d4415
added cat to debug
absolutelightning Jul 20, 2023
36188e7
using ubuntu latest
absolutelightning Jul 20, 2023
1a8ab97
fix job matrix
absolutelightning Jul 20, 2023
7117fb0
fix win true
absolutelightning Jul 20, 2023
ac48b38
fix go test
absolutelightning Jul 20, 2023
22f9c9e
revert job matrix
absolutelightning Jul 20, 2023
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
3 changes: 3 additions & 0 deletions .changelog/18007.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:improvement
Windows: Integration tests for Consul Windows VMs
```
26 changes: 26 additions & 0 deletions .github/scripts/get_runner_classes_windows.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/usr/bin/env bash
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

#
# This script generates tag-sets that can be used as runs-on: values to select runners.

set -euo pipefail

case "$GITHUB_REPOSITORY" in
*-enterprise)
# shellcheck disable=SC2129
echo "compute-small=['self-hosted', 'windows', 'small']" >> "$GITHUB_OUTPUT"
echo "compute-medium=['self-hosted', 'windows', 'medium']" >> "$GITHUB_OUTPUT"
echo "compute-large=['self-hosted', 'windows', 'large']" >> "$GITHUB_OUTPUT"
# m5d.8xlarge is equivalent to our xl custom runner in OSS
echo "compute-xl=['self-hosted', 'ondemand', 'windows', 'type=m5d.8xlarge']" >> "$GITHUB_OUTPUT"
;;
*)
# shellcheck disable=SC2129
echo "compute-small=['windows-2019']" >> "$GITHUB_OUTPUT"
echo "compute-medium=['windows-2019']" >> "$GITHUB_OUTPUT"
echo "compute-large=['windows-2019']" >> "$GITHUB_OUTPUT"
echo "compute-xl=['windows-2019']" >> "$GITHUB_OUTPUT"
;;
esac
47 changes: 47 additions & 0 deletions .github/workflows/reusable-dev-build-windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: reusable-dev-build-windows

on:
workflow_call:
inputs:
uploaded-binary-name:
required: false
type: string
default: "consul.exe"
runs-on:
description: An expression indicating which kind of runners to use.
required: true
type: string
repository-name:
required: true
type: string
go-arch:
required: false
type: string
default: ""
secrets:
elevated-github-token:
required: true
jobs:
build:
runs-on: 'windows-2019'
steps:
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
# NOTE: This step is specifically needed for ENT. It allows us to access the required private HashiCorp repos.
- name: Setup Git
if: ${{ endsWith(inputs.repository-name, '-enterprise') }}
run: git config --global url."https://${{ secrets.elevated-github-token }}:@github.com".insteadOf "https://github.com"
- uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1
with:
go-version-file: 'go.mod'
- name: Build
env:
GOARCH: ${{ inputs.goarch }}
run: go build .
# save dev build to pass to downstream jobs
- uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
with:
name: ${{inputs.uploaded-binary-name}}
path: consul.exe
- name: Notify Slack
if: ${{ failure() }}
run: .github/scripts/notify_slack.sh
Loading