Skip to content

Refactor sync gen - #6868

Closed
Youssef1313 wants to merge 2 commits into
unoplatform:masterfrom
Youssef1313:refactor-sync-gen
Closed

Youssef1313 wants to merge 2 commits into
unoplatform:masterfrom
Youssef1313:refactor-sync-gen

Conversation

@Youssef1313

Copy link
Copy Markdown
Member

GitHub Issue (If applicable): closes #

🚧 Builds on #6866 🚧 Don't review until the other PR is merged.

Intention was to improve performance, but apparently the improvements I made aren't really noticeable/measurable.

PR Type

What kind of change does this PR introduce?

  • Refactoring (no functional changes, no api changes)

What is the current behavior?

What is the new behavior?

PR Checklist

Please check if your PR fulfills the following requirements:

Other information

Internal Issue (If applicable):

@gitpod-io

gitpod-io Bot commented Aug 26, 2021

Copy link
Copy Markdown

@jeromelaban

Copy link
Copy Markdown
Member

Note that in thoses cases, it'll be best if you don't commit the updates created by the generator from the generator changes themselves, otherwise the PR is very hard to review.

@Youssef1313

Copy link
Copy Markdown
Member Author

@jeromelaban Thanks. I'll separate them and force push

@Youssef1313

Copy link
Copy Markdown
Member Author

Fixed conflicts and rebased on latest master.

@jeromelaban @MartinZikmund I prefer someone to run the generator locally to make sure this PR doesn't break anything. I can't currently due to problems when restoring NuGet packages for Uno solution.

It might be a good idea to consider having a CI task for running sync generator and making sure the sources doesn't change after running it.

@Youssef1313
Youssef1313 marked this pull request as ready for review August 16, 2022 13:03
@jeromelaban

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 2 pipeline(s).

@jeromelaban

Copy link
Copy Markdown
Member

Which problems do you have with restoring your solution?

@Youssef1313

Copy link
Copy Markdown
Member Author

@jeromelaban

image

My connection is a bit slower now, and it seems NuGet has no way to increase the timeout.

@jeromelaban

Copy link
Copy Markdown
Member

@Youssef1313 have you tried restoring with the command line and use --disable-parallel ? Or maybe use the nuget.exe if the parameter is not available.

@Youssef1313

Copy link
Copy Markdown
Member Author

Thanks @jeromelaban. This is improving the situation!

Now command-line restore succeeded. But in VS it's still trying to restore some packages:

image

image

image

I also found a nuget.config option maxHttpRequestsPerSource and added the following to nuget.config:

  <config>
    <add key="maxHttpRequestsPerSource" value="1" />
  </config>

But VS still times out.

@jeromelaban

Copy link
Copy Markdown
Member

I wonder, if you could get some local http proxy that even if still fails after the first try in, it could still populate so that subsequent tries would succeed.

@Youssef1313

Copy link
Copy Markdown
Member Author

@jeromelaban The restore in VS got resolved after multiple tries. But the main thing that resolved most packages is --disable-parallel. Thanks for that @jeromelaban

I'll look into the failures here and see what I can do.

@Youssef1313

Copy link
Copy Markdown
Member Author

@jeromelaban Now I'm seeing this :(

7>C:\Users\PC\Desktop\uno\src\Uno.UI.RemoteControl.VS\Uno.UI.RemoteControl.VS.csproj : error MSB4057: The target "GetCopyToPublishDirectoryItems" does not exist in the project.
7>Done building project "Uno.UI.RemoteControl.VS.csproj" -- FAILED.
7>C:\Users\PC\Desktop\uno\src\Uno.UI.RemoteControl.Host\Uno.UI.RemoteControl.Host.csproj : error MSB4057: The target "GetCopyToPublishDirectoryItems" does not exist in the project.
7>Done building project "Uno.UI.RemoteControl.Host.csproj" -- FAILED.

@jeromelaban
jeromelaban marked this pull request as draft September 29, 2022 19:59
@Youssef1313 Youssef1313 closed this Feb 8, 2023
@Youssef1313
Youssef1313 deleted the refactor-sync-gen branch February 8, 2023 18:04
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.

2 participants