Commit 0168b90
authored
Offline GitHub workflow (#733)
* Adds the offline workflow to the GitHub Actions pipeline
* Uses the branch name from the pull request or the branch name from the commit
* Allow traffic between u1 and u2
* Blocks all outbound traffic from u2 except for SSH
* Prepares offline resources on u1 before copying the tarball to u2
* Finds the offline tarball on u1 before copying it to u2
* Build the u2 Azure instance at the same time as the u1 instance
* Don't clean up azure resources in offline workflow
* Add wait for SSH to be ready to offline workflow
* Wait for outbound connectivity to be blocked in u2
* Run LME installer on u2 in offline workflow
* Runs LME installer on u2 in offline workflow with non-interactive mode
* Brings the u2 server back online to run the tests
* Runs apt-get on the u2 server before installing the test requirements
* Installs python to run the tests on the u2 server
* Removes the servers at the end of the workflow
* Stop cleanup of Azure resources for debugging
* Installs python3-venv on the u2 server
* Put the servers both in the same VNet and subnet and block all outbound traffic from the offline server.
* Fixes the password generator to output 12 characters.
* Prepares and runs the tests with the server that is online
* Sets up the Windows server to be used for the offline tests.
* Disown the HTTP server process to avoid hanging the workflow.
* Allows inbound traffic from VNet to u1 (for HTTP server on port 8080)
* Uses SCP to copy the tarball from u1 to w1.
* Generates an SSH key with no passphrase on w1
* Uses the SSH key generated on w1 to copy the tarball from u1 to w1
* Using a different method to generate the SSH key on w1
* Moves the key generation step to earlier in the workflow
* Escapes the empty passphrase in the PowerShell script
* Escapes the empty passphrase in the PowerShell script
* Installs the Elastic Agent on w1
* Run the end to end tests on the offline VM
* Uncommented pull_request triggers for all workflows1 parent 3778515 commit 0168b90
File tree
4 files changed
+708
-12
lines changed- .github/workflows
- testing/v2/installers/azure
4 files changed
+708
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
6 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
306 | 307 | | |
307 | 308 | | |
308 | 309 | | |
309 | | - | |
| 310 | + | |
310 | 311 | | |
311 | 312 | | |
312 | 313 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| |||
0 commit comments