Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(web): restore testing against legacy devices via BrowserStack #11845

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

jahorton
Copy link
Contributor

This working PR seeks to address #11501.

My progress has been impeded somewhat due to issues I documented in modernweb-dev/web#2756. There are some limitations I'd rather not have, but at least things are far enough along to unblock progress.

Some neat things: we actually get more data about the test runs within the BrowserStack dashboard now, along with greater control of test-run labeling. A rough glimpse of that:

  1. As our test runs do have separate test sets for specific modules, we can label which module each run is for while keeping them all associated within the same overall build version label.

    image

  2. How about some neat network logs? This way, we can see what sort of load times different parts of the test suites are costing to have better data for setting timeouts and/or determining sources of related instability.

    image

  3. Even the "Text Logs" provide us a little more information than they used to.

  4. Console logs? Sure, why not?

    image

    Messages were temporarily added while I was analyzing the issues that led to [@web/test-runner-browserstack] + [@web/dev-server-legacy]: issues when using BrowserStack launcher for targeting certain older devices modernweb-dev/web#2756.

Note that a new package had to be added in order to support the older version of Chrome used here as a test target - @web/dev-server-legacy. It seems simple on the surface, but its dependencies are the source of the monstrous set of changes to package-lock.json.

@keymanapp-test-bot keymanapp-test-bot bot added the user-test-missing User tests have not yet been defined for the PR label Jun 21, 2024
@keymanapp-test-bot
Copy link

keymanapp-test-bot bot commented Jun 21, 2024

User Test Results

Test specification and instructions

ERROR: user tests have not yet been defined

Test Artifacts

@@ -9,6 +9,7 @@
"@typescript-eslint/eslint-plugin": "^5.59.1",
"@web/dev-server-esbuild": "^1.0.2",
"@web/dev-server-import-maps": "^0.2.0",
"@web/dev-server-legacy": "^2.1.1",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Seems small on the surface, but comes with a very significant dependency cost - just look at the "lines changed" count for package-lock.json!

// you can get the browser capabilities from the browserstack website
browserstackLauncher({
capabilities: {
// Requires the dev-server-legacy plugin to operate properly.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

To be clear, for this older version of Chrome. Supposedly, version 63 or 64 would allow us to drop it, but I'd want to check that experimentally first.

@darcywong00 darcywong00 modified the milestones: A18S4, A18S5 Jun 21, 2024
@jahorton jahorton force-pushed the chore/web/restore-legacy-auto-testing branch from 79fd953 to 45b1f73 Compare June 25, 2024 08:17
@jahorton
Copy link
Contributor Author

Test (Keyman - iOS) build failure cause:

15:38:43   /opt/homebrew/Cellar/fastlane/2.220.0/libexec/gems/fastlane-2.220.0/spaceship/lib/spaceship/connect_api/api_client.rb:250:in `handle_error': [!] The request could not be completed because: (Spaceship::ProgramLicenseAgreementUpdated)
15:38:43     A required agreement is missing or has expired. - This request requires an in-effect agreement that has not been signed or has expired.

From https://build.palaso.org/buildConfiguration/Keyman_iOS_TestPullRequests/474686?buildTab=log&linesState=2357.2448&logView=flowAware&focusLine=2565

@darcywong00 darcywong00 modified the milestones: A18S5, A18S6 Jul 5, 2024
@darcywong00 darcywong00 modified the milestones: A18S6, A18S7 Jul 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore common/web/ common/ user-test-missing User tests have not yet been defined for the PR web/
Development

Successfully merging this pull request may close these issues.

None yet

2 participants