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

Use a build queue to avoid file locking and optimise build time #1187

Closed
james-allan-lloyd opened this issue Sep 28, 2021 · 2 comments · Fixed by #1189
Closed

Use a build queue to avoid file locking and optimise build time #1187

james-allan-lloyd opened this issue Sep 28, 2021 · 2 comments · Fixed by #1189

Comments

@james-allan-lloyd
Copy link
Contributor

Hi there! I was running into issue #580 (specifically a shared library being built in parallel by two depending projects) so I thought I'd look into a possible solution.

My idea was to queue the requests to build to another worker task, which would then deque in batches, remove duplicate calls if necessary, and optionally look to see if the project was part of a globally configured solution - and use that to build it if so.

Example config (albeit the simplest approach):

name: tye-build-fix
solution: tye-build-fix.sln
services:
- name: frontend
  project: frontend/frontend.csproj
- name: backend
  project: backend/backend.csproj
# both projects depend on SharedLibrary/SharedLibrary.csproj

I have working code (about a day's worth of work), but I saw you'd prefer discussion before PR?

@dbreshears dbreshears added this to the 0.11 milestone Sep 29, 2021
@dbreshears
Copy link
Contributor

Hi James. Can you submit a PR and we will take a look.

@dbreshears
Copy link
Contributor

PR is #1189

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants