Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

Deployment fix for --auto_create_cli_app flag bug #2921

Merged

Conversation

AdamL-Microsoft
Copy link
Contributor

@AdamL-Microsoft AdamL-Microsoft commented Mar 9, 2023

Summary of the Pull Request

Fixes #2915.

Refactoring the deployment config and OneFuzz cli config settings created a bug that required new deployments know the CLI app ID prior to it being created in situations where the CLI app ID is specifically set to be created at deploy time using the --auto_create_cli_app flag.

PR Checklist

Info on Pull Request

updated:
src/deployment/deploy.py
src/deployment/deploylib/configuration.py

Validation Steps Performed

  • run deploy.py $REGION $RESOURCE_GROUP $APP_NAME $OWNER config.json --auto_create_cli_app (where config.json doesn't have the normally required "cli_client_id" key)

deleted after merge from origin/main
Fork Sync: Update from parent repository
Fork Sync: Update from parent repository
Fork Sync: Update from parent repository
Fork Sync: Update from parent repository
Fork Sync: Update from parent repository
Fork Sync: Update from parent repository
Fork Sync: Update from parent repository
Fork Sync: Update from parent repository
Fork Sync: Update from parent repository
Fork Sync: Update from parent repository
Fork Sync: Update from parent repository
Fork Sync: Update from parent repository
Fork Sync: Update from parent repository
Fork Sync: Update from parent repository
Fork Sync: Update from parent repository
Fork Sync: Update from parent repository
Fork Sync: Update from parent repository
Fork Sync: Update from parent repository
Fork Sync: Update from parent repository
Fork Sync: Update from parent repository
Fork Sync: Update from parent repository
Fork Sync: Update from parent repository
Fork Sync: Update from parent repository
Fork Sync: Update from parent repository
Fork Sync: Update from parent repository
Fork Sync: Update from parent repository
@codecov-commenter
Copy link

codecov-commenter commented Mar 9, 2023

Codecov Report

Merging #2921 (03bed39) into main (f00248f) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main    #2921   +/-   ##
=======================================
  Coverage   28.84%   28.84%           
=======================================
  Files         302      302           
  Lines       35895    35895           
=======================================
  Hits        10353    10353           
  Misses      25542    25542           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@AdamL-Microsoft AdamL-Microsoft marked this pull request as ready for review March 10, 2023 17:21
Copy link
Contributor

@nharper285 nharper285 left a comment

Choose a reason for hiding this comment

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

This looks good.

Have you tested in PME and microsoft tenant?

The test cases I would think about are:

  • Deploying to Microsoft using the Micrsoft onefuzz-cli app id in config.json
  • Using the auto_create flag to create a cli app id in Microsot tenant
  • Deploying to PME using the PME onefuzz-cli app id in config.json
  • Using the `auto_create flag to create a cli app id in PME tenant.

docs/getting-started.md Outdated Show resolved Hide resolved
@AdamL-Microsoft
Copy link
Contributor Author

This looks good.

Have you tested in PME and microsoft tenant?

The test cases I would think about are:

  • Deploying to Microsoft using the Micrsoft onefuzz-cli app id in config.json
  • Using the auto_create flag to create a cli app id in Microsot tenant
  • Deploying to PME using the PME onefuzz-cli app id in config.json
  • Using the `auto_create flag to create a cli app id in PME tenant.

These tests completed successfully, details in teams.

Copy link
Contributor

@mgreisen mgreisen left a comment

Choose a reason for hiding this comment

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

:shipit:

@nharper285 nharper285 self-requested a review March 10, 2023 23:25
@mgreisen mgreisen merged commit 1f67494 into microsoft:main Mar 10, 2023
@AdamL-Microsoft AdamL-Microsoft deleted the deployment-fix-create-cli-client-id branch March 10, 2023 23:29
@mgreisen mgreisen mentioned this pull request Mar 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deployment section of Getting Started guide is out of date
4 participants