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

455 Коммитов

Автор SHA1 Сообщение Дата
Scott Beddall b3e5d58e1f
Fix `Copy Packages` step (#31790)
Resolve issue present
[here.](https://dev.azure.com/azure-sdk/public/_build/results?buildId=4332852&view=logs&j=3dc8fd7e-4368-5a92-293e-d53cefc8c4b3&t=25f5bbca-262e-5e46-5cac-451228cdef01)
2024-11-15 12:36:41 -08:00
Scott Beddall 59ce884f45
Disable codeql to avoid timeouts / long runtimes (#31726)
This is how it [used to
run](https://dev.azure.com/azure-sdk/internal/_build/results?buildId=4248236&view=logs&j=b1e79959-24d8-5aa9-2799-72d40c3e051b&t=1a422346-a7fc-5798-c84d-6e5b319d46e3).

In the past week, we started seeing very long builds due to codeQL
kicking on:

- [example
1](https://dev.azure.com/azure-sdk/internal/_build/results?buildId=4319395&view=logs&j=b1e79959-24d8-5aa9-2799-72d40c3e051b&t=1a422346-a7fc-5798-c84d-6e5b319d46e3)
- [example
2](https://dev.azure.com/azure-sdk/internal/_build/results?buildId=4317694&view=logs&j=b70e5e73-bbb6-5567-0939-8415943fadb9&t=ce3b9047-3f2a-5c21-9248-60a34a33907c)
2024-11-15 11:34:04 -08:00
Wes Haggard a24a372b13
Add lock file for generate-doc tool (#31789)
A recent package update broke the tool so we are adding a lock file to
ensure we have a reliable execution.

For details the newer version of
https://www.npmjs.com/package/shiki?activeTab=versions version 1.23.0
introduced a new dependency in https://github.com/shikijs/shiki/pull/832
which no longer compiles.

```
node_modules/oniguruma-to-es/types/parse.d.ts(61,49): error TS2339: Property 'orphan' does not exist on type '{}'.
node_modules/oniguruma-to-es/types/parse.d.ts(96,31): error TS2339: Property 'atomic' does not exist on type '{}'.
node_modules/oniguruma-to-es/types/parse.d.ts(96,39): error TS2339: Property 'flags' does not exist on type '{}'.
```

Until we figure out what the best way to fix those issues we are pinning
to the older version using a lock file.
2024-11-15 11:28:02 -08:00
Albert Cheng 725dc4ca77
ESRP safety net (#31292)
closes #30267

---------

Co-authored-by: Ben Broderick Phillips <ben@benbp.net>
2024-11-11 17:15:13 +00:00
Scott Beddall 1585346949
Fix failing nightly integration upload (#31708)
Of the alpha packages. [Proving
build](https://dev.azure.com/azure-sdk/internal/_build/results?buildId=4317759&view=results)

Before my fix:
<img width="754" alt="image"
src="https://github.com/user-attachments/assets/bbb3653f-8ec2-4aed-9101-4bb519df5cbf">

After my fix:
<img width="746" alt="image"
src="https://github.com/user-attachments/assets/f1536bca-87c6-4ddd-bfa0-b9d90fd63b89">
2024-11-10 22:16:57 -08:00
Jeremy Meng d96a050e09
[EngSys] remove Use Python step from JS pipelines (#31677)
we don't need a specific version of Python. The one available on the
build agent should be enough.
2024-11-07 11:52:27 -08:00
Scott Beddall e4886c73f7
We want to pull down ci.mgmt.yml as well as ci.yml for Matrix resolution (#31634)
During pr matrix generation. Follow-up on #31631
2024-11-04 17:28:44 -08:00
Azure SDK Bot 989d161097
Sync eng/common directory with azure-sdk-tools for PR 9308 (#31631)
Remove unnecessary Resolve-Path in Get-PrPkgProperties

Co-authored-by: Scott Beddall <scbedd@microsoft.com>
2024-11-04 15:46:36 -08:00
Wes Haggard 6e155e529f
Fix artifact location (#31624)
Fix artifact copying introduced by
https://github.com/Azure/azure-sdk-for-js/pull/31420
2024-11-04 10:47:24 -08:00
Scott Beddall 4a2df5ac62
`js - pullrequest` (#31420)
This pullrequest adds a definition for an expanding and contracting
build that will be used to replace all `js - <service> - ci` build
definitions in the `public` devops project. This is an overall package
selection change, where we find the targeted packages using
`Save-Package-Properties.ps1` primarily. Analyze checks have also been
updated to honor this new selection methodology, rather than the hardcoded
artifactslist.

Only `js - pullrequest` will actually honor the expand and contract for
the packages that were changed in the PR. Meanwhile the `internal`
versions of the `service`-specific definitions will still exist, still
select packages for the service directory, and still be used to release
as normal.

`js - pullrequest` will run _alongside_ the existing builds for a short
period while we identify any outstanding bugs or collection adjustments.
After we're happy, we'll disable all public js builds in favor of the
single `js - pullrequest` build.

---------

Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
2024-11-01 10:59:17 -07:00
Jeremy Meng 1cae9db8e1 [EngSys] remove "audit" NPM script and it's related file
as we no longer use it and rely on GitHub security features.

***NO_CI***
2024-10-25 19:28:06 +00:00
Wes Haggard aa5d6f11c9
Use federated auth for smoke testing (#31498)
The smoke-tests pipeline has been disabled but I still cleaned up to
smoke tests to remove usages of sub-config-azure-cloud-test-resources
and try to use a service connection. When we decide to re-enable the
smoke tests pipeline we will want to update the deployment to use
federated auth as well.

@xirzec you disabled this pipeline 1/10/2023. Do you have any plans to
try and re-enable it? If not perhaps we just delete this instead.
2024-10-23 08:41:56 -07:00
Wes Haggard 1c50b6ac49
Switch to TME test subscription (#31329) 2024-10-14 18:19:12 -07:00
Deyaaeldeen Almahallawi 61ab7ab456
[Bicep linter] Migrate to 1es-redirect (#31353)
Migrating the bicep devops pipeline to use the secure 1es pipeline.
2024-10-10 11:33:15 -07:00
Jeremy Meng 60b3974263
[EngSyS] react to unused InterdependencyGraph.html being removed from eng/common (#31266)
Remove pipeline step of copying that file
2024-09-30 14:03:44 -07:00
Wes Haggard 91c74d81a0
Update PublishCodeCoverageResults to v2 (#31114) 2024-09-13 12:00:19 -07:00
Ben Broderick Phillips c5d7d2d3e7
Add auto-baseline main pipeline config for core (#31098)
This should address the baseline PRs coming in for every pipeline
2024-09-12 16:08:34 -04:00
Wes Haggard c7cc867949
Refactor prepare-pipelines.yml (#31003) 2024-09-09 15:24:06 -07:00
Wes Haggard 24e7598b52
Reenable codeql (#30789)
The issue that was blocking before seems to have been fixed now so
re-enabling codeql here.
2024-08-30 10:36:38 -07:00
Albert Cheng 20afce7dbc
unpin node version for testing (#30917)
closes https://github.com/Azure/azure-sdk-for-js/issues/30445
2024-08-29 07:29:01 -07:00
Wes Haggard 4c16b7d3aa
Turn off warnings from sdl disablement (#30921)
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:31:50 -07:00
Jeremy Meng 06529fc7d9
[EngSys] re-enable rush build cache (#30818)
Use AzureCLI@2 task to generate a SAS for cache write credential so we
don't need to store secrets anymore.
2024-08-27 14:24:31 -07:00
Deyaaeldeen Almahallawi 1b93964c50
[EngSys] Add a Bicep linter pipeline (#30904)
Successful run:
https://dev.azure.com/azure-sdk/internal/_build/results?buildId=4083622&view=results

This PR introduces a new Azure DevOps pipeline that automatically lints
all Bicep files in the repository and generates a report of any linting
warnings. These reports are stored as artifacts and uploaded to Azure
Blob Storage for tracking over time.

### Benefits
- Automated Linting: Ensures that all Bicep files are consistently
checked for best practices and potential issues.
- Historical Tracking: By appending the date to the lint warnings file,
we can monitor progress and improvements over time.

### Next Steps
- Monitor the lint warnings reports over time to identify and address
recurring issues.
- Use the stored reports to guide refactoring efforts and improve Bicep
code quality across the repository.

### Current warnings:

```
WARNING: /home/codespace/window3/sdk/textanalytics/test-resources.bicep(32,34) : Warning outputs-should-not-contain-secrets: Outputs should not contain secrets. Found possible secret: function 'listKeys' [https://aka.ms/bicep/linter/outputs-should-not-contain-secrets]
/home/codespace/window3/sdk/textanalytics/test-resources.bicep(33,38) : Warning outputs-should-not-contain-secrets: Outputs should not contain secrets. Found possible secret: function 'listKeys' [https://aka.ms/bicep/linter/outputs-should-not-contain-secrets]

WARNING: /home/codespace/window3/sdk/formrecognizer/test-resources.bicep(60,41) : Warning outputs-should-not-contain-secrets: Outputs should not contain secrets. Found possible secret: function 'listKeys' [https://aka.ms/bicep/linter/outputs-should-not-contain-secrets]
/home/codespace/window3/sdk/formrecognizer/test-resources.bicep(61,157) : Warning outputs-should-not-contain-secrets: Outputs should not contain secrets. Found possible secret: function 'listServiceSas' [https://aka.ms/bicep/linter/outputs-should-not-contain-secrets]
/home/codespace/window3/sdk/formrecognizer/test-resources.bicep(62,155) : Warning outputs-should-not-contain-secrets: Outputs should not contain secrets. Found possible secret: function 'listServiceSas' [https://aka.ms/bicep/linter/outputs-should-not-contain-secrets]
/home/codespace/window3/sdk/formrecognizer/test-resources.bicep(63,184) : Warning outputs-should-not-contain-secrets: Outputs should not contain secrets. Found possible secret: function 'listServiceSas' [https://aka.ms/bicep/linter/outputs-should-not-contain-secrets]

WARNING: /home/codespace/window3/sdk/translation/test-resources.bicep(67,42) : Warning outputs-should-not-contain-secrets: Outputs should not contain secrets. Found possible secret: function 'listKeys' [https://aka.ms/bicep/linter/outputs-should-not-contain-secrets]

WARNING: /home/codespace/window3/sdk/storage/test-resources.bicep(294,29) : Warning outputs-should-not-contain-secrets: Outputs should not contain secrets. Found possible secret: function 'listKeys' [https://aka.ms/bicep/linter/outputs-should-not-contain-secrets]
/home/codespace/window3/sdk/storage/test-resources.bicep(295,33) : Warning outputs-should-not-contain-secrets: Outputs should not contain secrets. Found possible secret: function 'listAccountSas' [https://aka.ms/bicep/linter/outputs-should-not-contain-secrets]
/home/codespace/window3/sdk/storage/test-resources.bicep(296,115) : Warning outputs-should-not-contain-secrets: Outputs should not contain secrets. Found possible secret: function 'listKeys' [https://aka.ms/bicep/linter/outputs-should-not-contain-secrets]
/home/codespace/window3/sdk/storage/test-resources.bicep(299,33) : Warning outputs-should-not-contain-secrets: Outputs should not contain secrets. Found possible secret: function 'listKeys' [https://aka.ms/bicep/linter/outputs-should-not-contain-secrets]
/home/codespace/window3/sdk/storage/test-resources.bicep(300,37) : Warning outputs-should-not-contain-secrets: Outputs should not contain secrets. Found possible secret: function 'listAccountSas' [https://aka.ms/bicep/linter/outputs-should-not-contain-secrets]
/home/codespace/window3/sdk/storage/test-resources.bicep(301,127) : Warning outputs-should-not-contain-secrets: Outputs should not contain secrets. Found possible secret: function 'listKeys' [https://aka.ms/bicep/linter/outputs-should-not-contain-secrets]
/home/codespace/window3/sdk/storage/test-resources.bicep(304,45) : Warning outputs-should-not-contain-secrets: Outputs should not contain secrets. Found possible secret: function 'listKeys' [https://aka.ms/bicep/linter/outputs-should-not-contain-secrets]
/home/codespace/window3/sdk/storage/test-resources.bicep(305,49) : Warning outputs-should-not-contain-secrets: Outputs should not contain secrets. Found possible secret: function 'listAccountSas' [https://aka.ms/bicep/linter/outputs-should-not-contain-secrets]
/home/codespace/window3/sdk/storage/test-resources.bicep(308,34) : Warning outputs-should-not-contain-secrets: Outputs should not contain secrets. Found possible secret: function 'listKeys' [https://aka.ms/bicep/linter/outputs-should-not-contain-secrets]
/home/codespace/window3/sdk/storage/test-resources.bicep(309,38) : Warning outputs-should-not-contain-secrets: Outputs should not contain secrets. Found possible secret: function 'listAccountSas' [https://aka.ms/bicep/linter/outputs-should-not-contain-secrets]
/home/codespace/window3/sdk/storage/test-resources.bicep(310,124) : Warning outputs-should-not-contain-secrets: Outputs should not contain secrets. Found possible secret: function 'listKeys' [https://aka.ms/bicep/linter/outputs-should-not-contain-secrets]
/home/codespace/window3/sdk/storage/test-resources.bicep(313,41) : Warning outputs-should-not-contain-secrets: Outputs should not contain secrets. Found possible secret: function 'listKeys' [https://aka.ms/bicep/linter/outputs-should-not-contain-secrets]
/home/codespace/window3/sdk/storage/test-resources.bicep(314,45) : Warning outputs-should-not-contain-secrets: Outputs should not contain secrets. Found possible secret: function 'listAccountSas' [https://aka.ms/bicep/linter/outputs-should-not-contain-secrets]
/home/codespace/window3/sdk/storage/test-resources.bicep(315,131) : Warning outputs-should-not-contain-secrets: Outputs should not contain secrets. Found possible secret: function 'listKeys' [https://aka.ms/bicep/linter/outputs-should-not-contain-secrets]
/home/codespace/window3/sdk/storage/test-resources.bicep(318,42) : Warning outputs-should-not-contain-secrets: Outputs should not contain secrets. Found possible secret: function 'listKeys' [https://aka.ms/bicep/linter/outputs-should-not-contain-secrets]
/home/codespace/window3/sdk/storage/test-resources.bicep(319,46) : Warning outputs-should-not-contain-secrets: Outputs should not contain secrets. Found possible secret: function 'listAccountSas' [https://aka.ms/bicep/linter/outputs-should-not-contain-secrets]
/home/codespace/window3/sdk/storage/test-resources.bicep(320,139) : Warning outputs-should-not-contain-secrets: Outputs should not contain secrets. Found possible secret: function 'listKeys' [https://aka.ms/bicep/linter/outputs-should-not-contain-secrets]

WARNING: /home/codespace/window3/sdk/mixedreality/test-resources.bicep(25,42) : Warning outputs-should-not-contain-secrets: Outputs should not contain secrets. Found possible secret: function 'listKeys' [https://aka.ms/bicep/linter/outputs-should-not-contain-secrets]

WARNING: /home/codespace/window3/sdk/communication/test-resources/test-resources.bicep(28,49) : Warning outputs-should-not-contain-secrets: Outputs should not contain secrets. Found possible secret: function 'listKeys' [https://aka.ms/bicep/linter/outputs-should-not-contain-secrets]
/home/codespace/window3/sdk/communication/test-resources/test-resources.bicep(29,66) : Warning outputs-should-not-contain-secrets: Outputs should not contain secrets. Found possible secret: function 'listKeys' [https://aka.ms/bicep/linter/outputs-should-not-contain-secrets]
/home/codespace/window3/sdk/communication/test-resources/test-resources.bicep(31,50) : Warning outputs-should-not-contain-secrets: Outputs should not contain secrets. Found possible secret: function 'listKeys' [https://aka.ms/bicep/linter/outputs-should-not-contain-secrets]

WARNING: /home/codespace/window3/sdk/communication/communication-email/test-resources.bicep(52,49) : Warning outputs-should-not-contain-secrets: Outputs should not contain secrets. Found possible secret: function 'listKeys' [https://aka.ms/bicep/linter/outputs-should-not-contain-secrets]
/home/codespace/window3/sdk/communication/communication-email/test-resources.bicep(53,66) : Warning outputs-should-not-contain-secrets: Outputs should not contain secrets. Found possible secret: function 'listKeys' [https://aka.ms/bicep/linter/outputs-should-not-contain-secrets]
/home/codespace/window3/sdk/communication/communication-email/test-resources.bicep(55,55) : Warning outputs-should-not-contain-secrets: Outputs should not contain secrets. Found possible secret: function 'listKeys' [https://aka.ms/bicep/linter/outputs-should-not-contain-secrets]

WARNING: /home/codespace/window3/sdk/template/test-resources.bicep(29,45) : Warning outputs-should-not-contain-secrets: Outputs should not contain secrets. Found possible secret: function 'listKeys' [https://aka.ms/bicep/linter/outputs-should-not-contain-secrets]

WARNING: /home/codespace/window3/sdk/remoterendering/test-resources.bicep(111,49) : Warning outputs-should-not-contain-secrets: Outputs should not contain secrets. Found possible secret: function 'listKeys' [https://aka.ms/bicep/linter/outputs-should-not-contain-secrets]
/home/codespace/window3/sdk/remoterendering/test-resources.bicep(112,57) : Warning outputs-should-not-contain-secrets: Outputs should not contain secrets. Found possible secret: function 'listKeys' [https://aka.ms/bicep/linter/outputs-should-not-contain-secrets]
/home/codespace/window3/sdk/remoterendering/test-resources.bicep(117,47) : Warning outputs-should-not-contain-secrets: Outputs should not contain secrets. Found possible secret: function 'listServiceSas' [https://aka.ms/bicep/linter/outputs-should-not-contain-secrets]

WARNING: /home/codespace/window3/sdk/tables/test-resources.bicep(62,29) : Warning outputs-should-not-contain-secrets: Outputs should not contain secrets. Found possible secret: function 'listKeys' [https://aka.ms/bicep/linter/outputs-should-not-contain-secrets]
/home/codespace/window3/sdk/tables/test-resources.bicep(63,31) : Warning outputs-should-not-contain-secrets: Outputs should not contain secrets. Found possible secret: function 'listAccountSas' [https://aka.ms/bicep/linter/outputs-should-not-contain-secrets]
/home/codespace/window3/sdk/tables/test-resources.bicep(64,133) : Warning outputs-should-not-contain-secrets: Outputs should not contain secrets. Found possible secret: function 'listAccountSas' [https://aka.ms/bicep/linter/outputs-should-not-contain-secrets]
/home/codespace/window3/sdk/tables/test-resources.bicep(65,115) : Warning outputs-should-not-contain-secrets: Outputs should not contain secrets. Found possible secret: function 'listKeys' [https://aka.ms/bicep/linter/outputs-should-not-contain-secrets]

WARNING: /home/codespace/window3/sdk/eventgrid/test-resources.bicep(139,47) : Warning outputs-should-not-contain-secrets: Outputs should not contain secrets. Found possible secret: function 'listKeys' [https://aka.ms/bicep/linter/outputs-should-not-contain-secrets]

WARNING: /home/codespace/window3/sdk/cognitivelanguage/test-resources.bicep(153,34) : Warning outputs-should-not-contain-secrets: Outputs should not contain secrets. Found possible secret: function 'listKeys' [https://aka.ms/bicep/linter/outputs-should-not-contain-secrets]
/home/codespace/window3/sdk/cognitivelanguage/test-resources.bicep(154,38) : Warning outputs-should-not-contain-secrets: Outputs should not contain secrets. Found possible secret: function 'listKeys' [https://aka.ms/bicep/linter/outputs-should-not-contain-secrets]

WARNING: /home/codespace/window3/sdk/eventhub/event-hubs/perf-resources.bicep(5,9) : Warning BCP334: The provided value can have a length as small as 3 and may be too short to assign to a target with a configured minimum length of 6.
/home/codespace/window3/sdk/eventhub/event-hubs/perf-resources.bicep(13,12) : Warning BCP035: The specified "resource" declaration is missing the following required properties: "location". If this is an inaccuracy in the documentation, please report it to the Bicep Team. [https://aka.ms/bicep-type-issues]
/home/codespace/window3/sdk/eventhub/event-hubs/perf-resources.bicep(23,44) : Warning outputs-should-not-contain-secrets: Outputs should not contain secrets. Found possible secret: function 'listkeys' [https://aka.ms/bicep/linter/outputs-should-not-contain-secrets]

WARNING: /home/codespace/window3/sdk/eventhub/event-hubs/test/stress/stress-test-resources.bicep(11,39) : Warning no-hardcoded-env-urls: Environment URLs should not be hardcoded. Use the environment() function to ensure compatibility across clouds. Found this disallowed host: "core.windows.net" [https://aka.ms/bicep/linter/no-hardcoded-env-urls]
/home/codespace/window3/sdk/eventhub/event-hubs/test/stress/stress-test-resources.bicep(16,5) : Warning decompiler-cleanup: The name of variable 'eventHubsNamespace_var' appears to have originated from a naming conflict during a decompilation from JSON. Consider renaming it and removing the suffix (using the editor's rename functionality). [https://aka.ms/bicep/linter/decompiler-cleanup]
/home/codespace/window3/sdk/eventhub/event-hubs/test/stress/stress-test-resources.bicep(19,5) : Warning decompiler-cleanup: The name of variable 'storageAccount_var' appears to have originated from a naming conflict during a decompilation from JSON. Consider renaming it and removing the suffix (using the editor's rename functionality). [https://aka.ms/bicep/linter/decompiler-cleanup]
/home/codespace/window3/sdk/eventhub/event-hubs/test/stress/stress-test-resources.bicep(22,5) : Warning no-unused-vars: Variable "eventHubsAuthRuleResourceId" is declared but never used. [https://aka.ms/bicep/linter/no-unused-vars]
/home/codespace/window3/sdk/eventhub/event-hubs/test/stress/stress-test-resources.bicep(26,9) : Warning BCP334: The provided value can have a length as small as 3 and may be too short to assign to a target with a configured minimum length of 6.
/home/codespace/window3/sdk/eventhub/event-hubs/test/stress/stress-test-resources.bicep(36,9) : Warning use-parent-property: Resource "eventHubsNamespace_eventHubName" has its name formatted as a child of resource "eventHubsNamespace". The syntax can be simplified by using the parent property. [https://aka.ms/bicep/linter/use-parent-property]
/home/codespace/window3/sdk/eventhub/event-hubs/test/stress/stress-test-resources.bicep(37,3) : Warning BCP187: The property "location" does not exist in the resource or type definition, although it might still be valid. If this is an inaccuracy in the documentation, please report it to the Bicep Team. [https://aka.ms/bicep-type-issues]
/home/codespace/window3/sdk/eventhub/event-hubs/test/stress/stress-test-resources.bicep(48,9) : Warning use-parent-property: Resource "eventHubsNamespace_eventHubName_eventHubAuthRuleName" has its name formatted as a child of resource "eventHubsNamespace_eventHubName". The syntax can be simplified by using the parent property. [https://aka.ms/bicep/linter/use-parent-property]
/home/codespace/window3/sdk/eventhub/event-hubs/test/stress/stress-test-resources.bicep(66,5) : Warning BCP073: The property "tier" is read-only. Expressions cannot be assigned to read-only properties. If this is an inaccuracy in the documentation, please report it to the Bicep Team. [https://aka.ms/bicep-type-issues]
/home/codespace/window3/sdk/eventhub/event-hubs/test/stress/stress-test-resources.bicep(81,71) : Warning BCP081: Resource type "Microsoft.Authorization/roleAssignments@2019-04-01-preview" does not have types available. Bicep is unable to validate resource properties prior to deployment, but this will not block the resource from being deployed.
/home/codespace/window3/sdk/eventhub/event-hubs/test/stress/stress-test-resources.bicep(90,64) : Warning BCP081: Resource type "Microsoft.Authorization/roleAssignments@2019-04-01-preview" does not have types available. Bicep is unable to validate resource properties prior to deployment, but this will not block the resource from being deployed.
/home/codespace/window3/sdk/eventhub/event-hubs/test/stress/stress-test-resources.bicep(101,45) : Warning outputs-should-not-contain-secrets: Outputs should not contain secrets. Found possible secret: function 'listkeys' [https://aka.ms/bicep/linter/outputs-should-not-contain-secrets]
/home/codespace/window3/sdk/eventhub/event-hubs/test/stress/stress-test-resources.bicep(104,35) : Warning outputs-should-not-contain-secrets: Outputs should not contain secrets. Found possible secret: function 'listkeys' [https://aka.ms/bicep/linter/outputs-should-not-contain-secrets]
/home/codespace/window3/sdk/eventhub/event-hubs/test/stress/stress-test-resources.bicep(105,129) : Warning outputs-should-not-contain-secrets: Outputs should not contain secrets. Found possible secret: function 'listKeys' [https://aka.ms/bicep/linter/outputs-should-not-contain-secrets]
/home/codespace/window3/sdk/eventhub/event-hubs/test/stress/stress-test-resources.bicep(105,156) : Warning BCP241: The "providers" function is deprecated and will be removed in a future release of Bicep. Please add a comment to https://github.com/Azure/bicep/issues/2017 if you believe this will impact your workflow.
/home/codespace/window3/sdk/eventhub/event-hubs/test/stress/stress-test-resources.bicep(107,42) : Warning outputs-should-not-contain-secrets: Outputs should not contain secrets. Found possible secret: function 'listKeys' [https://aka.ms/bicep/linter/outputs-should-not-contain-secrets]
/home/codespace/window3/sdk/eventhub/event-hubs/test/stress/stress-test-resources.bicep(107,69) : Warning BCP241: The "providers" function is deprecated and will be removed in a future release of Bicep. Please add a comment to https://github.com/Azure/bicep/issues/2017 if you believe this will impact your workflow.

WARNING: /home/codespace/window3/sdk/servicebus/test-resources.bicep(123,46) : Warning outputs-should-not-contain-secrets: Outputs should not contain secrets. Found possible secret: function 'listKeys' [https://aka.ms/bicep/linter/outputs-should-not-contain-secrets]
/home/codespace/window3/sdk/servicebus/test-resources.bicep(124,54) : Warning outputs-should-not-contain-secrets: Outputs should not contain secrets. Found possible secret: function 'listKeys' [https://aka.ms/bicep/linter/outputs-should-not-contain-secrets]
/home/codespace/window3/sdk/servicebus/test-resources.bicep(131,36) : Warning outputs-should-not-contain-secrets: Outputs should not contain secrets. Found possible secret: function 'listKeys' [https://aka.ms/bicep/linter/outputs-should-not-contain-secrets]

WARNING: /home/codespace/window3/sdk/servicebus/service-bus/perf-resources.bicep(9,5) : Warning decompiler-cleanup: The name of variable 'authorizationRuleName_var' appears to have originated from a naming conflict during a decompilation from JSON. Consider renaming it and removing the suffix (using the editor's rename functionality). [https://aka.ms/bicep/linter/decompiler-cleanup]
/home/codespace/window3/sdk/servicebus/service-bus/perf-resources.bicep(38,46) : Warning outputs-should-not-contain-secrets: Outputs should not contain secrets. Found possible secret: function 'listKeys' [https://aka.ms/bicep/linter/outputs-should-not-contain-secrets]

WARNING: /home/codespace/window3/sdk/servicebus/service-bus/test/stress/stress-test-resources.bicep(9,5) : Warning decompiler-cleanup: The name of variable 'authorizationRuleName_var' appears to have originated from a naming conflict during a decompilation from JSON. Consider renaming it and removing the suffix (using the editor's rename functionality). [https://aka.ms/bicep/linter/decompiler-cleanup]
/home/codespace/window3/sdk/servicebus/service-bus/test/stress/stress-test-resources.bicep(38,46) : Warning outputs-should-not-contain-secrets: Outputs should not contain secrets. Found possible secret: function 'listKeys' [https://aka.ms/bicep/linter/outputs-should-not-contain-secrets]

WARNING: /home/codespace/window3/sdk/web-pubsub/test-resources.bicep(57,39) : Warning outputs-should-not-contain-secrets: Outputs should not contain secrets. Found possible secret: function 'listKeys' [https://aka.ms/bicep/linter/outputs-should-not-contain-secrets]
/home/codespace/window3/sdk/web-pubsub/test-resources.bicep(58,29) : Warning outputs-should-not-contain-secrets: Outputs should not contain secrets. Found possible secret: function 'listKeys' [https://aka.ms/bicep/linter/outputs-should-not-contain-secrets]
/home/codespace/window3/sdk/web-pubsub/test-resources.bicep(59,42) : Warning outputs-should-not-contain-secrets: Outputs should not contain secrets. Found possible secret: function 'listKeys' [https://aka.ms/bicep/linter/outputs-should-not-contain-secrets]
/home/codespace/window3/sdk/web-pubsub/test-resources.bicep(60,56) : Warning outputs-should-not-contain-secrets: Outputs should not contain secrets. Found possible secret: function 'listKeys' [https://aka.ms/bicep/linter/outputs-should-not-contain-secrets]

WARNING: /home/codespace/window3/sdk/search/test-resources.bicep(19,38) : Warning outputs-should-not-contain-secrets: Outputs should not contain secrets. Found possible secret: function 'listAdminKeys' [https://aka.ms/bicep/linter/outputs-should-not-contain-secrets]
/home/codespace/window3/sdk/search/test-resources.bicep(20,42) : Warning outputs-should-not-contain-secrets: Outputs should not contain secrets. Found possible secret: function 'listAdminKeys' [https://aka.ms/bicep/linter/outputs-should-not-contain-secrets]

WARNING: /home/codespace/window3/sdk/maps/test-resources.bicep(43,39) : Warning outputs-should-not-contain-secrets: Outputs should not contain secrets. Found possible secret: function 'listKeys' [https://aka.ms/bicep/linter/outputs-should-not-contain-secrets]

WARNING: /home/codespace/window3/sdk/documentintelligence/test-resources.bicep(64,47) : Warning outputs-should-not-contain-secrets: Outputs should not contain secrets. Found possible secret: function 'listKeys' [https://aka.ms/bicep/linter/outputs-should-not-contain-secrets]
/home/codespace/window3/sdk/documentintelligence/test-resources.bicep(65,168) : Warning outputs-should-not-contain-secrets: Outputs should not contain secrets. Found possible secret: function 'listServiceSas' [https://aka.ms/bicep/linter/outputs-should-not-contain-secrets]
/home/codespace/window3/sdk/documentintelligence/test-resources.bicep(66,161) : Warning outputs-should-not-contain-secrets: Outputs should not contain secrets. Found possible secret: function 'listServiceSas' [https://aka.ms/bicep/linter/outputs-should-not-contain-secrets]
/home/codespace/window3/sdk/documentintelligence/test-resources.bicep(67,187) : Warning outputs-should-not-contain-secrets: Outputs should not contain secrets. Found possible secret: function 'listServiceSas' [https://aka.ms/bicep/linter/outputs-should-not-contain-secrets]
/home/codespace/window3/sdk/documentintelligence/test-resources.bicep(68,189) : Warning outputs-should-not-contain-secrets: Outputs should not contain secrets. Found possible secret: function 'listServiceSas' [https://aka.ms/bicep/linter/outputs-should-not-contain-secrets]
/home/codespace/window3/sdk/documentintelligence/test-resources.bicep(69,179) : Warning outputs-should-not-contain-secrets: Outputs should not contain secrets. Found possible secret: function 'listServiceSas' [https://aka.ms/bicep/linter/outputs-should-not-contain-secrets]
/home/codespace/window3/sdk/documentintelligence/test-resources.bicep(70,186) : Warning outputs-should-not-contain-secrets: Outputs should not contain secrets. Found possible secret: function 'listServiceSas' [https://aka.ms/bicep/linter/outputs-should-not-contain-secrets]

WARNING: /home/codespace/window3/sdk/healthdataaiservices/azure-health-deidentification/test-resources.bicep(21,7) : Warning no-unused-params: Parameter "deploymentTime" is declared but never used. [https://aka.ms/bicep/linter/no-unused-params]
/home/codespace/window3/sdk/healthdataaiservices/azure-health-deidentification/test-resources.bicep(32,9) : Warning BCP334: The provided value can have a length as small as 0 and may be too short to assign to a target with a configured minimum length of 3.
/home/codespace/window3/sdk/healthdataaiservices/azure-health-deidentification/test-resources.bicep(168,26) : Warning BCP081: Resource type "microsoft.healthdataaiservices/deidservices@2024-02-28-preview" does not have types available. Bicep is unable to validate resource properties prior to deployment, but this will not block the resource from being deployed.


```

---------

Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>
2024-08-27 10:40:03 -07:00
Maor Leger 65316d1a15
[identity] Use federated token in az cli (#30815)
### Packages impacted by this PR

@azure/identity

### Issues associated with this PR

N/A - test fixes

### Describe the problem that is addressed by this PR

Identity client libraries need some extensive setup to test various
credentials in different workloads. Some of the commands
require the az cli, and this enables us to login using az cli.

Eventually, my hope is to use this to provide federated credentials for
keyvault managed HSMs resource creation where our credential expires by
the time the HSM is deployed
2024-08-22 12:15:47 -07:00
Minh-Anh Phan 333191e841
Update System_Access_Token env for browser live test pipeline (#30831)
### Packages impacted by this PR


### Issues associated with this PR


### Describe the problem that is addressed by this PR
Enable system access token env var in the relay credential

### What are the possible designs available to address the problem? If
there are more than one possible design, why was the one in this PR
chosen?


### Are there test cases added in this PR? _(If not, why?)_


### Provide a list of related PRs _(if any)_


### Command used to generate this PR:**_(Applicable only to SDK release
request PRs)_

### Checklists
- [ ] Added impacted package name to the issue description
- [ ] Does this PR needs any fixes in the SDK Generator?** _(If so,
create an Issue in the
[Autorest/typescript](https://github.com/Azure/autorest.typescript)
repository and link it here)_
- [ ] Added a changelog (if necessary)
2024-08-21 07:26:17 -07:00
Wes Haggard a52fecfc36
Remove azure-sdk-docs-prod-blob-name usage (#30757)
Depends on https://github.com/Azure/azure-sdk-tools/pull/8842
2024-08-16 12:23:59 -07:00
Jeremy Meng a045cb9883
[eslint] fix ci failures (#30765)
Recently linting was enabled for `monitor-opentelemetry-exporter`. Its
eslint
config enables typed linting which requires its dependencies to be build
in
order to have proper types.

This PR passes `-t @azure/monitor-opentelemetry-exporter` to `rush
build`
before linting so that its dependencies are built.

While at it, also change the `run-for-all-packages` pipeline to use
`install-run-rush.js` for consistency.
2024-08-15 09:58:08 -07:00
Jeremy Meng 8e593c8106
[monitor-opentelemetry-exporter] enable linting (#30672)
This PR

- removes `-f html -o telemetry-exporter-lintReport.html || exit 0` from
`lint` NPM script
- updates eslint config to report warn for some rules
- applies result of `lint:fix`
- fixes/suppresses linting errors
- in analyze pipeline, changes to build packages before linting so that
linting with types works

### Packages impacted by this PR

monitor-opentelemetry-exporter

### Issues associated with this PR

https://github.com/Azure/azure-sdk-for-js/issues/17942
2024-08-06 18:28:15 -07:00
James Suplizio 33c19db4ed
Do not publish to the nightly MSDocs branch if nightly PublishPackages fails (#30671) 2024-08-06 13:23:54 -07:00
Wes Haggard 5236d8b66c
Update approver for EsrpRelease (#30628)
If we have an email from who requested the build we should use that for
both owners and approvers.
2024-08-02 11:04:24 -07:00
Jeremy Meng de729da1ca
[EngSys] remove AzurePowerShell credential workaround (#30601)
Now that the product issue is fixed and released in identity, we no
longer needs
this workaround. This PR removes it.
2024-08-01 09:33:30 -07:00
Minh-Anh Phan cfd6a778b7
[Eng] Turn off federated auth for cosmos (#30528)
### Packages impacted by this PR


### Issues associated with this PR
More details about the issue [here]

### Describe the problem that is addressed by this PR
Cosmos ci pipeline is failing after turning on Federated Auth by default

### Checklists
- [ ] Added impacted package name to the issue description
- [ ] Does this PR needs any fixes in the SDK Generator?** _(If so,
create an Issue in the
[Autorest/typescript](https://github.com/Azure/autorest.typescript)
repository and link it here)_
- [ ] Added a changelog (if necessary)
2024-07-25 11:07:14 -07:00
Jeremy Meng 521da107f5
[EngSys] Apply AzurePowerShellCredential workaround unconditionally (#30504)
so that all configurations have it.
2024-07-24 09:47:15 -07:00
Minh-Anh Phan 681de6db5b
[Eng] Set Default for Federated Auth to True (#30163)
### Describe the problem that is addressed by this PR
Remove local federated auth in tests.yml and enable Federated Auth by
default in eng folder
2024-07-22 17:24:20 -07:00
EmmaZhu-MSFT fb7ab94e61
[Storage]Bump package version, upgrade @azure/core-tracing dependency (#30437)
### Packages impacted by this PR


### Issues associated with this PR


### Describe the problem that is addressed by this PR


### What are the possible designs available to address the problem? If
there are more than one possible design, why was the one in this PR
chosen?


### Are there test cases added in this PR? _(If not, why?)_


### Provide a list of related PRs _(if any)_


### Command used to generate this PR:**_(Applicable only to SDK release
request PRs)_

### Checklists
- [ ] Added impacted package name to the issue description
- [ ] Does this PR needs any fixes in the SDK Generator?** _(If so,
create an Issue in the
[Autorest/typescript](https://github.com/Azure/autorest.typescript)
repository and link it here)_
- [ ] Added a changelog (if necessary)

---------

Co-authored-by: Jeremy Meng <jeremy.ymeng@gmail.com>
2024-07-22 08:54:44 -07:00
Minh-Anh Phan 89ee0f3174
[Eng Sys] Update default config for preview cloud for live tests (#30417)
### Describe the problem that is addressed by this PR
When we enable Federated Auth, `ServiceConnection` is a required
parameter in `AzurePowerShell@5` task. Without this variable, the Deploy
Test Resources tasks will fail. This PR aims to set this variable by
default for the `Preview` cloud.

Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>
2024-07-17 14:56:47 -07:00
Albert Cheng c48b2c48c9
pin npm to 22.4.x (#30446)
temporarily pinning npm 22 to 22.4.0 to adress issue #30445
2024-07-17 11:49:39 -07:00
Wes Haggard 92c0ef8c70
Add logging for partner publish pipeline (#30418) 2024-07-15 16:02:19 -07:00
Jeremy Meng 13408d4f2e
[EngSys] add a pipeline that can be manually triggered (#30269)
to lint and build all packages. This can be used to valid changes that
touches
large number of files, and are skipping CIs.

---------

Co-authored-by: Ben Broderick Phillips <ben@benbp.net>
2024-07-12 14:33:41 -07:00
Wes Haggard 663554aea3
Disable codeql as it is causing build issues (#30277)
All the other languages have disabled codeql and we are now hitting
blocking issues when running codeql on macos
(https://dev.azure.com/twcdot/Data/_workitems/edit/138580) and even on
the other OS's the configuration causes the builds to run for a long
time.
2024-07-03 15:02:38 -07:00
Azure SDK Bot 2a6847abda
Sync eng/common directory with azure-sdk-tools for PR 8549 (#30281)
Sync eng/common directory with azure-sdk-tools for PR
https://github.com/Azure/azure-sdk-tools/pull/8549 See [eng/common
workflow](https://github.com/Azure/azure-sdk-tools/blob/main/eng/common/README.md#workflow)

---------

Co-authored-by: Scott Beddall (from Dev Box) <scbedd@microsoft.com>
2024-07-03 14:55:31 -07:00
Daniel Jurek d344a4709c
Fix up live testing (#30192)
### Non-Federated pipeline

Failing (yesterday):
https://dev.azure.com/azure-sdk/internal/_build/results?buildId=3912438&view=results

Fixed:
https://dev.azure.com/azure-sdk/internal/_build/results?buildId=3914964&view=results


### Federated auth pipeline

There is an error in `archetype-sdk-tests.yml` which breaks some
pipelines.

Failing:
https://dev.azure.com/azure-sdk/internal/_build/results?buildId=3913894&view=results

Fixed:
https://dev.azure.com/azure-sdk/internal/_build/results?buildId=3916475&view=logs&j=43701d7e-216c-59bf-08d1-1efd0c7ac90a&t=2c222b04-4a7e-5bc1-61a2-d8f951031fe8
2024-06-27 09:59:59 -07:00
Daniel Jurek 473e2d54cf Only add SubscriptionConfigurationFilePaths if UseFederatedAuth is true 2024-06-26 15:23:31 -07:00
Ben Broderick Phillips ceca52d63e
Add pool env variable to build-test-resource-config template (#30177)
Update for https://github.com/Azure/azure-sdk-tools/pull/8371
2024-06-26 16:05:47 -04:00
Daniel Jurek 0bde3011e2
Wire up SubscriptionConfigurationFilePaths (#30174)
After merging eng/common changes, those changes need to be wired up. 

Traced yaml through to invocation of `build-test-resource-config.yml`
2024-06-25 14:10:35 -07:00
Ben Broderick Phillips dd53b7387f
Add pool variable and user env variables to test resources environment (#30116)
Change to support https://github.com/Azure/azure-sdk-tools/pull/8371
setting pool data
2024-06-21 17:40:23 -04:00
Minh-Anh Phan 4bbf348c59
[Eng] Update Env Var for Execute Samples Task (#30132)
### Describe the problem that is addressed by this PR
Our samples currently use `DefaultAzureCredential` to authenticate the
client. This causes a problem running samples live in the pipeline
because Managed Identity does not work in the live pipeline. This is a
short term work around: we create a fake authority host so that Managed
Identity can fail fast and it will succeed with the Powershell credential.

### What are the possible designs available to address the problem? If
there are more than one possible design, why was the one in this PR
chosen?
We do not want to change the samples to use a different credentials
because we want our customers to use DAC. We are discussing a long-term
solution by potentially adding exclude managed identity property similar
to Python/ .NET
2024-06-21 10:27:43 -07:00
Daniel Jurek 6e99a8e6a5
Set AZURESUBSCRIPTION_CLIENT_ID and AZURESUBSCRIPTION_TENANT_ID (#30133) 2024-06-21 16:27:57 +00:00
Daniel Jurek e853a8b30a
Add SYSTEM_ACCESSTOKEN to tests (#30127)
Needed to enable pipeline credential
2024-06-20 10:47:42 -07:00
Daniel Jurek 13d26a62fb
SubscriptionConfigurationFilePath -> SubscriptionConfigurationFilePaths (#30082)
Needed for https://github.com/Azure/azure-sdk-tools/pull/8422
2024-06-17 23:11:55 +00:00