Skip to content
This repository was archived by the owner on Nov 1, 2023. It is now read-only.

Conversation

@Porges
Copy link
Member

@Porges Porges commented May 26, 2023

See #3316. This helps diagnosing problems when running the service.

Read all configuration variables in the service upon startup to detect problems as early as possible. This also allows us to remove a bunch of nullability annotations and makes the config easier to use, as well as enforcing stronger types like Url and ResourceIdentifier.

@Porges Porges changed the title Local testing [Draft] Local testing May 26, 2023
@Porges Porges changed the title [Draft] Local testing [Draft] Improvements for local testing of service May 26, 2023
@codecov-commenter
Copy link

codecov-commenter commented May 26, 2023

Codecov Report

Merging #3136 (b7e31b1) into main (9bc1ab3) will increase coverage by 0.19%.
The diff coverage is 16.66%.

@@            Coverage Diff             @@
##             main    #3136      +/-   ##
==========================================
+ Coverage   31.45%   31.65%   +0.19%     
==========================================
  Files         307      307              
  Lines       37202    37225      +23     
==========================================
+ Hits        11703    11784      +81     
+ Misses      25499    25441      -58     
Impacted Files Coverage Δ
src/ApiService/ApiService/ServiceConfiguration.cs 0.00% <0.00%> (ø)
src/ApiService/ApiService/onefuzzlib/Containers.cs 62.12% <0.00%> (ø)
src/ApiService/ApiService/onefuzzlib/Creds.cs 0.00% <0.00%> (ø)
src/ApiService/ApiService/onefuzzlib/Secrets.cs 6.75% <0.00%> (+0.09%) ⬆️
src/ApiService/ApiService/onefuzzlib/Storage.cs 17.94% <0.00%> (+1.14%) ⬆️
src/ApiService/ApiService/Program.cs 11.84% <38.46%> (-1.89%) ⬇️
...iService/ApiService/onefuzzlib/ConfigOperations.cs 27.77% <50.00%> (ø)
src/ApiService/ApiService/Functions/Events.cs 84.61% <100.00%> (-1.10%) ⬇️
...e/onefuzzlib/notifications/JinjaTemplateAdapter.cs 90.84% <100.00%> (ø)
src/ApiService/ApiService/onefuzzlib/orm/Orm.cs 58.97% <100.00%> (ø)

... and 4 files with indirect coverage changes

@Porges Porges changed the title [Draft] Improvements for local testing of service Make ServiceConfiguration eagerly evalulated Jul 20, 2023
@Porges Porges requested a review from tevoinea July 20, 2023 01:50
@Porges Porges marked this pull request as ready for review July 20, 2023 01:50
@Porges Porges requested a review from kananb July 20, 2023 20:14
@Porges Porges merged commit c44bd03 into main Jul 20, 2023
@Porges Porges deleted the local-testing branch July 20, 2023 20:37
@AdamL-Microsoft AdamL-Microsoft mentioned this pull request Jul 26, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants