Skip to content

Run CI setup steps in parallel#3869

Merged
roji merged 2 commits into
mainfrom
roji-parallel-ci-setup
Jun 27, 2026
Merged

Run CI setup steps in parallel#3869
roji merged 2 commits into
mainfrom
roji-parallel-ci-setup

Conversation

@roji

@roji roji commented Jun 27, 2026

Copy link
Copy Markdown
Member

CI currently installs PostgreSQL only after the .NET SDK setup and build complete, making the build job wait on independent setup work. This changes the build job to use GitHub Actions native parallel step support so PostgreSQL setup can run concurrently with .NET setup and the project build.

The Linux and Windows PostgreSQL setup steps now run with background: true, and the workflow waits with wait-all: true before running tests. This keeps the tests gated on a ready database while preserving separate step logs and avoiding shell-level background/PID handling.

Use GitHub Actions background steps for PostgreSQL setup so .NET setup and build can run concurrently, then wait for background setup before tests.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings June 27, 2026 08:51

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR optimizes the EFCore.PG CI workflow by overlapping PostgreSQL installation/startup with .NET SDK setup and the build, then synchronizing before tests run. This reduces idle time in the build job while keeping test execution gated on a ready database.

Changes:

  • Run Linux/Windows PostgreSQL setup steps as background (parallel) steps.
  • Move .NET SDK setup + build to run while PostgreSQL setup is in progress.
  • Add a wait-all barrier step before executing tests.
Show a summary per file
File Description
.github/workflows/build.yml Starts PostgreSQL setup in background for Linux/Windows and waits before tests, allowing .NET setup/build to overlap with DB setup.

Review details

  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Low

Comment thread .github/workflows/build.yml
Build with the matrix configuration and run tests with --no-build so Release jobs do not compile Debug first and then rebuild during tests.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@roji roji merged commit 4d8eb6e into main Jun 27, 2026
15 checks passed
@roji roji deleted the roji-parallel-ci-setup branch June 27, 2026 09:31
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