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

51 Коммитов

Автор SHA1 Сообщение Дата
Shubhadapaithankar 96637dbc85
Migrate VPN and rp service to Docker Compose (#3882)
* VPN, RP, and Portal are now managed by Docker Compose
2024-10-10 13:18:26 -06:00
Tanmay Satam 53565baeae
Move linting steps to GitHub Actions (#3869)
* Remove go build/unittest steps

These are performed in the ADO "CI" pipeline.

* Merge golint steps into ci-go workflow

* Add new ci-python workflow

This currently contains an equivalent copy of the Lint_Az_ARO_Extension step in the ADO CI pipeline.

* Remove Lint_Az_ARO_Extension from ADO CI pipeline

* Update build/test step in CI pipeline to reflect current steps

Co-authored-by: Kipp Morris <117932707+kimorris27@users.noreply.github.com>

---------

Co-authored-by: Kipp Morris <117932707+kimorris27@users.noreply.github.com>
2024-10-02 14:23:53 -04:00
Amber Brown 8beb68484f update to remove pipeline chaining from the CI, since it no longer auto-triggers and it duplicates all e2e builds 2024-10-01 13:44:13 +10:00
Shubhadapaithankar bfc155401d
Removed non-containerized stuff from the CI pipeline. (#3852)
* Removed non-containerized stuff from the CI pipeline.

* Kept the make generate check in the NotContainerized stage.

Kept the make generate check in the NotContainerized stage.

* removed the non-containerized Go block from the CI pipeline
2024-09-26 09:02:34 -04:00
Shubhadapaithankar 0657f6aa5a
Shubhadapaithankar/aro-9323-cirp-mvp (#3799)
- Converted containerized CI process to use docker for ease of use in ADO
- Added stage to authenticate and push CI images to ACR
- Added support for extracting test results and coverage files from containerized build
2024-09-19 10:41:44 -06:00
Shubhadapaithankar 4ba9270b2a
Remove loki/pipeline-swarm branch from pipeline and refactor for clarity (#3846) 2024-09-17 08:54:16 -04:00
Amber Brown c554e98391
Drop some unneccessary dependencies by moving to `bingo` for tooling (#3719)
* Move to using bingo for tools
* go mod vendor
2024-09-05 15:29:19 +10:00
Brendan Bergen 0c5b8e6acc
Separate Makefile targets for local vs containers (#3816)
- reverts changes to runlocal-rp
- updates old run-portal to runlocal-portal since it uses local bins
- adds new targets for containerized run of RP and Portal; opt-in
- fixes docs and pipelines to use updated targets
2024-09-04 15:45:44 -04:00
Nont 7e7703fab7 Use sudo for tdnf 2024-09-03 17:39:54 -05:00
Nont 62d628de86 Switch back to OneBranch build image 2024-08-30 14:44:54 -05:00
Nont da9bf68821 Install required binary for Podman 5 in ci 2024-08-30 14:43:34 -05:00
Shubhadapaithankar b1caf181ee
This is the new CI-RP stage for the pipline (#3768)
* This is the new CI-RP stage for the pipline (#3753)

* Ensure Podman Service is Started and PODMAN_REMOTE_ARGS is Configured Automatically

Ensure Podman Service is Started and PODMAN_REMOTE_ARGS is Configured Automatically

Ensure Podman Service is Started and PODMAN_REMOTE_ARGS is Configured Automatically

removed the tag

Add Podman service start and remote args setup for seamless operation

Add sudo to start Podman service for elevated permissions and fix permission errors

Add sudo to start Podman service for elevated permissions and fix permission errors

Refactor Makefile: Update Podman service handling with sudo and remove default PODMAN_REMOTE_ARGS to improve flexibility and ensure proper permissions.

Add sudo to start Podman service for elevated permissions and fix permission errors

* Added Podman service target and set PODMAN_REMOTE_ARGS for seamless builds.

* fix the makefile

* added the port to fix the Makefile
2024-08-29 09:09:59 -04:00
Brendan Bergen de78a125b1
Adding a temp branch for Loki swarm session (#3754) 2024-08-02 11:38:31 -06:00
Nicolas Ontiveros ce31826325
Update Go to 1.21 (#3698)
* Update ci-go

* Update go toolset

* Update prepare shared rp dev

* Update prepare your dev

* More 1.21 updates

* more changes

* save work

* test

* tidy up

* Add license to typealker test
2024-07-18 17:35:06 +10:00
Amber Brown 7dfe2d5453 test 2024-06-25 15:16:25 +10:00
Amber Brown c0cfe2f196 fix triggering of CI + E2E 2024-06-25 13:51:07 +10:00
Arris Li 6d27d26ff0 bump go version to 1.20.12 2024-04-29 19:47:35 +12: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
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
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
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
Petr Kotas c758170d6b
Update go version to 1.18 (#2691) 2023-02-14 11:35:54 +11: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
Brendan Bergen 6b1f429e83
Fix CI linting - install vendored binaries (#2527) 2022-11-09 13:42:42 -08:00
Jeremy Facchetti b4bd5842ac
move validate-go to github action (#2153) 2022-06-07 12:39:51 +02:00
darthhexx a52a49ef20 pipelines: Require agents with go-1.17 capability for CI/E2E 2022-05-25 14:49:46 +10:00
Jeremy Facchetti fdfd3900b4
added stylecheck and moved golangci-lint to a github action (#2083)
* enabled github action instead of running from ADO

* fixed style

* fixed some style

fixed styling

fixed failing tests because of case on errs
2022-05-02 10:38:27 -04:00
Ellis Johnson bedce2b2b0
Admin Portal v2 (#2019)
Add in sre portal v2, still default to v1

Co-authored-by: Amber Brown <ambrown@redhat.com>
Co-authored-by: Brett Embery <bembery@redhat.com>
Co-authored-by: Ben Vesel <10840174+bennerv@users.noreply.github.com>
2022-04-06 09:06:11 -04:00
Ross Bryan d3ced9732d add fips validation scripts and ci step 2022-02-14 15:10:20 +00:00
Matthew Barnes e2c4896ebe pipelines: Demand agents with go-1.16 capability for CI/E2E 2022-01-25 11:47:16 -05:00
Petr Kotas a09e48bb77
Trigger CI with a tag
Signed-off-by: Petr Kotas <pkotas@redhat.com>
2021-08-18 10:42:59 +02:00
Petr Kotas 5e33211ec1
Organize ci pipelines
Signed-off-by: Petr Kotas <pkotas@redhat.com>
2021-06-28 17:10:20 +02:00
Petr Kotas 90e4d58a0b
Move linting to separate job
Make linting separate job, which makes the CI failures easier to
read.

Signed-off-by: Petr Kotas <pkotas@redhat.com>
2021-03-19 12:25:07 +01:00
Jim Minter d0a5afd5dd
enable lint on CI 2020-11-19 08:09:59 -06:00
Jim Minter c6bc0f498b
remove use of PYTHON_VERSION 2020-10-07 19:24:50 -05:00
Mangirdas Judeikis b6305b126f
Add ci VMSS 2020-09-14 07:37:45 +01:00
Leszek Jakubowski 75146c758b
changed the default vmImage: ubuntu-latest to agent pools. 2020-05-21 16:42:27 +01:00
Jim Minter d78e386adc
require make test-python not to change any repo files 2020-04-29 16:20:03 -05:00
Jim Minter c61edcf97d
run format-yaml tool 2020-04-03 12:06:41 -06:00
Jim Minter 8f433d8b61
stop advertising python 3.5 support 2020-03-26 14:47:33 -06:00
Jim Minter 954ae66ebe
stop advertising python 2.7 support 2020-03-26 14:40:57 -06:00
Leszek Jakubowski 8a740eb038 Corrected CI to check for git changes after test-go (generate etc.) moved report preparation to a separate step 2020-02-14 13:20:03 +01:00
Julien Stroheker 4a71e738c1 typo 2020-01-30 12:59:31 -05:00
Julien Stroheker 698b9ef47c symlink to python bin 2020-01-30 12:47:38 -05:00
Julien Stroheker 475108fd3e add symlink to keep makefile structure 2020-01-30 12:29:50 -05:00
Julien Stroheker f267a932fe
Juliens/ci tunning (#4)
* tunning

* debug

* publish tests

* remove debug cmd
2020-01-28 22:10:17 -05:00
Julien Stroheker 735cb62087
Juliens/az pipelines fix (#3)
* apply review

* test vars

* python and golang fix

* using vendor bin

* fix and clean
2020-01-27 15:46:13 -05:00