Skip to content

Script that creates packaged releases package archive#2508

Merged
troydai merged 2 commits intoAzure:masterfrom
derekbekoe:automated-package-archive
Mar 17, 2017
Merged

Script that creates packaged releases package archive#2508
troydai merged 2 commits intoAzure:masterfrom
derekbekoe:automated-package-archive

Conversation

@derekbekoe
Copy link
Member

Saves a couple of hours during each release for Docker/Debian 😄

@codecov-io
Copy link

codecov-io commented Mar 14, 2017

Codecov Report

Merging #2508 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #2508   +/-   ##
=======================================
  Coverage   72.02%   72.02%           
=======================================
  Files         362      362           
  Lines       19766    19766           
  Branches     2913     2913           
=======================================
  Hits        14236    14236           
+ Misses       4612     4608    -4     
- Partials      918      922    +4
Impacted Files Coverage Δ
...-cli-role/azure/cli/command_modules/role/custom.py 17.89% <0%> (ø)
...dback/azure/cli/command_modules/feedback/custom.py 34.69% <0%> (ø)
src/azure-cli-core/azure/cli/core/_util.py 66.66% <0%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ac03b51...188a78a. Read the comment docs.

Copy link
Contributor

@troydai troydai left a comment

Choose a reason for hiding this comment

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

The code looks good to me besides a few necessary changes. Besides those I left comments with the code, the others are:

  1. Run the code through PEP8 and pylint. We treat utility codes as seriously as product code.
  2. Add empty lines in the main function to improve readability.

Copy link
Contributor

Choose a reason for hiding this comment

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

Make the command accept a response file instead of typing every module and their versions on the same line. It is too easy to make a mistake in this way.

Copy link
Member Author

Choose a reason for hiding this comment

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

Added support for this.

Copy link
Contributor

Choose a reason for hiding this comment

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

Make all these paths absolute paths by joining the segments with root path. It makes the paths deterministic, otherwise the relative path will be impacted by the working directory.

Copy link
Member Author

Choose a reason for hiding this comment

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

By Design.
The paths here are supposed to be relative (see code above).
The first path is relative path from the repo root, the second is relative path to file to patch in the packaged release.
The REPO_ROOT_DIR is added to the first path, and the current working dir is added to the second path.

@derekbekoe derekbekoe force-pushed the automated-package-archive branch from 68f01cc to 188a78a Compare March 16, 2017 23:10
Copy link
Member Author

@derekbekoe derekbekoe left a comment

Choose a reason for hiding this comment

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

@troydai comments addressed.

Copy link
Member Author

Choose a reason for hiding this comment

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

By Design.
The paths here are supposed to be relative (see code above).
The first path is relative path from the repo root, the second is relative path to file to patch in the packaged release.
The REPO_ROOT_DIR is added to the first path, and the current working dir is added to the second path.

Copy link
Member Author

Choose a reason for hiding this comment

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

Added support for this.

@troydai troydai merged commit ffce175 into Azure:master Mar 17, 2017
@derekbekoe derekbekoe deleted the automated-package-archive branch March 20, 2017 20:31
thegalah pushed a commit to thegalah/azure-cli that referenced this pull request Mar 21, 2017
* Azure/master: (478 commits)
  vm live test: allow more valid power states on vmss test verifications (Azure#2564)
  rbac:catch more graph error (Azure#2567)
  appservice: support to create plan when create a webapp (Azure#2550)
  Update storage tests (Azure#2556)
  Change PEP8 check filter from whitelist to blacklist (Azure#2557)
  Add scenario tests documentation (Azure#2555)
  [ACS] Adding support for configuring a default ACS cluster (Azure#2554)
  [ACS] Provide a short name alias for the orchestrator type flag (Azure#2553)
  Sql Import/Export CLI commands and test (Azure#2538)
  Fix format bug. (Azure#2549)
  [VM/VMSS] Improved disk caching support (Azure#2522)
  VM/VMSS: incorporate credentials validation logic used by portal (Azure#2537)
  Script that creates packaged releases package archive (Azure#2508)
  Adding alias for defaults flag (Azure#2540)
  Add wait commands and --no-wait support (Azure#2524)
  choice list outside of named arguments (Azure#2521)
  Fixed test failure in test_sql_db_mgmt. (Azure#2530)
  core: support login using service principal with a cert (Azure#2457)
  Add note about being in preview (Azure#2512)
  vm:fix distro check mechanism used by disk encryption (Azure#2511)
  ...
00Kai0 pushed a commit to 00Kai0/azure-cli that referenced this pull request Apr 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants