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

ci: additional smoke tests #283

Merged
merged 21 commits into from
Oct 8, 2024
Merged

ci: additional smoke tests #283

merged 21 commits into from
Oct 8, 2024

Conversation

perf2711
Copy link
Contributor

@perf2711 perf2711 commented Sep 6, 2024

This PR adds new smoke tests for Node, testing combinations of JS/TS and ESM/CJS.

This also adds a WDIO smoke test run on Sauce Labs for React SDK with Session Replay.

@perf2711 perf2711 added the enhancement New feature or request label Sep 6, 2024
@perf2711 perf2711 self-assigned this Sep 6, 2024
@perf2711 perf2711 marked this pull request as ready for review September 6, 2024 09:21
@perf2711 perf2711 force-pushed the ci/more-smoke-tests branch from ddf4896 to 8e7fba1 Compare September 6, 2024 10:09
@perf2711 perf2711 force-pushed the ci/more-smoke-tests branch from aefadb8 to e18a026 Compare October 1, 2024 14:26
Copy link
Collaborator

@konraddysput konraddysput left a comment

Choose a reason for hiding this comment

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

e2e tests are important and I'm happy that we're doing this. I'm not fully sure what is the idea for the smoketest project - how it should work in the dev environment or in cicd pipeline. I have a lot of open questions related to flow. Does it make sense to also add a README file with information what is this project and what it does/how to use it?


export function npm(cwd: string, args: string[], options?: SpawnOptionsWithoutStdio) {
export function npm(cwd: string, args: string[], options?: AsyncSpawnOptions) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

we talked about this on Slack but I still dont get it:
Questions:

  • Why do we need to write scripts around this. Why we cannot just use CICD pipeline setup.
  • if we're already in the npm workspace, why the development process is hard? We can just have a watch process. We don't need to install every time npm packages or clean them.
  • Why it's not enough to use npm workspace and the same actions. We can execute all actions in a single workspace that has a task node:e2e or browser:e2e.
  • Why do we need to have a dedicated project for smoke tests?

Copy link
Contributor Author

@perf2711 perf2711 Oct 4, 2024

Choose a reason for hiding this comment

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

Why do we need to write scripts around this. Why we cannot just use CICD pipeline setup.

We want the developer to be able to run the tests without CICD pipelines.

if we're already in the npm workspace, why the development process is hard? We can just have a watch process. We don't need to install every time npm packages or clean them.

You can definitely do that if you want. Install NPM packages yourself, set up a watch process, and run the test.

Why it's not enough to use npm workspace and the same actions. We can execute all actions in a single workspace that has a task node:e2e or browser:e2e.

Installing the packages by itself is a test. I wanted to separate this.

Why do we need to have a dedicated project for smoke tests?

Why not? Where you would put it otherwise?

@perf2711 perf2711 merged commit e096dcf into main Oct 8, 2024
5 checks passed
@perf2711 perf2711 deleted the ci/more-smoke-tests branch October 8, 2024 11:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants