Skip to content

automate building windows boost/soci prebuilts via github actions - #18123

Merged
kevinushey merged 3 commits into
mainfrom
developer/automate-windows-dependency-builds
Jul 2, 2026
Merged

kevinushey merged 3 commits into
mainfrom
developer/automate-windows-dependency-builds

Conversation

@kevinushey

@kevinushey kevinushey commented Jul 2, 2026 •

Copy link
Copy Markdown
Collaborator

Intent

Addresses #17986.

Boost (and SOCI) prebuilts for Windows are currently built manually on a developer's machine via install-boost.cmd / install-soci.cmd and hand-uploaded to the rstudio-buildtools S3 bucket. #17986 needs new msvc145 prebuilts published for the VS 2026 toolset so the CI fallback-to-msvc143 stopgaps from #17850 can eventually be dropped. This PR automates that build-and-publish step.

What changed

  • New workflow_dispatch workflow (.github/workflows/os-build-dependencies-windows.yml):
    • Inputs: Boost version, SOCI version, MSVC toolset version (default 145), CMake generator (default Visual Studio 18 2026), runner image (windows-2025 = VS 2026, windows-2022 = VS 2022), and an upload toggle.
    • Builds Boost (debug + release, 32/64-bit static) via install-boost.cmd, then builds SOCI against those prebuilts via install-soci.cmd, and packages both as zips.
    • Always publishes the archives as workflow artifacts; when upload is enabled, pushes them to s3://rstudio-buildtools under the same keys install-dependencies.cmd downloads from (Boost/boost-<ver>-win-msvc<toolset>.zip, soci-msvc<toolset>-<ver>.zip).
    • Reuses the vswhere-junction pattern from the Windows e2e workflow so tools.R's hardcoded VS 2022 path check passes on runner images with VS Enterprise / VS 2026.
  • install-boost.cmd / install-dependencies.cmd: BOOST_VERSION / MSVC_TOOLSET_VERSION now honor values preset in the environment (defaults unchanged: 1.90.0 / 143), so CI can request a different toolset without editing the scripts. Jenkins and local dev flows are unaffected.
  • install-boost.R: the b2 toolset default is now derived from MSVC_TOOLSET_VERSION (143 => msvc-14.3, 145 => msvc-14.5) instead of being hardcoded to msvc-14.3; BOOST_TOOLSET still overrides.
  • install-boost.cmd / install-soci.cmd: propagate failures via exit /b 1 instead of always exiting 0 (previously a failed build could be silently packaged/ignored, which would let a broken automated run "succeed").

S3 upload credentials

The S3 upload step authenticates via GitHub OIDC and expects an AWS_BUILDTOOLS_UPLOAD_ROLE_ARN repository secret pointing at a role with write access to rstudio-buildtools. No such secret exists yet -- that's tracked in #18124. Until it's configured, run the workflow with upload: false and push the artifacts with the new dependencies/tools/upload-windows-dependencies.sh, which downloads a run's artifacts via gh run download and uploads them with developer SSO credentials (same flow as the other upload-*.sh scripts).

QA Notes

This can only be exercised end-to-end by dispatching the workflow after merge (workflow_dispatch requires the workflow to exist on the default branch). Suggested first run: defaults (msvc145 on windows-2025), upload: false, then inspect the artifacts. Note the first run also validates that Boost 1.90's bundled b2 accepts the msvc-14.5 toolset / vc145 bootstrap argument on VS 2026 -- if b2 predates VS 2026 support, the boost_toolset derivation may need adjusting.

Not adding a NEWS.md entry per the developer-only/build-tooling exception.

Checklist

  • If this PR adds a new feature, or fixes a bug in a previously released version, it includes an entry in NEWS.md
  • If this PR adds or changes UI, the updated UI meets accessibility standards
  • A reviewer is assigned to this PR (if unsure who to assign, check Area Owners list)
  • This PR passes all local unit tests

Adds a workflow_dispatch workflow that builds the Boost and SOCI
prebuilts for a selectable MSVC toolset (e.g. msvc145 for VS 2026)
and uploads them as artifacts, optionally pushing to the
rstudio-buildtools S3 bucket. Parameterizes the install scripts so
the toolset can be chosen from the environment, and propagates
build failures from the .cmd wrappers.

Addresses #17986
@kevinushey kevinushey added this to the 2026.07 (Pacific Dogwood) milestone Jul 2, 2026
Downloads the archives from a workflow run via gh and uploads them
to rstudio-buildtools with developer SSO credentials, until the
OIDC role for direct upload exists (#18124).
@kevinushey
kevinushey merged commit b41954a into main Jul 2, 2026
5 of 8 checks passed
@kevinushey
kevinushey deleted the developer/automate-windows-dependency-builds branch July 2, 2026 17:17
@github-actions

github-actions Bot commented Jul 2, 2026

Copy link
Copy Markdown

RStudio E2E - all platforms

2 test(s) failed

###################- 99% pass rate

Passed Failed Skipped Flaky
1769 2 54 12
Platform ✅ Passed ❌ Failed ⚠️ Skipped 🔁 Flaky
❌ desktop-linux 445 2 10 3
✅ desktop-macos 446 0 10 4
✅ desktop-windows 449 0 12 1
✅ server-linux 429 0 22 4
View / download the full report

Download playwright-report.zip -- extract and open index.html

Includes screenshots, traces, and step-by-step details for every test. Expires in 15 days.


All platforms - commit 0e02819ca3fa4db7e88744337fba71e2cff59d0c - Run #65

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.

1 participant