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

Write static graph restore arguments to standard input instead of passing on the command-line #4772

Merged
merged 11 commits into from
Oct 12, 2022

Conversation

jeffkl
Copy link
Contributor

@jeffkl jeffkl commented Aug 30, 2022

Bug

Fixes: NuGet/Home#11968

Regression? Last working version:

Description

Write the arguments to standard input and read them in the new process. Also refactored GenerateRestoreGraphFileTask to use a base class that RestoreTaskEx also uses since so much of the logic was duplicated.

PR Checklist

  • PR has a meaningful title

  • PR has a linked issue.

  • Described changes

  • Tests

    • Automated tests added
    • OR
    • Test exception
    • OR
    • N/A
  • Documentation

    • Documentation PR or issue filled
    • OR
    • N/A

@jeffkl jeffkl requested a review from a team as a code owner August 30, 2022 00:11
@jeffkl jeffkl force-pushed the dev-jeffkl-static-graph-restore-argument-file branch from 795db93 to c4f4957 Compare August 31, 2022 22:22
@jeffkl jeffkl requested a review from zivkan August 31, 2022 22:23
zivkan
zivkan previously approved these changes Sep 7, 2022
@ghost ghost added the Status:No recent activity PRs that have not had any recent activity and will be closed if the label is not removed label Sep 14, 2022
@ghost
Copy link

ghost commented Sep 14, 2022

This PR has been automatically marked as stale because it has no activity for 7 days. It will be closed if no further activity occurs within another 7 days of this comment. If it is closed, you may reopen it anytime when you're ready again, as long as you don't delete the branch.

@jeffkl jeffkl removed the Status:No recent activity PRs that have not had any recent activity and will be closed if the label is not removed label Sep 14, 2022
@jeffkl jeffkl requested a review from nkolev92 September 14, 2022 14:50
@jeffkl jeffkl dismissed stale reviews from nkolev92 and zivkan via b87b677 September 15, 2022 20:07
nkolev92
nkolev92 previously approved these changes Sep 15, 2022
@jeffkl
Copy link
Contributor Author

jeffkl commented Sep 15, 2022

@nkolev92 what are your thoughts about when to merge this? Do you feel its too risky for 17.4?

@nkolev92
Copy link
Member

We can wait for 17.5.
Merging it now would only give us ~1.5 weeks of time to find bugs internally.

@jeffkl jeffkl added the Merge next release PRs that should not be merged until the dev branch targets the next release label Sep 15, 2022
@ghost ghost added the Status:No recent activity PRs that have not had any recent activity and will be closed if the label is not removed label Sep 22, 2022
@ghost
Copy link

ghost commented Sep 22, 2022

This PR has been automatically marked as stale because it has no activity for 7 days. It will be closed if no further activity occurs within another 7 days of this comment. If it is closed, you may reopen it anytime when you're ready again, as long as you don't delete the branch.

@ghost ghost removed the Status:No recent activity PRs that have not had any recent activity and will be closed if the label is not removed label Sep 23, 2022
@jeffkl jeffkl force-pushed the dev-jeffkl-static-graph-restore-argument-file branch 2 times, most recently from df09dd6 to aecb3f2 Compare October 4, 2022 17:03
@jeffkl jeffkl force-pushed the dev-jeffkl-static-graph-restore-argument-file branch from 90fa662 to 0e2267d Compare October 10, 2022 22:42
@jeffkl jeffkl force-pushed the dev-jeffkl-static-graph-restore-argument-file branch from 0e2267d to 5a087f7 Compare October 11, 2022 18:11
@jeffkl jeffkl force-pushed the dev-jeffkl-static-graph-restore-argument-file branch from 5a087f7 to 03f3cf8 Compare October 11, 2022 22:03
@jeffkl jeffkl removed the Merge next release PRs that should not be merged until the dev branch targets the next release label Oct 11, 2022
@jeffkl
Copy link
Contributor Author

jeffkl commented Oct 12, 2022

@nkolev92 are you okay if I merge this?

@nkolev92
Copy link
Member

Yep, I had reviewed it in the past, and it looks like it was mostly cleanup that was added on top.

@jeffkl jeffkl merged commit 19a4170 into dev Oct 12, 2022
@jeffkl jeffkl deleted the dev-jeffkl-static-graph-restore-argument-file branch October 12, 2022 21:12
jeffkl added a commit that referenced this pull request Feb 28, 2023
…d of passing on the command-line (#4772)"

This reverts commit 19a4170.
jeffkl added a commit that referenced this pull request Feb 28, 2023
…d of passing on the command-line (#4772)" (#5069)

This reverts commit 19a4170.
jeffkl added a commit that referenced this pull request Mar 8, 2023
…d of passing on the command-line (#4772)"

This reverts commit 19a4170.
jeffkl added a commit that referenced this pull request Mar 9, 2023
…ts to standard input (#5080)

* Revert "Properly handle alternate console stream encodings in StaticGraphRestoreArguments (#5010)"

This reverts commit 6512bed.

* Revert "Write static graph restore arguments to standard input instead of passing on the command-line (#4772)"

This reverts commit 19a4170.
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.

[Bug]: Process argument string is too long when publishing in Visual Studio with static graph enabled
5 participants