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

achurchard/robustness #6473

Closed
wants to merge 156 commits into from
Closed

achurchard/robustness #6473

wants to merge 156 commits into from

Conversation

Cyclam
Copy link
Contributor

@Cyclam Cyclam commented Jul 4, 2023


Related command

az aosm nfd [generate-config | build]

Main changes

Use pathlib.Path rather than os file operations

  • Provides clearer and stronger typing than passing strs around
  • Adds some handy utility functions

Variable renaming for clarity

  • E.g. consistently use 'directory' / 'dir' (rather than mix with 'folder')
  • Obvs somewhat subjective, but as someone new to most of this code, the changes made sense to me

Add nfd_bicep_path as abstract property on NFDGenerator

  • We rely on it when calling either CNF or VNF generators

Miscellaneous style updates to keep azdev style aosm happy

  • isort
  • black

Testing

Manually running the following using an existing publisher:

  • az aosm nfd build --definition-type cnf --config-file cnf-input.json
    • cnf-input.json uses the standard nginx ingress controller
  • az aosm nfd build --definition-type vnf --config-file nfd-input.json
    • nfd-input.json is for a vnet only VNF with a dummy image file

and ensuring the output matches what was generated before

General Guidelines

  • Have you run azdev style <YOUR_EXT> locally? (pip install azdev required)
  • Have you run python scripts/ci/test_index.py -q locally?

About Extension Publish

There is a pipeline to automatically build, upload and publish extension wheels.
Once your pull request is merged into main branch, a new pull request will be created to update src/index.json automatically.
You only need to update the version information in file setup.py and historical information in file HISTORY.rst in your PR but do not modify src/index.json.

Jordan and others added 26 commits June 15, 2023 16:40
* NSD building for CNFs

* linting
* Working publish

* Fix the artifact upload

* Working image copy

* minor fix

* Minor fixes

* sunny merge add-aosm-extension into patryk's branch (#25)

* Sunny/choose deploy parameters (#23)

* choose-deploy-parameters

* optioned deployParameters for CNF

* lint

* lint2

* docs

* docs

* lint

* 9.82 score

* Fix bugs

* more useful debug logs

* Fix bugs and logging

* lint

* markups

* comment out breaking line

* minor TODOs

* deleted comment

* fix bring your own parameters

* Markups

* Fix the helm upload

* Minor markups

* Change error message

---------

Co-authored-by: sunnycarter <[email protected]>
Co-authored-by: Sunny Carter <[email protected]>
* NFDV version exposed as a CGV on an SNS

* Managed identities support on NFs

* Fix identiy, fix API versions

* history

---------

Co-authored-by: Jamie Parsons <[email protected]>
Co-authored-by: Sunny Carter <[email protected]>
Fix style issues raised by `azdev style`
@azure-client-tools-bot-prd
Copy link

Hi @Cyclam,
Please write the description of changes which can be perceived by customers into HISTORY.rst.
If you want to release a new extension version, please update the version in setup.py as well.

@yonzhan
Copy link
Collaborator

yonzhan commented Jul 4, 2023

Thank you for your contribution! We will review the pull request and get back to you soon.

@Cyclam Cyclam closed this Jul 4, 2023
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.

None yet

9 participants