-
Notifications
You must be signed in to change notification settings - Fork 26.2k
build(bazel): run aio application e2e tests under bazel #45952
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
build(bazel): run aio application e2e tests under bazel #45952
Conversation
aio/package.json
Outdated
| "resolutions": { | ||
| "**/webdriver-manager": "^12.1.8" | ||
| }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Protractor depends on 12.1.7 but that version has a bug on m1 machines where the url to download the browser isn't correct.
57011e0 to
3ce818c
Compare
|
@devversion I added a second commit that uses the bazel-provided chromium toolchain. It's dependent on this fix for rules_nodejs: bazel-contrib/rules_nodejs#3456. I'll update and squash once that lands. |
| data = E2E_FILES + E2E_DEPS, | ||
| env = { | ||
| "CHROMEDRIVER_BIN": "../$(CHROMEDRIVER)", | ||
| "CHROME_BIN": "../$(CHROMIUM)", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is great! thanks. Out of curiosity, could we avoid the .. thing? this is actually a short-path already and likely you would need to resolve the path using the runfile helpers?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The raw strings that these variables resolve to on my box are:
../org_chromium_chromedriver_linux_x64/chromedriver_linux64/chromedriver
../org_chromium_chromium_linux_x64/chrome-linux/chrome
They include a ../ which seems to already refer to a runfiles path? But they need a second ../ to counteract the chdir on this target.
Do you think I should still be using the runfile helpers?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does this even work on windows? on windows the runfiles are not symlinked right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried to test this on my Windows vm but it looks like I've allowed a couple other things to regress on windows. I think I should start getting some of this running on ci, at least partially so I can check for any regressions on each PR. Are you okay with merging this as is and I'll do a Windows pass for the next PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good to me
82b6237 to
fe1d60e
Compare
| data = E2E_FILES + E2E_DEPS, | ||
| env = { | ||
| "CHROMEDRIVER_BIN": "../$(CHROMEDRIVER)", | ||
| "CHROME_BIN": "../$(CHROMIUM)", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does this even work on windows? on windows the runfiles are not symlinked right?
Includes a postinstall fix for puppeteer so that chromium can be run with protractor on osx under bazel
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |


@gkalpak @devversion @gregmagolan @josephperrott
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the new behavior?
The aio application e2e tests now run under bazel.
Does this PR introduce a breaking change?
Other information