Commit Graph

1720 Commits

Author SHA1 Message Date
Anton Kolesnyk
62e3b32faa
Fix broken GitHub links (#3299)
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2022-01-31 18:01:32 -08:00
Victor Vazquez
1cd14b196d
diable uwp gates (#3296) 2022-01-31 16:09:30 -08:00
Anton Kolesnyk
2aae6be7a3
Encapsulate getenv(), and make it work on UWP (#3275)
It all started with UWP. The [docs](https://docs.microsoft.com/en-us/cpp/cppcx/crt-functions-not-supported-in-universal-windows-platform-apps?view=msvc-170) say: "`Environment variables are not available to UWP apps.`". And it truly won't work, I tried: linker error, the function is simply not present.

So, for a year or so, we were `ifdef`ing everything enivoronment-related: console logger, environment credential, managed identity credential.

And then just recently we wanted to enable our CI for UWP, including tests and samples. And it required to do more ifdefs (in vcpkg, we don't build samples or tests, so that problem did not exist).

It just became more messy. Especially in samples - you can see how we would disable warning with `#pragma warning(disable : 4996)` or defining `_CRT_SECURE_NO_WARNINGS` already, but now came UWP, so we would have to add comment that `getenv()` is not available and make the sample compilation to either fail with clear message, or throw an exception. Plus we would have to detect that we are being compiled on UWP, which also adds visual clutter for reader. You can see how such an irrelevant (for a sample) thing as `getenv` was consuming more and more lines of sample code and reader's attention.

But then! I read docs on more APIs for UWP. And I noticed that on .NET you can read environment variables. So I went and checked Win32 API docs for [GetEnvironmentVariable()](https://docs.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-getenvironmentvariable) - it says: "`Minimum supported client: ... UWP apps`".

**GetEnvironmentVariable() works on UWP!**
And so does `SetEnvironmentVariable()` (our tests use it, which means we can make all of them work and execute for UWP).

That's good news, but now it would probably be more code: it usually takes more lines to invoke WinAPI, it is no more an one-liner to call `getenv()/setenv()`. So, I encapsulated that into `Azure::Core::_internal::Environment::GetVariable()` and `SetVariable()`. You can see how much less ifdefs is in our code now. Not to mention it works on UWP!

Per team request, that API is SDK-internal. Samples use their own mini-helper project, `get-env-helper` that makes is so that `getenv()` works naturally on Linux and macOS, compiles without warnings and works on Win32, and compiles and works on UWP (using `GetEnvironmentStringsA()`)

If it was for me, I would just make `Azure::Core::Environment::GetVariable()` public and simplify even further, I think it would be beneficial for sample readers (you can see that extra `get-env-helper` stuff adds just a little more visual clutter, compared to nothing). But I can see reasons against that, why team did not want to do it.
2022-01-29 08:22:33 +00:00
Azure SDK Bot
b265366d30
Update matrix doc header titles for replace/modify/append (#3292)
Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
2022-01-28 18:48:12 -05:00
Azure SDK Bot
acdd028d56
remove greedy suffix on link check (#3276)
Co-authored-by: Dane Walton <dawalton@microsoft.com>
2022-01-26 13:00:24 -08:00
Azure SDK Bot
97d2397cff
fix incidentally added path addition (#3274)
Co-authored-by: scbedd <45376673+scbedd@users.noreply.github.com>
2022-01-25 16:06:57 -08:00
George Arama
e18c6ce6fc
keys source build (#3251)
* keys source build

* merge from main, apply changes
2022-01-25 15:38:55 -08:00
George Arama
1b722bdb4d
Switch secrets away from lambdas (#3264)
* first pass

* LROs

* final

* some quick changes

* constructor order

* formats

* comment update
2022-01-25 14:27:44 -08:00
George Arama
d9142e80b2
secrets build from source (#3250)
* secrets build

* typo
2022-01-25 14:27:04 -08:00
George Arama
71d4b87bb0
fix build (#3270)
* fix build

* add build samples to ci
2022-01-25 14:26:10 -08:00
Anton Kolesnyk
e3b748c944
Disable cspell for Base64 values (#3273)
* Disable cspell for Base64 values

* Remove unneccessary change

* URL

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2022-01-25 12:10:33 -08:00
Azure SDK Bot
1a83513ff1
Syncing eng/common (#3271)
Co-authored-by: Albert Cheng <albertcheng@microsoft.com>
2022-01-24 16:30:35 -08:00
Azure SDK Bot
f15372a7d1
Sync eng/common directory with azure-sdk-tools for PR 2581 (#3272) 2022-01-24 15:52:37 -08:00
Azure SDK Bot
dd40de0606
Sync eng/common directory with azure-sdk-tools for PR 2578 (#3268)
* excluding duplicated env:USER in image tag

* NIT

* removing default repo name

Co-authored-by: Albert Cheng <albertcheng@microsoft.com>
2022-01-21 16:57:41 -08:00
Azure SDK Bot
118e598e3e
Sync eng/common directory with azure-sdk-tools for PR 2596 (#3267)
- Fix bug in Add-ReleaseLease helper script
- Enable better local logging for handling token
- Enable strict mode to help catch issues like this in the future
2022-01-21 15:19:23 -08:00
George Arama
88f234d976
build source identity (#3244)
* build source identity

* pipeline

* PR comments

* PR comments

* DFETCH cspell

* EOL
2022-01-21 13:13:15 -08:00
Azure SDK Bot
bd4984015f
updating to target test-proxy that only gets filename from body of /start request (#3265)
Co-authored-by: scbedd <45376673+scbedd@users.noreply.github.com>
2022-01-21 12:57:35 -08:00
Azure SDK Bot
df691195da
Only fetch provision application oid via API if not supplied (#3266)
Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
2022-01-21 12:03:23 -08:00
Victor Vazquez
c10de791cc
Build ci gates per service (#3260) 2022-01-20 18:09:06 +00:00
Victor Vazquez
335fb0ab43
ci fix (#3259) 2022-01-20 09:24:58 -08:00
t-ransemel
9d1ab66989
fixed typo in MigrationGuide.md (#3262) 2022-01-20 15:52:56 +00:00
Ahson Khan
b3ac959049
Fix up the Azure Core changelog for breaking change and new line (#3255) 2022-01-20 07:13:11 -08:00
Scott Beddall
8474c4c69c
Fix BOM artifact upload failure on failed cmake (#3256)
* ensure bom generation matches the artifact conditions. unless cancelled, it'll always be generated and uploaded
2022-01-18 15:26:55 -08:00
Victor Vazquez
20bb1ec276
Recordings for storage (#3194)
* Recordings for storage (#4)
2022-01-18 14:50:15 -08:00
Azure SDK Bot
34e5d9277b
fix: body is too long when create github release (#3249)
Co-authored-by: tadelesh <tadelesh.shi@live.cn>
2022-01-18 08:54:00 -08:00
Azure SDK Bot
15b4e2b4d6
Sync eng/common directory with azure-sdk-tools for PR 2554 (#3243)
* image tag

* version update for proxy tool

Co-authored-by: Harsha Nalluru <sanallur@microsoft.com>
2022-01-14 15:17:00 -08:00
George Arama
9d1ede92ec
Prototype build from source (#3180)
* prepPR

* gitignore updates

* cspell.json

* spell

* cspell typo

* deisable option

* need to look out for this

* reenable tests

* set unset location properly

* building in docker

* format file

* final changes

* PR comments

* update git ignore

* test cmake build

* test 2

* ren steps

* test new step

* try again

* again

* oops

* try again

* put back

* test2

* test5_46

* progress

* more again

* test6_35

* test 6_55

* test_again

* move up

* test

* output params

* try try again

* one more test

* put back curl

* os

* run only on one

* try again

* typo

* switch variable

* set things back

* set things back

* prep for next step

* test source deps new

* try again

* try try again

* typo

* test rewire

* params

* typo

* fix

* get rid of vcpkg

* linux

* mac

* try brew

* try exports

* try again

* typo

* set env

* include dir

* root

* try again

* typo

* dfsfsda

* try agan

* try again

* oops

* sdfsd

* typo

* dsdsad

* hghhg

* update env

* ghhgj

* sAdsad

* try again

* fdfd

* rewrew

* dsadas

* sdasda

* ggggg

* envs2

* envs3

* typo

* order

* try again

* make sure we don't blow up other pipelines

* typo

* typo

* fsdfs

* check null

* put back
2022-01-14 13:06:00 -08:00
Scott Beddall
67dce1292e
Add Manifest Generation (#3241)
* add manifest generation

* enable bom signing

* swap to publish-artifact, add necessary artifact upload for ci.tests.
2022-01-14 09:06:31 -08:00
Victor Vazquez
30c5d77d88
Remove Logging from the LibcurlConnectionPool - cleaning routine (#3219)
Remove Logging from the LibcurlConnectionPool - cleaning routine (#3219)
2022-01-13 20:04:18 +00:00
Azure SDK Bot
47a43d2a0d
Increment package version after release of azure-identity (#3236) 2022-01-13 11:18:55 -08:00
Victor Vazquez
13e23487d0
identity release 1.1.1 2022-01-11 17:40:41 -08:00
Ahson Khan
47a4c44eaa
Bump dependency on azure core for all upstream SDKs and client libraries to the latest shipped version (#3216)
* Bump azure core dependency to latest shipped (identity)

* Bump azure core for template

* Bump azure core for storage (common, and all)

* Bump config.cmake.in for identity vcpkg

* Bump config.cmake.in for template vcpkg

* Bump config.cmake.in for storage common vcpkg
2022-01-11 17:06:06 -08:00
Victor Vazquez
dc5b45e759
Test Cmake generate configs (#3230)
Adding extra stage for individual packages generation
2022-01-11 15:49:56 -08:00
George Arama
4239100f3b
Updates to readme files (#3220)
* links updates

* PR comments

* readme updates

* oops

* update source section
2022-01-11 13:11:44 -08:00
Azure SDK Bot
203028a180
Sync eng/common directory with azure-sdk-tools for PR 2513 (#3226)
* Update test resources SP password creation to support Az >= 7.1.0

* Check Az.Resources module version

Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
2022-01-11 12:20:24 -08:00
Daniel Jurek
afe34f63ef
Upload map files to specific artifact locations (#3229)
* Require success to upload map files

* Use a different artifact name for each attempt

* Agent.JobAttempt -> System.JobAttempt, add some display names
2022-01-10 15:25:32 -08:00
Azure SDK Bot
8978973ddd
Sync eng/common directory with azure-sdk-tools for PR 2500 (#3227)
* Update pipeline generator tool feed to azure-sdk-for-net

* Update pipeline generator tool version

Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
2022-01-07 21:48:51 -05:00
Azure SDK Bot
12bae6e64b
Handle skipping docker build when PushImages is set and there is no dockerfile (#3174)
Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
2022-01-06 17:25:52 -05:00
Anton Kolesnyk
4f8f96eb88
Macro rename compatibility layer (#3186)
* Macro rename compatibility layer

* pragma once + doxy comment

* Update sdk/core/azure-core/inc/azure/core/azure_assert.hpp

Co-authored-by: Ahson Khan <ahkha@microsoft.com>

* clang format

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
Co-authored-by: Ahson Khan <ahkha@microsoft.com>
2022-01-06 13:08:09 -08:00
Azure SDK Bot
ae3e5e021b
Sync eng/common directory with azure-sdk-tools for PR 2484 (#3213)
* Add weekly pipeline generation to prepare-pipelines template

* Add succeeded condition to pipeline generation pipelines

Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
2022-01-05 15:59:24 -08:00
Victor Vazquez
e7c610dcb3
aver (#3212) 2022-01-05 12:24:55 -08:00
Victor Vazquez
add1496338
Fix Storage test-resources config - add one extra year (#3208)
use value 2099 for test-resources
2022-01-04 16:33:52 -08:00
George Arama
f60db74f21
Enable extra logging for tests (#3202)
* enable -VV

* verbose

* PR comments

* PR discussion
2022-01-04 12:03:04 -08:00
Azure SDK Bot
5ff89bb9e5
Sync eng/common directory with azure-sdk-tools for PR 2464 (#3206)
* Support AAD graph and Microsoft Graph service principal APIs

* Consolidate service principal wrapper creation

Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
2022-01-03 16:00:40 -08:00
Daniel Jurek
fa0fa97155
Generate map files (#3181)
* Generate map files in build

* Add .map file artifact publishing

* Add Xlinker to spelling exceptions

* Remove PublishMapFiles from clang builds

* Generate the map file artifact name

* CXX_COMPILER_ID and some logging for Clang which might be linking using the GNU linker by default

* More logging

* Move logging out of conditional

* Logging up high, use OS to determine which link flags to set

* Use linker options specific to AppleClang's context, publish map files for all platforms
2022-01-03 13:56:41 -08:00
George Arama
468b84c170
increalse live test timeout (#3205) 2022-01-03 11:45:46 -08:00
Anton Kolesnyk
b4fe751310
RequestFailedException: decouple Message and what(). (#3201)
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2021-12-18 09:00:04 -08:00
Rick Winter
33aca0caaf
Add trademark section to readme (#3200)
Add trademark section to readme
2021-12-17 22:04:44 +00:00
Anton Kolesnyk
487c7ce542
Do not mix inline and non-inline delegating constructors in polymorphic types (#3197)
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2021-12-17 13:56:40 -08:00
Anton Kolesnyk
5de42570e2
Make Template to pass the default goals set for code coverage (#3198)
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2021-12-17 13:56:01 -08:00