Skip to content

Commit 758f0c8

Browse files
Improvements to dependency graph (Azure#20191)
1 parent 0c18037 commit 758f0c8

File tree

3 files changed

+20
-7
lines changed

3 files changed

+20
-7
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Azure SDK for JavaScript
22

3-
[![Packages](https://img.shields.io/badge/packages-latest-blue.svg)](https://azure.github.io/azure-sdk/releases/latest/js.html) [![Dependencies](https://img.shields.io/badge/dependency-report-blue.svg)](https://azuresdkartifacts.blob.core.windows.net/azure-sdk-for-js/dependencies/dependencies.html) [![DependencyGraph](https://img.shields.io/badge/dependency-graph-blue.svg)](https://azuresdkartifacts.blob.core.windows.net/azure-sdk-for-js/dependencies/InterdependencyGraph.html)
3+
[![Packages](https://img.shields.io/badge/packages-latest-blue.svg)](https://azure.github.io/azure-sdk/releases/latest/js.html) [![Dependencies](https://img.shields.io/badge/dependency-report-blue.svg)](https://azuresdkartifacts.blob.core.windows.net/azure-sdk-for-js/dependencies/dependencies.html) [![DependencyGraph](https://img.shields.io/badge/dependency-graph-blue.svg)](https://azuresdkartifacts.blob.core.windows.net/azure-sdk-for-js/dependencies/dependencyGraph/dagre.html)
44

55
This repository is for the Azure SDK for JavaScript (Node.js & Browser). It contains libraries for the breadth of Azure services. Management libraries are packages that you would use to provision and manage Azure resources. Client libraries are packages that you would use to consume these resources and interact with them.
66

@@ -58,7 +58,7 @@ Security issues and bugs should be reported privately, via email, to the Microso
5858
For details on contributing to this repository, see the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/main/CONTRIBUTING.md).
5959

6060
This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit
61-
https://cla.microsoft.com.
61+
<https://cla.microsoft.com>.
6262

6363
When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repositories using our CLA.
6464

eng/pipelines/aggregate-reports.yml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,23 +45,35 @@ stages:
4545
displayName: 'Install tool dependencies'
4646

4747
- script: |
48-
node index.js --verbose --out "$(Build.ArtifactStagingDirectory)/dependencies.html" --dump "$(Build.ArtifactStagingDirectory)/data.js"
48+
node index.js --verbose --out "$(Build.ArtifactStagingDirectory)/dependencies.html" --dump "$(Build.ArtifactStagingDirectory)"
4949
workingDirectory: '$(Build.SourcesDirectory)/eng/tools/analyze-deps'
5050
displayName: 'Validate dependencies'
5151
5252
- pwsh: |
5353
copy eng/common/InterdependencyGraph.html $(Build.ArtifactStagingDirectory)
5454
displayName: 'Copy static file'
5555
56-
- task: AzureFileCopy@3
57-
displayName: 'Upload dependency report'
56+
- task: AzureFileCopy@4
57+
displayName: 'Upload Dependency Report'
5858
inputs:
59-
sourcePath: '$(Build.ArtifactStagingDirectory)'
59+
sourcePath: '$(Build.ArtifactStagingDirectory)/*'
6060
azureSubscription: 'Azure SDK Artifacts'
6161
destination: AzureBlob
6262
storage: azuresdkartifacts
6363
containerName: 'azure-sdk-for-js'
6464
blobPrefix: dependencies
65+
AdditionalArgumentsForBlobCopy: '--exclude-pattern=*data.js*'
66+
67+
- task: AzureFileCopy@4
68+
displayName: 'Upload Dependency Graph'
69+
inputs:
70+
sourcePath: '$(Build.ArtifactStagingDirectory)/*'
71+
azureSubscription: 'Azure SDK Artifacts'
72+
destination: AzureBlob
73+
storage: azuresdkartifacts
74+
containerName: 'azure-sdk-for-js'
75+
blobPrefix: dependencies/dependencyGraph
76+
AdditionalArgumentsForBlobCopy: '--include-pattern=*data.js*'
6577

6678
- task: PowerShell@2
6779
displayName: "Verify Repository Resource Refs"

eng/tools/analyze-deps/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,8 @@ const main = async () => {
321321
for (const pkgId of Object.keys(dumpData)) {
322322
resolveRushPackageDeps(dumpData, internalPackages, pnpmLock, pkgId, args.external);
323323
}
324-
await writeFile(args.dump, "const data = " + JSON.stringify(dumpData) + ";");
324+
await writeFile(`${args.dump}/data.js`, "const data = " + JSON.stringify(dumpData) + ";");
325+
await writeFile(`${args.dump}/arcdata.json`, JSON.stringify(dumpData));
325326
}
326327
}
327328
catch (ex) {

0 commit comments

Comments
 (0)