Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix dev build script to update dependencies acc to semver #6157

Merged
merged 13 commits into from
Nov 15, 2019

Conversation

KarishmaGhiya
Copy link
Member

@KarishmaGhiya KarishmaGhiya commented Nov 12, 2019

Combined both Daniel's script and the script from PR - #5135 commit

@KarishmaGhiya
Copy link
Member Author

@danieljurek @weshaggard This PR is ready for review and made all requested changes discussed offline


// Update any references to internal projects with the new versions
for (const package of Object.keys(rushPackages)) {
if (
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This filter is being executed twice. We can execute it once saving lines of code and making it so that future logic changes only have to edit one version of the filter logic.

let targetPackages = [];
for (const package of Object.keys(rushPackages)) { 
    if (
      ["client", "core"].includes(rushPackages[package].versionPolicy)
      && rushPackages[package].projectFolder.startsWith(`sdk/${service}`)
    ) {
      targetPackages.push(package);
    }
}

for (const package of targetPackages)) {
    console.log("package updated = ");
    console.log(package);
    rushPackages = updatePackageVersion(rushPackages, package, buildId);
    console.log(rushPackages[package].newVer);
}

...

@KarishmaGhiya
Copy link
Member Author

KarishmaGhiya commented Nov 14, 2019

@weshaggard The issue comes with js-core pipeline if i only update the dependencies of the packages we want to ship then we get mismatching dependencies in case the packages are dependent amongst themselves -

I think we need to update the packages that are depndent on the packages we build as well

Starting "rush update"

@azure/core-asynciterator-polyfill
^1.0.0

  • @azure/app-configuration
  • @azure/event-hubs
    ^1.0.0-dev
  • @azure/core-paging

@azure/core-http
^1.0.0

  • @azure/app-configuration
  • @azure/cognitiveservices-inkrecognizer
  • @azure/identity
  • @azure/keyvault-certificates
  • @azure/keyvault-keys
  • @azure/keyvault-secrets
  • @azure/service-bus
  • @azure/storage-blob
  • @azure/storage-file-share
  • @azure/storage-queue
  • @azure/template
    ^1.0.0-dev
  • @azure/core-arm
  • @azure/core-lro

@azure/core-tracing
1.0.0-preview.5

  • @azure/app-configuration
  • @azure/event-hubs
  • @azure/identity
  • @azure/keyvault-certificates
  • @azure/keyvault-keys
  • @azure/keyvault-secrets
  • @azure/storage-blob
  • @azure/storage-file-share
  • @azure/storage-queue
    ^1.0.0-dev
  • @azure/core-auth
  • @azure/core-http

@azure/abort-controller
^1.0.0

  • @azure/cognitiveservices-inkrecognizer
  • @azure/event-hubs
  • @azure/identity
  • @azure/keyvault-certificates
  • @azure/keyvault-keys
  • @azure/keyvault-secrets
  • @azure/storage-blob
  • @azure/storage-file-share
  • @azure/storage-queue
    ^1.0.0-dev
  • @azure/core-amqp
  • @azure/core-auth
  • @azure/core-http
  • @azure/core-lro

@azure/core-arm
1.0.0-preview.7

  • @azure/cognitiveservices-inkrecognizer
  • @azure/keyvault-certificates
    ^1.0.0-dev
  • @azure/core-lro

@azure/core-auth
^1.0.0

  • @azure/cognitiveservices-inkrecognizer
    ^1.0.0-dev
  • @azure/core-amqp
  • @azure/core-http

@azure/identity
^1.0.0-dev

  • @azure/core-amqp
  • @azure/core-lro
    ^1.0.0
  • @azure/event-hubs
  • @azure/keyvault-certificates
  • @azure/keyvault-keys
  • @azure/keyvault-secrets
  • @azure/storage-blob
  • @azure/storage-queue

@azure/logger
^1.0.0-dev

  • @azure/core-http
    ^1.0.0
  • @azure/identity
  • @azure/keyvault-certificates
  • @azure/keyvault-keys
  • @azure/keyvault-secrets
  • @azure/storage-blob
  • @azure/storage-file-share
  • @azure/storage-queue

Found 8 mis-matching dependencies!

Copy link
Member

@weshaggard weshaggard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clean-up the last few items and we should be good.

@KarishmaGhiya KarishmaGhiya merged commit 812e2f0 into Azure:master Nov 15, 2019
@KarishmaGhiya KarishmaGhiya deleted the fixDevBuildScript branch February 6, 2020 00:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants