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: Add templates apify integration tests #1109

Open
wants to merge 13 commits into
base: master
Choose a base branch
from

Conversation

Pijukatel
Copy link
Collaborator

@Pijukatel Pijukatel commented Mar 20, 2025

Description

Add crawlee templates integration tests with Apify platform. (only Parsel and Beautifulsoup templates)
Add workflow for manual triggering of integration tests (Will become automatic once it is running for a while to prove stability.)

Issues

Testing

Tested on forked repo:

Next steps

Add tests for Playwright based templates.
Fix current problems with Playwright template that has failing run in default settings.

Making the integration tests each run in separate job. Each test can take long time and can be unstable due to the network issues. This brings the necessity to have the possibility to re-trigger individual tests and not the whole test suite.

Since Playwright based crawlers are slower, this will be introduced together with their testing.
Example such run, where only one template test can be re-triggered:
image

@Pijukatel Pijukatel added t-tooling Issues with this label are in the ownership of the tooling team. debt Code quality improvement or decrease of technical debt. labels Mar 20, 2025
pyproject.toml Outdated
Comment on lines 214 to 216
exclude = ["project_template"]
files = ["src", "tests", "docs", "website"]
exclude = ["src/crawlee/project_template"]
modules=["crawlee", "tests"]
Copy link
Collaborator

Choose a reason for hiding this comment

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

?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The exclude was done more specific to not exclude test/integration/project_template
The other line was not correct.

@github-actions github-actions bot added this to the 110th sprint - Tooling team milestone Mar 20, 2025
@github-actions github-actions bot added the tested Temporary label used only programatically for some analytics. label Mar 20, 2025
@Pijukatel Pijukatel requested a review from vdusek March 20, 2025 14:34
@Pijukatel Pijukatel marked this pull request as ready for review March 20, 2025 14:34
@Pijukatel Pijukatel requested a review from janbuchar March 20, 2025 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
debt Code quality improvement or decrease of technical debt. t-tooling Issues with this label are in the ownership of the tooling team. tested Temporary label used only programatically for some analytics.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add integration tests for actor templates
2 participants