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

[ContainerApp] Update Cloud Build code to the ARM simplification #7413

Conversation

daniv-msft
Copy link
Contributor


This checklist is used to make sure that common guidelines for a pull request are followed.

Related command

az containerapp up
az containerapp create
az containerapp update

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? (pip install wheel==0.30.0 required)
  • My extension version conforms to the Extension version schema

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.

Copy link

azure-client-tools-bot-prd bot commented Mar 22, 2024

️✔️Azure CLI Extensions Breaking Change Test
️✔️Non Breaking Changes

Copy link

Hi @daniv-msft,
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 Mar 22, 2024

ContainerApp

@daniv-msft
Copy link
Contributor Author

Tagging @harryli0108 for FYI

@daniv-msft
Copy link
Contributor Author

@harryli0108 Could you please take care of updating/merging this PR from there as I won't be there to do so?

Copy link

⚠️ Suggestions

Module: containerapp

  • Update version to 1.0.0b1 in setup.py
  • Set azext.isPreview to true in azext_containerapp/azext_metadata.json if not exists

Notes

  • Stable/preview tag is inherited from last release. If needed, please add stable/preview label to modify it.
  • Major/minor/patch/pre increment of version number is calculated by pull request code changes automatically. If needed, please add major/minor/patch/pre label to adjust it.
  • For more info about extension versioning, please refer to Extension version schema

Copy link

@Moazzem-Hossain-pixel Moazzem-Hossain-pixel left a comment

Choose a reason for hiding this comment

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

I would like to ask support for resolving my issues if possible!

@yanzhudd
Copy link
Contributor

yanzhudd commented Apr 1, 2024

Please note that Azure CLI team is only responsible for code style and specification, but not business logic. It would be better to involve the service team to review this PR first.

@yanzhudd
Copy link
Contributor

yanzhudd commented Apr 1, 2024

Please add test for this change to check if it can meet your expectation.

@Moazzem-Hossain-pixel
Copy link

How may get support in these issues? If there is an opportunity to help me that will be highly appreciated.

Kind Regards

@@ -11,6 +11,7 @@ upcoming
* 'az containerapp env telemetry otlp remove': Support remove environment otlp configuration with --otlp-name
* 'az containerapp env telemetry otlp show': Support show environment otlp configuration with --otlp-name
* 'az containerapp env telemetry otlp list': Support show environment otlp configurations
* 'az containerapp up/create/update': Update Cloud Build code to use the simplified ARM calling pattern
Copy link
Contributor

Choose a reason for hiding this comment

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

Please move this to upcoming

Choose a reason for hiding this comment

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

Thanks for support

@Greedygre
Copy link
Contributor

Hi @Moazzem-Hossain-pixel

Please get approval from your team who could be responsible for your business logic firstly.

archive_source_code(data_file_path, source)
done_spinner = True
thread.join()

# File upload
done_spinner = False
thread = display_spinner("Uploading data")
container_app_id = container_app_result["id"]
base_proxy_endpoint = container_app_result["properties"]["eventStreamEndpoint"].rstrip("/eventstream")
upload_endpoint = base_proxy_endpoint + f"/upload?token={token}"
Copy link
Contributor

Choose a reason for hiding this comment

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

Here can be:
upload_endpoint =f"{base_proxy_endpoint}/upload?token={token}"

@@ -159,6 +157,9 @@ def spin():
os.unlink(data_file_path)
if not response_file_upload.ok:
raise ValidationError(f"Error when uploading the file, request exited with {response_file_upload.status_code}")
file_upload_json = response_file_upload.json()
build_name = file_upload_json["name"]
log_streaming_endpoint = base_proxy_endpoint + f"/builds/{build_name}/logstream"
Copy link
Contributor

Choose a reason for hiding this comment

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

Same as above.

@Greedygre
Copy link
Contributor

Hi @Moazzem-Hossain-pixel
Do you have any tests to cover these changes?
Why are these changes needed?

Please rerun related tests to make sure e2e tests can pass. You can update the related recording files or paste your test rerun result in the description.

@Greedygre
Copy link
Contributor

Hi @Moazzem-Hossain-pixel Do you have any tests to cover these changes? Why are these changes needed?

Please rerun related tests to make sure e2e tests can pass. You can update the related recording files or paste your test rerun result in the description.

Run related test with command: azdev test {your-command-file/your-command-test-case} --live
About azdev test, refer to: https://github.com/Azure/azure-cli/blob/dev/doc/configuring_your_machine.md

@harryli0108
Copy link
Member

Continuing to contribute to this change in a new PR #7522. Please feel free to close this PR if needed

@daniv-msft daniv-msft closed this Apr 22, 2024
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.

9 participants