Commit graph

103 commits

Author SHA1 Message Date
ScriptAutomate
38faa6806b
Migrate to new internal pypi proxy 2024-05-29 10:27:06 -05:00
Pedro Algarvio
1d21028471 Fix description when rsync'ing from the VM to the local checkout 2024-05-09 16:39:56 +01:00
Pedro Algarvio
6592ccba52 Create get_cicd_shared_context() and get_golden_images() 2024-03-28 13:41:54 +00:00
Pedro Algarvio
3dea2eb541 Update pre-commit hook versions 2024-02-29 10:16:58 +00:00
Pedro Algarvio
b9be2dec1b Update and remove obsolete pylint plugins 2024-02-27 08:07:04 +00:00
Pedro Algarvio
20fd342182 Only show system information.
The test plan was always wrong due to the kind of test selection that
was done.

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2024-01-25 08:15:23 +00:00
Pedro Algarvio
487a1ad3d0 Be sure to raise the RuntimeError's in the CI context
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2024-01-24 14:43:15 +00:00
Pedro Algarvio
9c5ea5a324 Reduce GitHub Actions cache usage
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2024-01-04 15:11:37 -07:00
Pedro Algarvio
baa5858c03 Make sure that the package artifacts are uploaded to VMs
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-12-12 15:29:41 -07:00
Megan Wilhite
d453007a8f Migrate package tests to the main test suite 2023-12-12 15:29:41 -07:00
Pedro Algarvio
185a352d00 Update the tools requirements
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-11-23 08:44:35 +00:00
Pedro Algarvio
02b147ae59 Add a FIPS enabled test run under PhotonOS 4 to the CI process
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-11-14 20:42:57 +00:00
Pedro Algarvio
2b142dc81b Update tools/vm.py 2023-11-09 17:25:00 +00:00
Megan Wilhite
404a659a39 Add download flag to tool's rsync cmd 2023-11-09 17:25:00 +00:00
twangboy
07bb453204 Fix test_get_yum_config 2023-11-08 18:07:30 +00:00
twangboy
5e50ccf31c Fix rsync on Windows using cwRsync 2023-11-08 18:07:30 +00:00
Pedro Algarvio
5242d44474 Reduce code duplication and some code coverage reporting improvements
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-10-07 08:37:06 +01:00
Pedro Algarvio
a7bcc6f90a Log in which environment the developer VM is getting created
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-10-04 20:54:42 +01:00
Pedro Algarvio
c12bbd1995 Fix the security groups selection for developer created VMs
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-10-04 20:54:42 +01:00
Pedro Algarvio
4b02270161 Create the XML coverage reports using the onedir
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-09-30 18:36:40 +01:00
Pedro Algarvio
309829e5e3 Set and make use of the TOOLS_DISTRO_SLUG environment variable in CI
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-09-29 16:12:59 +01:00
Pedro Algarvio
d53eff39fd On VMs, use Salt's onedir to combine code coverage
And newer Python versions where we don't want to download the onedir

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-09-29 16:12:59 +01:00
Pedro Algarvio
313264bbe0 Disable password authentication
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-09-29 16:12:59 +01:00
Pedro Algarvio
29a57d2d32 Generate the XML code coverage reports before trying to use them
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-09-26 20:57:49 +01:00
Pedro Algarvio
d35ff0a9a0 If the IP address that is on file doesn't match, write the file again
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-09-25 17:26:12 +01:00
Pedro Algarvio
be09ff0c92 Continue using the old Windows AMIs
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-09-25 17:26:12 +01:00
Pedro Algarvio
96e59557ef Update to latest golden images
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-09-25 17:26:12 +01:00
MKLeb
253eb49eae Terminating 2023-09-11 21:41:05 +01:00
MKLeb
bc3d04d207 Add support for removing corrupted cache entries in tools vm sync-cache 2023-09-11 21:41:05 +01:00
Pedro Algarvio
5ed925ea5e Use the VM slug as the code coverage default context
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-08-31 17:32:01 +00:00
Pedro Algarvio
aa34a59dad Check the existence of the file before trying to read from it
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-08-24 16:29:00 +01:00
MKLeb
3f3610f670 Add docs explaining key name in environment 2023-08-04 21:24:53 +01:00
MKLeb
a98d31775f Allow setting the key name using an environment variable 2023-08-04 21:24:53 +01:00
Pedro Algarvio
897360029e Starting VM's on developer machines now requires VPN access
Choose the `prod` or `test` VPN depending on what kind of environment is
being targeted.

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-07-28 10:58:38 +01:00
MKLeb
4e90e0e7fe Add --delete option to tools vm sync-cache to force the user to know that they are deleting cache entries that are no longer valid 2023-07-19 12:45:04 +01:00
MKLeb
86719a68b5 Add sync-cache command to make the stored state of the machine match up to what ec2 has for all running machines 2023-07-19 12:45:04 +01:00
MKLeb
6d5e8ce887 Add states filtering 2023-07-19 12:45:04 +01:00
MKLeb
a73e73e74b Add tools vm list command 2023-07-19 12:45:04 +01:00
Pedro Algarvio
f4af592400 Sometimes the first page does not have any results. Try next page if there's a next token.
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-05-22 18:40:56 +01:00
Pedro Algarvio
f6188fddfc Handle stale cache
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-05-05 10:11:18 +01:00
Pedro Algarvio
faaddc0d0e Don't wait for the whole vm destroy process to complete.
Just confirm it started and exit.

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-04-14 15:46:15 -07:00
Pedro Algarvio
e2374a9f1d Run windows package download tests from a bastion VM
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-03-29 11:37:08 -07:00
Pedro Algarvio
88f945598f Fix symlinks when decompressing instead of replacing them when compressing dependencies
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-03-29 11:37:08 -07:00
Pedro Algarvio
f2121b9a10 Adjust bucket names depending on the salt project bot environment we're in
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-03-12 15:19:38 +00:00
Pedro Algarvio
af5e2e3390 Try to get the VM environment from the instance tags
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-03-08 23:48:54 +00:00
Megan Wilhite
bdbe9cfde4 Set PYTHONUTF8 for everything except icacls command 2023-02-28 15:27:46 +00:00
Twangboy
5d31b7e824 Handle the MSI installer starting the salt-minion
It's not supposed to start the salt-minion when
START_MINION="" is passed
2023-02-28 15:27:46 +00:00
Twangboy
0c91f8bb1c Maybe this will get the MSI to install... 2023-02-28 15:27:46 +00:00
Twangboy
cdd5065667 We only need to reset inheritance 2023-02-28 15:27:46 +00:00
Twangboy
2a48eb1b76 We only need to reset inheritance 2023-02-28 15:27:46 +00:00