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

Reuse already updated object types when recursively removing type property flags #16235

Merged
merged 3 commits into from
Jan 28, 2025

Conversation

jeskew
Copy link
Member

@jeskew jeskew commented Jan 28, 2025

Resolves #16219

The server crash reported in #16219 was caused by https://github.com/Azure/bicep/pull/15825/files#diff-7d66583c4922f57735a4eac96cd074d356e8eace34ec5900860f093f3d0cbc69R701. The FindPossibleSecretsVisitor relies on object identity to detect and stop infinitely walking recursive types, and the linked line caused otherwise identical object types within the assigned type of a resource symbol to have different identities.

Microsoft Reviewers: Open in CodeFlow

@jeskew jeskew requested review from a team and Copilot January 28, 2025 17:57
Copy link
Contributor

github-actions bot commented Jan 28, 2025

Test this change out locally with the following install scripts (Action run 13017995567)

VSCode
  • Mac/Linux
    bash <(curl -Ls https://aka.ms/bicep/nightly-vsix.sh) --run-id 13017995567
  • Windows
    iex "& { $(irm https://aka.ms/bicep/nightly-vsix.ps1) } -RunId 13017995567"
Azure CLI
  • Mac/Linux
    bash <(curl -Ls https://aka.ms/bicep/nightly-cli.sh) --run-id 13017995567
  • Windows
    iex "& { $(irm https://aka.ms/bicep/nightly-cli.ps1) } -RunId 13017995567"

Copy link
Contributor

Dotnet Test Results

 0 tests  ± 0   0 ✅ ±0   0s ⏱️ ±0s
75 suites  - 42   0 💤 ±0 
75 files    - 42   0 ❌ ±0 

Results for commit 2b64a1b. ± Comparison against base commit bfd6836.

@jeskew jeskew merged commit e845112 into main Jan 28, 2025
43 checks passed
@jeskew jeskew deleted the jeskew/16219 branch January 28, 2025 19:24
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.

The Bicep server crashed 5 times in the last 3 minutes. The server will not be restarted.
2 participants