Граф коммитов

379 Коммитов

Автор SHA1 Сообщение Дата
Tony Schneider b9446b5672 remove trailing whitespace 2024-06-17 13:20:42 -05:00
Tony Schneider 49db8b5e9f delete acr-credentials.json 2024-06-17 13:20:42 -05:00
Tony Schneider a4794ce154 fix copy/paste error 2024-06-17 13:20:42 -05:00
Tony Schneider b5795e460f update aro-classic-e2e to use generated acr credentials 2024-06-17 13:20:42 -05:00
Tony Schneider 51dffba27f use pipeline variable to set SECRET_SA_ACCOUNT_NAME 2024-06-17 13:20:42 -05:00
Arris Li 6d27d26ff0 bump go version to 1.20.12 2024-04-29 19:47:35 +12:00
Amber Brown 867b0d5979
Load the app/SP from the environment instead of automatically creating it (#3498)
* use multierror here, so it's more obvious if we're missing multiple keys

* Ignore the written out clusterapp.env

* move create/delete into separate commands, which write out a clusterapp.env file

* delete the app in the e2e.sh file

* update the docs
2024-04-08 08:06:53 +10:00
Amber Brown ed94c28346
Update to Go 1.20 (#3429)
* Go 1.20 changes

* go 1.20 does not need the seed randomised by default

* go generate
2024-03-05 18:18:36 +11:00
Amber Brown b6e1b07fe8
Use another method of FIPS validation (fips-detect) (#3363)
* Use another method of FIPS validation (fips-detect)
2024-02-01 13:21:34 +11:00
cadenmarchese fe32083726 use aro-must-gather for CI 2023-12-15 14:16:17 -05:00
Amber Brown b21cc048e5
Get to the bottom of the e2e admin portal failure (#3168)
* save screenshots more consistently, update to be more BDD

* save the html too

* fix?

* I think there's a race condition here -- use eventually to work around it

* Update admin_portal.go
2023-09-19 16:53:28 -04:00
Christoph Blecker a96312fdf4
Remove unneeded codeql template 2023-08-17 13:46:18 -07:00
Christoph Blecker 9c844e80ed
Remove CodeQL job from ADO CI 2023-08-16 14:13:48 -07:00
Amber Brown ede320dd33
Run prettier on the pipeline yaml files (#2979)
* move prettierrc up one level

* add a prettierignore

* update files
2023-08-01 21:41:31 +10:00
Amber Brown b5ea75e75f
Add jq for must-gather (#3050) 2023-07-28 11:29:23 +10:00
Caden Marchese 45fe957b6c
Fix e2e must gather (#3037) 2023-07-24 11:42:57 +02:00
Amber Brown 18d60cd7ad cleanup 2023-07-19 16:35:13 +02:00
Amber Brown a108f4c1dd try and run in container 2023-07-19 16:35:13 +02:00
Amber Brown ab8480868e install the default in E2E 2023-07-18 11:02:16 +02:00
Amber Brown 4406ce8103
Try and fix the e2e mustgather (#3023)
* see if this fixes the mustgather
2023-07-13 16:07:22 +12:00
Ben Vesel e34c6d65df
Add longpaths to git config to bypass file name length restrictions (#2993) 2023-06-27 11:48:20 -04:00
Amber Brown 27b1ec195d
Run the admin portal e2e in podman (#2968) 2023-06-23 11:39:55 +10:00
Matthew Barnes 156383c4a6
Migrate RP from Azure AD Graph to Microsoft Graph (#1970)
* go.mod: Add github.com/microsoftgraph/msgraph-sdk-go

* azureclient: Add NewGraphServiceClient

Creates a GraphServiceClient with scope and graph endpoint set
appropriately for the cloud environment (public or US government).

* pkg/util/graph: Add GetServicePrincipalIDByAppID

* armhelper: Use MS Graph to obtain service principal ID

* armhelper: Remove unused authorizer parameter

* Use MS Graph endpoint to validate service principal

I don't think it matters for the purpose of validation, but the
AD Graph endpoint is nearing its end-of-life.

* pkg/cluster: Use MS Graph to obtain service principal ID

* pkg/util/cluster: Use MS Graph to create and delete clusters

* Pretty-print OData errors from MS Graph

To aid debugging failed MS Graph requests.

MS Graph's top-level APIError message is hard-coded and only says
"error status code received from the API".  Further details have
to be extracted from the "ODataErrorable" interface type.

* azureclient: Remove ActiveDirectoryGraphScope

No longer used.

* Remove pkg/util/azureclient/graphrbac

No longer used.

* pipelines: Run CodeQL analysis for Go on 1ES Hosted Pool

Vendoring the Microsoft Graph SDK for Go causes memory consumption
during CodeQL analysis to double due to its enormous API surface,
putting it well beyond the memory limit of standard GitHub Action
runners.

I inquired with the Azure organization admins about provisioning
larger GitHub runners, but was directed instead to use the 1ES
Hosted Pool which runs our other CI checks. Since ARO controls
the VM type for Hosted Pool agents, we can use a VM type with
adequate memory for CodeQL analysis with the Graph SDK.

Note: Implemented CodeQL commands in a template in case we
      ever decide to move Javascript or Python analysis to
      1ES Hosted Pool as well.
2023-06-14 11:10:37 -06:00
Spencer Amann b9ac0e509d
Merge pull request #2832 from cadenmarchese/e2e-db-leak
Fix `clean_e2e_db` not running in CI when e2e fails
2023-04-11 12:37:51 -04:00
Jeremy Facchetti 667533415a
bumped go version (#2836) 2023-04-07 10:08:58 +02:00
cadenmarchese 7952ab3a86 always run clean_e2e_eb 2023-04-06 11:59:06 -04:00
Caden Marchese 30370deecd
Revert "Update Makefile to not allow unset variables" (#2830)
* Revert "Fix e2e pipeline buy hardcoding ARO_IMAGE value"

This reverts commit 1e125095f4.

* Revert "Update Makefile to not allow unset variables"

This reverts commit 3d540c3a8e.
2023-04-06 12:11:27 +10:00
Steven Fairchild 1e125095f4 Fix e2e pipeline buy hardcoding ARO_IMAGE value
ARO_IMAGE does not appear to be carried over from previous pipelines.
Hardcoding value to be passed to make.
2023-04-03 10:50:57 -04:00
Amber Brown 472d035f7e
Move CI/dev tool usage to use go run pkg@version to reduce the number of vendored dependencies (#2789)
Use the new go run thing@version for test/CI items to remove vendoring
2023-03-24 10:01:05 +11:00
Amber Brown 306ef7b506 I think this can run on 1ES? 2023-03-16 15:17:44 -04:00
cadenmarchese 113362e56f use GOCACHE=/tmp 2023-03-08 15:47:16 -05:00
cadenmarchese f98e10b8f9 add jq 2023-03-08 15:46:59 -05:00
Petr Kotas c758170d6b
Update go version to 1.18 (#2691) 2023-02-14 11:35:54 +11:00
Amber Brown 53bd3d5d65
Migrate last items to 1ES (#2683)
* No image mirroring via Pipelines

* run the subscription cleaner in the 1ES pool
2023-02-10 15:10:37 +11:00
Andrew Denton 98e39610ed
Always use lowercase "true" for the Official Release flag (#2673) 2023-02-01 13:49:10 +01:00
Amber Brown 127b0565f1
Migrate E2E to 1ES pool (#2638)
This doesn't include portal tests, those will follow.
2023-01-31 10:10:05 +11:00
bennerv ae241d9180 Stop any existing openvpn processes running before e2e starts 2023-01-26 14:02:00 -05:00
Amber Brown 9a5f040753
Run CI on the 1es-aro-ci-pool pool (#2654) 2023-01-24 17:25:02 +11:00
Amber Brown 530c5cccc5
Port CI to 1ES (#2624) 2023-01-16 12:18:27 +11:00
Andrew Denton 40f1825b8b Onebranch template-buildrp-buildaro: fix logic 2023-01-13 11:04:34 -05:00
Andrew Denton 4f90ba9e73 Require "official" builds have a valid tag. 2023-01-09 16:41:30 -05:00
cadenmarchese d854adaf96 fix lint 2023-01-09 16:37:44 -05:00
cadenmarchese 61ac0d7ff7 re-add portal, artifact steps 2023-01-09 16:37:44 -05:00
cadenmarchese 01c16ee759 collect CI must-gathers, retain existing deletion code 2023-01-09 16:37:44 -05:00
Yehor Naumenko 9eb582b9ee Update docs for shared rp-dev-env installation 2022-12-13 14:26:54 -05:00
Petr Kotas 12c0409bed
Fix the env variable to reflect shards
e2e does not uses shards, but the code relies on them
therefore the env var needs to have right name

Signed-off-by: Petr Kotas <pkotas@redhat.com>
2022-12-01 18:50:40 +01:00
Amber Brown 0133334378 Remove all unused prod-related pipeline configurations, leaving just PR CI, PR E2E, Image Mirroring (for now), and OneBranch configs. 2022-11-24 14:42:29 +11:00
Petr Kotas 19e59aa1e6
Fix kubeconfig var name (#2539)
Signed-off-by: Petr Kotas <pkotas@redhat.com>

Signed-off-by: Petr Kotas <pkotas@redhat.com>
2022-11-11 15:01:59 +01:00
Mikalai Radchuk b40a5f64ac Revert "collect must-gather on failed CI e2e runs"
This reverts commit 05e8d390a3.
2022-11-11 14:26:03 +01:00
Brendan Bergen 6b1f429e83
Fix CI linting - install vendored binaries (#2527) 2022-11-09 13:42:42 -08:00