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

fix(cts): split requests and e2e tests #3339

Merged
merged 4 commits into from
Jul 9, 2024
Merged

fix(cts): split requests and e2e tests #3339

merged 4 commits into from
Jul 9, 2024

Conversation

millotp
Copy link
Collaborator

@millotp millotp commented Jul 9, 2024

🧭 What and Why

🎟 JIRA Ticket: DI-2573

Split e2e to be able to retry them, or exclude them when running the test suite offline.

@millotp millotp self-assigned this Jul 9, 2024
@millotp millotp requested a review from a team as a code owner July 9, 2024 14:37
@millotp millotp requested review from Fluf22 and shortcuts July 9, 2024 14:37
@algolia-bot
Copy link
Collaborator

algolia-bot commented Jul 9, 2024

✔️ Code generated!

Name Link
🪓 Triggered by 6ed032036e82cf34685e7a4da4c835da489e0624
🍃 Generated commit f312881584d8087b7c08e38968ee2314c54721a2
🌲 Generated branch generated/fix/split-e2e

Copy link
Member

@shortcuts shortcuts left a comment

Choose a reason for hiding this comment

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

could you also add this condition in order to exclude them from forks? this way contributions can run and be merged

if: ${{ !github.event.pull_request.head.repo.fork && github.event.number }}

@millotp
Copy link
Collaborator Author

millotp commented Jul 9, 2024

could you also add this condition in order to exclude them from forks? this way contributions can run and be merged

yes good idea, I will make all the changes to the CI in the next PR, this is just to split them and generate all the files

shortcuts
shortcuts previously approved these changes Jul 9, 2024
Copy link
Member

@shortcuts shortcuts left a comment

Choose a reason for hiding this comment

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

I did not reviewed the mustache changes, in CI we trust

this is great!!


// We only store tests of clients that ran during this job, the rest stay as is
let testsToStore = matrix[language].toRun
.map((client) => {
const clientName = createClientName(client, language);
const extension = getTestExtension(language);

return `${testsOutputBase}/client/${clientName}${extension} ${testsOutputBase}/requests/${clientName}${extension}`;
return `${testsOutputBase}/client/${clientName}${extension} ${testsOutputBase}/requests/${clientName}${extension} ${testsOutputBase}/requests_e2e/${clientName}${extension}`;
Copy link
Member

Choose a reason for hiding this comment

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

maybe names should just be unit and e2e instead or requests

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

thats a big change, its the good time to do it, but I feel like both client and request tests are unit tests, maybe I can just rename request_e2e to responses or e2e

Copy link
Member

Choose a reason for hiding this comment

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

it was more to fit the usual naming of tests with unit, integration and e2e, but indeed both are unit tests

Copy link

github-actions bot commented Jul 9, 2024

@millotp millotp requested a review from shortcuts July 9, 2024 16:19
Copy link
Member

@shortcuts shortcuts left a comment

Choose a reason for hiding this comment

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

Wonderful execution

@millotp millotp merged commit be1e0ef into main Jul 9, 2024
20 checks passed
@millotp millotp deleted the fix/split-e2e branch July 9, 2024 16:40
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.

3 participants