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

149 Коммитов

Автор SHA1 Сообщение Дата
Ben Broderick Phillips 1759e9efe2
Add auto-baseline main pipeline config for core (#23430) 2024-09-12 16:08:27 -04:00
Ben Broderick Phillips 3e1a752e76
Incorporate common sub config changes to live testing (#23240)
* Incorporate common sub config changes to live testing

* Remove federated auth field from sdk yaml files

* Default federated auth mode to true in pipeline templates

* Remove secret based sub configs from yaml template

* Fix fed auth defaults for ci testing

* Fix missing service connection in overridden cloud configs

* Add missing file paths parameters
2024-08-30 16:41:24 -04:00
Wes Haggard e4b7d9e709
Turn off warnings from sdl disablement (#23378)
See https://eng.ms/docs/cloud-ai-platform/devdiv/one-engineering-system-1es/1es-docs/1es-pipeline-templates/features/sdlanalysis/disablingtools for info on this new flag.
2024-08-28 16:32:14 -07:00
Wes Haggard b17005645d
Update PublishCodeCoverageResults to v2 (#23380) 2024-08-28 12:23:27 -07:00
Daniel Jurek 75d30bbd4b
Enable use of pipeline credential. Fixes https://github.com/microsoft/azure-pipelines-tasks/issues/20046 (#23135) 2024-07-12 13:32:27 -07:00
Ben Broderick Phillips f84d591780
Add pool env variable to build-test-resource-config template (#23111) 2024-06-26 16:05:57 -04:00
Ben Broderick Phillips 93e07a3a4e
Add pool variable and user env variables to test resources environment (#23097) 2024-06-21 17:39:57 -04:00
Daniel Jurek 955e5aaa60
Federated auth for live tests (#23018)
* Wire up federated auth and migrate test jobs

* exit $LASTEXITCODE

* Activate federated auth for azappconfig

* Authenticate perf tests, too

* expression

* Correct params

* Remove reference to secret, better naming in build-test.yml

* ./

* InlineScript

* Testing comment

* Review feedback

* Review feedback: plumb EnvVars

* List

* Revert test ci.yml changes

* s

* Map SYSTEM_ACCESSTOKEN in environment for processes that need auth
2024-06-18 15:32:16 -07:00
Wes Haggard 9971b1c9b4
Remove outdated macos reference (#23085) 2024-06-17 14:28:56 -07:00
Ben Broderick Phillips 088d46721f
Fix validate package script to use new service connection (#23082) 2024-06-17 17:03:32 -04:00
Joel Hendrix f329412e4b
Allow opt-in for Go race detector per SDK (#23063)
* Allow opt-in for Go race detector per SDK

This is a stop-gap until a more general solution is found. Some tests
will cause an OOM when the race detector is enabled. For now, allow SDKs
to opt in to the race detector if their tests don't cause an OOM.

* add leading $ for PS bool

* disable race detector for azcore for now

enable for internal instead
2024-06-13 14:31:01 -07:00
Joel Hendrix b9d87851b8
Update to latest version of golangci-lint (#23013)
* Update to latest version of golangci-lint

* disable gocritic's ifElseChain style check

clean up misc lint
2024-06-07 12:36:04 -07:00
Ben Broderick Phillips 706ae9319a
Do not recursively search for go modules when service directory is known (#22951) 2024-05-28 17:01:41 -04:00
Joel Hendrix e82f069276
Disable the go get -u all check for now (#22849) 2024-05-06 14:20:33 -07:00
Joel Hendrix 414bed5e5a
Eng gogetu all (#22795)
* Execute go get -u all during analyze phase in CI

This will ensure that direct and indirect dependencies are current.

* add var to skip just in case
2024-04-30 07:33:25 -07:00
Charles Lowell 890bdad367
Default test recording sanitizers (#22745) 2024-04-16 09:57:49 -07:00
Ben Broderick Phillips cee228f796
Add custom build tag for canary validation runs (#22706) 2024-04-10 12:23:23 -04:00
Praven Kuttappan bfb61f7340
Add new step to validate and create package name (#22658)
* Add new step to validate and create package name
2024-04-01 17:21:27 -04:00
Ben Broderick Phillips cd770885bd
Support template validation canary runs (#22649) 2024-03-29 17:58:37 -04:00
Azure SDK Bot b781662079
Update azure-sdk-build-tools Repository Resource Refs in Yaml files (#22622) 2024-03-20 15:25:43 -04:00
Scott Beddall 74feca15e5
Go mgmt auto release -> `1es-templates` (#22616)
* ensure this mgmt auto release build works just fine
2024-03-19 12:52:43 -07:00
Praven Kuttappan 753e7bac91
Updates to use common script to generate API review (#22615) 2024-03-18 16:39:18 -04:00
Scott Beddall 6289abf0dc
`1ES-template` conversion (#22590)
* Refactor build pipelines to be compatible with 1es-templates
* Move platform matrices to image.yml variable based environment variaables
2024-03-15 11:06:42 -07:00
Joel Hendrix 3c22771043
Ensure modules are current and tidy in CI (#22546)
* Ensure modules are current and tidy in CI

Fails the build if go.mod or go.sum isn't current.

* only fail on diff
2024-03-07 11:14:27 -08:00
Joel Hendrix ec67edd900
Disable code coverage redesign in CI (#22402)
* Disable code coverage redesign in CI

Go 1.22 changed some code coverage internals which is causing some cases
to under-report coverage. Disabling for now until this is resolved.

* conditionally set env var

* tweak

* move to build matrix

* update test regex

* Add GOEXPERIMENT to live test matrix

* Swap matrix order for display name consistency

---------

Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
2024-02-16 13:03:28 -08:00
Joel Hendrix f229c5ffec
Update CI to the latest two versions of Go (#22395)
* Update CI to the latest two versions of Go

* bump to latest golangci-lint
2024-02-15 11:56:43 -08:00
Ray Chen b36de61a8a
Added spec location verification to the release pipeline (#22301)
* publish package info as artifact

* Added the same condition as previous step
2024-02-01 08:16:34 +08:00
Joel Hendrix bdc09a2dd8
Update tooling and sample dependencies (#22267)
* Update tooling and sample dependencies

Set Go version to 1.18 to prevent CG from scanning go.sum files.
This should clean up issues flagged by CG.

* skip Go 1.18 from generator build

one of its dependencies requires Go 1.19 or later.

* add ExcludeGoNMinus2 param to eng job
2024-01-17 15:46:17 -08:00
Ben Broderick Phillips cc89915147
Add selective component governance step (#22150)
* Add selective component governance step

* Use globals.yml in analyze job
2024-01-16 16:42:16 -05:00
Ben Broderick Phillips 0677fb4194
Use package filter to prevent recursive package publish (#22232) 2024-01-11 15:46:11 -05:00
Ben Broderick Phillips 0755cef8d2
Update keyvault recording path and proxy docs (#21857)
* Update packages to latest core

* Keys is using beta feature

* Update proxy recording docs to include service directory instructions

* Reference correct recording directory for security/keyvault tests

* Disable pipeline proxy

* Update dependency in security perf tests

---------

Co-authored-by: Rick Winter <rick.winter@microsoft.com>
2023-10-31 17:10:35 -04:00
Ben Broderick Phillips c0c13c7b4f
Plumb TestRunTime parameter through job generation template (#21802) 2023-10-18 17:38:57 -04:00
Joel Hendrix ee7c3a2813
Execute go mod tidy for perf tests when using live azcore (#21471)
* Execute go mod tidy for perf tests when using live azcore

This ensures that any updated dependencies are propagated.

* set default value and fix devops syntax

* runtime expression

* switch param to string

* stricter check, fixed some logging

* debugging

* fix syntax

* define task var, clean up lint

* fix syntax

* define default from a runtime expression

* syntax

* more syntax

* switch back to bool, remove debug logging
2023-09-01 06:55:26 -07:00
Joel Hendrix d4b8e5790d
Add option to use azcore from main in CI (#21466)
* Add option to use azcore from main in CI

Off by default, set Use.AzcoreFromMain to true to enable.

* fix for relative path, avoid potential infinite loop

* disable release when Use.AzcoreFromMain is set
2023-08-30 14:13:02 -07:00
Ben Broderick Phillips c4c059fa87
Plumb EnvVars to subscription config builder to find duplicates (#21448) 2023-08-28 13:46:58 -04:00
Joel Hendrix 5d04047653
Update CI to latest versions of Go (#21450)
* Update CI to latest versions of Go

Update golangci-lint to latest version.

* add patch version for 1.21

* fix test due to change in Go 1.21
2023-08-28 07:33:15 -07:00
Joel Hendrix 246ae74957
Add flag to enable skipping of dependency checks (#21146)
The dependency checking tool has some broken corner-cases.  Until those
are fixed, we need a flag to skip it in order to release.
2023-07-12 11:39:11 -07:00
Scott Beddall 99ae59de1e
Pin original version of test-proxy while investigating azadmin/azfile/azblob issue (#21142) 2023-07-11 12:13:17 -07:00
Scott Kurtzeborn dc418a6c7d
Enable Codeql in Analyze job for Go pipelines (#20682)
* Enable CodeQL for scheduled builds only

* Do this in Analyze instead

* Adjust globals.yml scope and fix syntax

* fix globals.yml scoping again

* Update eng/pipelines/templates/jobs/archetype-sdk-client.yml

Co-authored-by: Ben Broderick Phillips <ben@benbp.net>

---------

Co-authored-by: Ben Broderick Phillips <ben@benbp.net>
2023-06-21 10:47:35 -07:00
Joel Hendrix 6c4b4ae538
Refactor some public surface in azcore/tracing (#20944)
* Refactor some public surface in azcore/tracing

This contains breaking changes against the previous beta.

* update azotel for breaking changes

* fix off-by-one error in var name
2023-06-05 14:13:48 -07:00
Joel Hendrix 7549a77474
Initial implementation of the azotel module (#20916)
* Initial implementation of the azotel module

It contains a complete end-to-end example of creating an OTel
TracerAdapter that exports spans to Jaeger.

* some cleanup based on feedback

* little more cleanup

* cleanup flagged in CI

* cleaned up example

* make Go version N-3 configurable for opt-out
2023-06-02 10:09:54 -07:00
Wes Haggard 9d1a45f70e
Remove auto-merge label usage (#20922) 2023-05-31 11:19:16 -07:00
Joel Hendrix e8167a2b8c
Enable gocritic during linting (#20715)
Enabled gocritic's evalOrder to catch dependencies on undefined behavior
on return statements.
Updated to latest version of golangci-lint.
Fixed issue in azblob flagged by latest linter.
2023-04-28 09:55:43 -07:00
Chenjie Shi c461f81a9b
Preview version of mgmt. profile package for Azure Stack (#18841)
* update release tool to support profile

* add profile sdk 2020-09-01-hybrid

* aks poc

* add test for aks

* Revert "add test for aks"

This reverts commit 5b68beb8eebdd82bab559447bf315dc4a68a69e8.

* Revert "aks poc"

This reverts commit 6b805d8278b6ff7fb2e72007b215580be3b46710.

* fix rebase merge problem

* change module name module version

* move modelName and modelVersion to internal package

* split PR to two part: one is profile package, another is tooling

* refine changelog

* resolve internal package problem

* remove useless root build.go

* add transform to "autorest.md" and support "go generate"

* remove internal config

* rename profile module

* upgrade core lib version

* update ci

* gofmt

* add ClientFactory

* try to fix pipeline problem

* add package prefix for tracing info
2023-03-16 09:25:01 +08:00
Chenjie Shi 236a89a075
show SDK log for CI test (#20028) 2023-02-17 11:57:35 +08:00
Rick Winter eda441febd
Add 1.20 to the matrix (#19952)
* Add 1.20 to the matrix

* Update uses of rand.Seed to rand.NewSource
2023-02-08 17:29:30 -08:00
Azure SDK Bot 4af372ef1d
Migrate to new pool (#19664)
Co-authored-by: sima-zhu <sizhu@microsoft.com>
2022-12-20 11:34:32 -08:00
Joel Hendrix 3aec76e280
Dump stacks for all goroutines on fatal panic (#19605) 2022-11-21 13:29:06 -08:00
Chenjie Shi c57ca65612
remove duplicate manifest publish in pipeline (#18817) 2022-08-09 04:01:50 +00:00
Joel Hendrix 5f66c47ed0
Add Go 1.19 to test matrix (#18805)
* Add Go 1.19 to test matrix

Update to latest golangci-lint to support Go 1.19.
Update Go 1.18 to latest patch version.

* remove trailing .0

* lint clean

* more lint clean
2022-08-08 12:52:51 -07:00