Skip to content

ci: upgrade to Sauce Connect 5 to fix SC4 deprecation - #33720

Merged
alan-agius4 merged 1 commit into
angular:mainfrom
alan-agius4:ci-sauce-connect-5
Jul 31, 2026
Merged

ci: upgrade to Sauce Connect 5 to fix SC4 deprecation#33720
alan-agius4 merged 1 commit into
angular:mainfrom
alan-agius4:ci-sauce-connect-5

Conversation

@alan-agius4

@alan-agius4 alan-agius4 commented Jul 31, 2026

Copy link
Copy Markdown
Collaborator

This PR upgrades Sauce Connect from legacy SC4 scripts to the official saucelabs/sauce-connect-action@v3 (Sauce Connect 5) to resolve the Sauce Connect 4 traffic.

Changes

  • Replaced manual SC4 bash scripts (start-tunnel.sh, wait-for-tunnel.sh, stop-tunnel.sh) with official GitHub Action in .github/workflows/ci.yml
  • Updated Protractor capabilities in protractor-saucelabs.conf.js to support W3C WebDriver syntax alongside legacy syntax
  • Temporary CI step: Added Sauce Labs browser testing job to .github/workflows/pr.yml to test Sauce Connect 5 on PR CI. This step will be removed once verified green.

@angular-robot angular-robot Bot added the area: build & ci Related the build and CI infrastructure of the project label Jul 31, 2026

@gemini-code-assist gemini-code-assist Bot 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.

Code Review

This pull request removes several bash scripts used for managing the Sauce Connect tunnel and updates the Protractor configuration file to set the Sauce Labs region to 'us' and include tunnel configurations for all browser capabilities. The feedback suggests refactoring the configuration to dynamically append the tunnel properties to the capabilities array, which reduces boilerplate and prevents potential session creation failures when the tunnel identifier is undefined.

Comment thread tests/e2e/assets/protractor-saucelabs.conf.js Outdated
@alan-agius4
alan-agius4 marked this pull request as draft July 31, 2026 18:52
@alan-agius4

Copy link
Copy Markdown
Collaborator Author

/gemini review

@alan-agius4
alan-agius4 marked this pull request as ready for review July 31, 2026 19:22
@alan-agius4 alan-agius4 added target: patch This PR is targeted for the next patch release action: merge The PR is ready for merge by the caretaker labels Jul 31, 2026

@gemini-code-assist gemini-code-assist Bot 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.

Code Review

This pull request removes the legacy Sauce Connect bash scripts and refactors the Protractor Sauce Labs configuration. It extracts the browser capabilities into a separate array, configures the Sauce Labs region, and dynamically maps capabilities to inject tunnel configuration when a tunnel identifier is present. The feedback recommends mapping legacy capability properties ('version' and 'platform') to their W3C equivalents ('browserVersion' and 'platformName') to ensure full compatibility with modern WebDriver clients.

Comment thread tests/e2e/assets/protractor-saucelabs.conf.js

@gemini-code-assist gemini-code-assist Bot 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.

Code Review

This pull request removes legacy Sauce Connect bash scripts and refactors the Protractor Saucelabs configuration file to extract browser capabilities and dynamically configure tunnel options. Feedback suggests mapping legacy JWP properties (version and platform) to W3C WebDriver syntax (browserVersion and platformName) within the capabilities mapping to fully support W3C syntax as intended.

Comment thread tests/e2e/assets/protractor-saucelabs.conf.js
@alan-agius4 alan-agius4 added target: minor This PR is targeted for the next minor release target: patch This PR is targeted for the next patch release and removed target: patch This PR is targeted for the next patch release target: minor This PR is targeted for the next minor release labels Jul 31, 2026
Starting July 31, 2026, Sauce Labs servers will no longer support Sauce
Connect 4 traffic. This commit migrates the CI workflow to use
saucelabs/sauce-connect-action@v3 (Sauce Connect 5) and refactors the
Protractor Sauce Labs capabilities configuration.
@alan-agius4 alan-agius4 added action: review The PR is still awaiting reviews from at least one requested reviewer and removed action: merge The PR is ready for merge by the caretaker labels Jul 31, 2026
@alan-agius4
alan-agius4 requested review from dgp1130 and removed request for dgp1130 July 31, 2026 19:37

@dgp1130 dgp1130 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks a lot cleaner, thanks for taking a look at this!

@alan-agius4
alan-agius4 removed the request for review from josephperrott July 31, 2026 20:19
@alan-agius4 alan-agius4 added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Jul 31, 2026
@alan-agius4
alan-agius4 merged commit af3247c into angular:main Jul 31, 2026
41 checks passed
@alan-agius4
alan-agius4 deleted the ci-sauce-connect-5 branch July 31, 2026 20:57
@alan-agius4

Copy link
Copy Markdown
Collaborator Author

This PR was merged into the repository. The changes were merged into the following branches:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

action: merge The PR is ready for merge by the caretaker area: build & ci Related the build and CI infrastructure of the project target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants