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

[Bug Report]: Hardcoded version check #669

Closed
AlexanderSehr opened this issue Nov 24, 2023 · 0 comments · Fixed by #675
Closed

[Bug Report]: Hardcoded version check #669

AlexanderSehr opened this issue Nov 24, 2023 · 0 comments · Fixed by #675

Comments

@AlexanderSehr
Copy link
Contributor

AlexanderSehr commented Nov 24, 2023

Describe the bug

Hey @shenglol,
I just implemented Pull Request to add the post-publish validation to the AVM pipeline. I used your pipeline step as a 1:1 reference that I just translated to Powershell.

That said, I found that you're checking 2 things

  • Is the module published
  • Is the specific version published

The later, however, is hardcoded to ai/cognitiveservices and should instead reference the ModulePath variable

To reproduce

Redundant

Code snippet

The fix should be the following:
image

Relevant log output

No response

@github-project-automation github-project-automation bot moved this to Todo in Bicep Nov 24, 2023
@microsoft-github-policy-service microsoft-github-policy-service bot added Needs: Triage 🔍 Maintainers need to triage still Type: AVM 🅰️ ✌️ Ⓜ️ This is an AVM related issue labels Nov 24, 2023
@AlexanderSehr AlexanderSehr removed Needs: Triage 🔍 Maintainers need to triage still Type: AVM 🅰️ ✌️ Ⓜ️ This is an AVM related issue labels Nov 24, 2023
@AlexanderSehr AlexanderSehr linked a pull request Nov 27, 2023 that will close this issue
14 tasks
AlexanderSehr added a commit that referenced this issue Nov 28, 2023
## Description

Replaced hardcoded version check (using cognitive services) with
`ModulePath` reference
Closes: #669 

## Adding a new module

<!--Run through the checklist if your PR adds a new module.-->

- [ ] A proposal has been submitted and approved.
- [ ] I have included "Closes #{module_proposal_issue_number}" in the PR
description.
- [ ] I have run `brm validate` locally to verify the module files.
- [ ] I have run deployment tests locally to ensure the module is
deployable.

## Updating an existing module

<!--Run through the checklist if your PR updates an existing module.-->

- [x] This is a bug fix:
- [x] Someone has opened a bug report issue, and I have included "Closes
#{bug_report_issue_number}" in the PR description.
- [ ] The bug was found by the module author, and no one has opened an
issue to report it yet.
- [ ] I have run `brm validate` locally to verify the module files.
- [ ] I have run deployment tests locally to ensure the module is
deployable.
- [ ] I have read the [Updating an existing
module](https://github.com/Azure/bicep-registry-modules/blob/main/CONTRIBUTING.md#updating-an-existing-module)
section in the contributing guide and updated the `version.json` file
properly:
- [ ] The PR contains backwards compatible bug fixes, and I have NOT
bumped the MAJOR or MINOR version in `version.json`.
- [ ] The PR contains backwards compatible feature updates, and I have
bumped the MINOR version in `version.json`.
- [ ] The PR contains breaking changes, and I have bumped the MAJOR
version in `version.json`.
- [ ] I have updated the examples in README with the latest module
version number.

---------

Co-authored-by: Erika Gressi <[email protected]>
@github-project-automation github-project-automation bot moved this from Todo to Done in Bicep Nov 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant