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

Remove Additional config params - require on each request #3000

Merged
merged 23 commits into from
Apr 11, 2023

Conversation

nharper285
Copy link
Contributor

@nharper285 nharper285 commented Apr 7, 2023

Summary of the Pull Request

What is this about?
Resolve CLI config cache race condition. Remove caching of config params. Only store endpoint and require params per CLI command.

PR Checklist

  • Applies to work item: CLI config cache read causes race condition #2999
  • CLA signed. If not, go over here and sign the CLI.
  • Tests added/passed
  • Requires documentation to be updated
  • I've discussed this with core contributors already. If not checked, I'm ready to accept this work might be rejected in favor of a different grand plan. Issue number where discussion took place: #xxx

Info on Pull Request

What does this include?

Validation Steps Performed

How does someone test & validate?

@codecov-commenter
Copy link

codecov-commenter commented Apr 7, 2023

Codecov Report

Merging #3000 (d9bb091) into main (77c4293) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main    #3000   +/-   ##
=======================================
  Coverage   29.02%   29.02%           
=======================================
  Files         304      304           
  Lines       36326    36326           
=======================================
  Hits        10545    10545           
  Misses      25781    25781           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@nharper285 nharper285 changed the title Only Overrite Config Cache Only Overwrite Config Cache Apr 7, 2023
Copy link
Contributor

@stishkin stishkin left a comment

Choose a reason for hiding this comment

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

this PR will not solve the issue when multiple CLI processes running in parallel

@tevoinea
Copy link
Member

this PR will not solve the issue when multiple CLI processes running in parallel

For that we'd probably want a global file lock like this https://github.com/symonsoft/ilock

@mgreisen
Copy link
Contributor

It looks like ilock is designed for a single process.

@nharper285 nharper285 changed the title Only Overwrite Config Cache Remove Additional config params - require on each request Apr 10, 2023
@nharper285 nharper285 merged commit 169cef7 into microsoft:main Apr 11, 2023
AdamL-Microsoft added a commit that referenced this pull request Apr 12, 2023
@AdamL-Microsoft AdamL-Microsoft mentioned this pull request Apr 12, 2023
1 task
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.

5 participants