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

Register the profile manager at the WebHost scope only #8763

Merged
merged 9 commits into from
Sep 23, 2022

Conversation

liliankasem
Copy link
Member

resolves #8516

Change to DI WorkerProfileManager so there is only one instance

@liliankasem liliankasem force-pushed the liliankasem/worker-profile-scope branch from d89a4c9 to dd0a902 Compare September 16, 2022 22:34
@liliankasem liliankasem marked this pull request as ready for review September 17, 2022 01:16
Copy link
Member

@brettsam brettsam left a comment

Choose a reason for hiding this comment

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

just a couple minor comments...

test/WebJobs.Script.Tests.Shared/TestHelpers.cs Outdated Show resolved Hide resolved
@liliankasem liliankasem force-pushed the liliankasem/worker-profile-scope branch from 10e8492 to 40199f2 Compare September 22, 2022 21:04
Copy link
Member

@fabiocav fabiocav left a comment

Choose a reason for hiding this comment

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

Small question. No need to block

test/WebJobs.Script.Tests.Shared/TestHelpers.cs Outdated Show resolved Hide resolved
@liliankasem
Copy link
Member Author

/backport to v3.x

@github-actions
Copy link
Contributor

@github-actions
Copy link
Contributor

@liliankasem backporting to v3.x failed, the patch most likely resulted in conflicts:

$ git am --3way --ignore-whitespace --keep-non-patch changes.patch

Applying: register profile manager at the webhost scope only
Using index info to reconstruct a base tree...
M	src/WebJobs.Script/ScriptHostBuilderExtensions.cs
M	test/WebJobs.Script.Tests/Workers/Rpc/RpcWorkerConfigFactoryTests.cs
Falling back to patching base and 3-way merge...
Auto-merging test/WebJobs.Script.Tests/Workers/Rpc/RpcWorkerConfigFactoryTests.cs
Auto-merging src/WebJobs.Script/ScriptHostBuilderExtensions.cs
Applying: revert pattern matching becaue perf
Applying: Missing using statement for profiles namespace
Using index info to reconstruct a base tree...
M	src/WebJobs.Script/ScriptHostBuilderExtensions.cs
M	test/WebJobs.Script.Tests/Workers/Rpc/RpcWorkerConfigFactoryTests.cs
Falling back to patching base and 3-way merge...
Auto-merging test/WebJobs.Script.Tests/Workers/Rpc/RpcWorkerConfigFactoryTests.cs
Auto-merging src/WebJobs.Script/ScriptHostBuilderExtensions.cs
Applying: Fix license comment
Applying: Add tests for profile manager
Using index info to reconstruct a base tree...
M	test/WebJobs.Script.Tests.Shared/TestHelpers.cs
M	test/WebJobs.Script.Tests/Workers/Profiles/ProfilesTestUtilities.cs
Falling back to patching base and 3-way merge...
Auto-merging test/WebJobs.Script.Tests/Workers/Profiles/ProfilesTestUtilities.cs
Auto-merging test/WebJobs.Script.Tests.Shared/TestHelpers.cs
Applying: cleanup test
Applying: Address PR feedback
Applying: using statement fix
Using index info to reconstruct a base tree...
M	test/WebJobs.Script.Tests.Shared/TestHelpers.cs
Falling back to patching base and 3-way merge...
Auto-merging test/WebJobs.Script.Tests.Shared/TestHelpers.cs
CONFLICT (content): Merge conflict in test/WebJobs.Script.Tests.Shared/TestHelpers.cs
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0008 using statement fix
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".
Error: The process '/usr/bin/git' failed with exit code 128

Please backport manually!

@liliankasem liliankasem merged commit 54941db into dev Sep 23, 2022
@liliankasem liliankasem deleted the liliankasem/worker-profile-scope branch September 23, 2022 00:01
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.

Worker Profiles - Active profile not being tracked
6 participants