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

Provider restore for resource type providers #11458

Merged
merged 13 commits into from
Aug 16, 2023

Conversation

asilverman
Copy link
Contributor

@asilverman asilverman commented Aug 3, 2023

Description

This change enables the restoration of provider artifacts from the bicep registry. In its current (temporary) form the provider artifact is disguised as a module given that the handling of OCI Artifacts by the ModuleRegistry is not decoupled from the handling of modules. Refactoring (in separate PRs) is needed to decouple the concerns and have a simpler handling of the provider artifacts.

Microsoft Reviewers: codeflow:open?pullrequest=#11458

@asilverman asilverman linked an issue Aug 3, 2023 that may be closed by this pull request
@asilverman asilverman changed the title DRAFT: Provider restore for resource type providers Provider restore for resource type providers Aug 8, 2023
@asilverman asilverman force-pushed the asilverman/prototype/providerRestore branch from 2b76db4 to cf3654f Compare August 8, 2023 18:12
@github-actions
Copy link
Contributor

github-actions bot commented Aug 8, 2023

Test Results (win-x64)

       33 files  ±  0         33 suites  ±0   32m 44s ⏱️ - 1m 39s
10 410 tests +32  10 374 ✔️ +32  36 💤 ±0  0 ±0 
12 626 runs  +32  12 590 ✔️ +32  36 💤 ±0  0 ±0 

Results for commit 6cb9ae9. ± Comparison against base commit ca73b6c.

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Contributor

github-actions bot commented Aug 8, 2023

Test Results (linux-musl-x64)

       33 files  ±  0         33 suites  ±0   33m 4s ⏱️ - 3m 44s
10 398 tests +32  10 362 ✔️ +32  36 💤 ±0  0 ±0 
12 615 runs  +32  12 579 ✔️ +32  36 💤 ±0  0 ±0 

Results for commit 6cb9ae9. ± Comparison against base commit ca73b6c.

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Contributor

github-actions bot commented Aug 8, 2023

Test Results (osx-x64)

       33 files  ±  0         33 suites  ±0   1h 30m 25s ⏱️ - 1m 58s
10 402 tests +32  10 366 ✔️ +32  36 💤 ±0  0 ±0 
12 619 runs  +32  12 583 ✔️ +32  36 💤 ±0  0 ±0 

Results for commit 6cb9ae9. ± Comparison against base commit ca73b6c.

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Contributor

github-actions bot commented Aug 8, 2023

Test Results (linux-x64)

       33 files  ±  0         33 suites  ±0   38m 35s ⏱️ + 1m 50s
10 398 tests +32  10 362 ✔️ +32  36 💤 ±0  0 ±0 
12 615 runs  +32  12 579 ✔️ +32  36 💤 ±0  0 ±0 

Results for commit 6cb9ae9. ± Comparison against base commit ca73b6c.

♻️ This comment has been updated with latest results.

@asilverman asilverman force-pushed the asilverman/prototype/providerRestore branch from cf3654f to 3822fc8 Compare August 8, 2023 18:59
@asilverman asilverman force-pushed the asilverman/prototype/providerRestore branch from 3822fc8 to 445c903 Compare August 8, 2023 19:10
@asilverman asilverman marked this pull request as ready for review August 8, 2023 19:12
@asilverman asilverman added this to the v0.21 milestone Aug 8, 2023
src/Bicep.Cli/Services/CompilationService.cs Outdated Show resolved Hide resolved
src/Bicep.Core/Registry/AzureContainerRegistryManager.cs Outdated Show resolved Hide resolved
src/Bicep.Core/Registry/AzureContainerRegistryManager.cs Outdated Show resolved Hide resolved
src/Bicep.Core/Registry/Oci/OciArtifactReference.cs Outdated Show resolved Hide resolved
src/Bicep.Core/Syntax/ProviderDeclarationSyntax.cs Outdated Show resolved Hide resolved
src/Bicep.Core/Workspaces/SourceFileGrouping.cs Outdated Show resolved Hide resolved
src/Bicep.Core/Workspaces/SourceFileGrouping.cs Outdated Show resolved Hide resolved
src/Bicep.Core/Workspaces/SourceFileGroupingBuilder.cs Outdated Show resolved Hide resolved
@asilverman asilverman merged commit a67c321 into main Aug 16, 2023
52 checks passed
@asilverman asilverman deleted the asilverman/prototype/providerRestore branch August 16, 2023 17:33
asilverman added a commit that referenced this pull request Aug 22, 2023
…nifest` (#11591)

## Description

Addresses [PR
comment](#11458 (comment))
to use `System.Text.Json` instead of `Newtonsoft.Json` in the
deserialization of `OciManifest` class

## Changes

* Adds biz logic to support deserialization with `System.Text.Json`
* Adds a unit test to verify proper deserialization of a valid JSON
manifest
###### Microsoft Reviewers: [Open in
CodeFlow](https://microsoft.github.io/open-pr/?codeflow=https://github.com/Azure/bicep/pull/11591)

---------

Co-authored-by: Ariel Silverman <[email protected]>
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 this pull request may close these issues.

Design and implement provider restore from OCI registry
4 participants