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

upload scraper screenshots in case of failure #644

Merged
merged 1 commit into from
Feb 1, 2025

Conversation

joaquintomas2003
Copy link
Member

No description provided.

@@ -19,7 +19,7 @@ def scrape
Capybara.configure do |config|
config.default_driver = ENV["HEADLESS"] == "false" ? :selenium_chrome : :selenium_chrome_headless
config.run_server = false
config.save_path = "tmp"
config.save_path = "tmp/capybara"
Copy link
Collaborator

Choose a reason for hiding this comment

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

just to confirm, do the screenshots we take in the rescue work for the parts of the code that we have multiple threads?

Copy link
Member Author

Choose a reason for hiding this comment

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

buena pregunta
lo hice fallar durante el process_prerequisites_slice y parece funcionar 👍

https://github.com/cedarcode/mi_carrera/actions/runs/13088675841/job/36522842270

with:
name: scraper_screenshot
path: ./tmp/capybara
retention-days: 2
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
retention-days: 2
retention-days: 5

pongámosle unos días más por si falla un fin de semana por ejemplo y no lo vemos enseguida

@joaquintomas2003 joaquintomas2003 force-pushed the jt--save_scraper_screenshots branch from 4867996 to f4f2663 Compare February 1, 2025 16:53
@joaquintomas2003 joaquintomas2003 merged commit 2c9a3d5 into master Feb 1, 2025
5 checks passed
@joaquintomas2003 joaquintomas2003 deleted the jt--save_scraper_screenshots branch February 1, 2025 16:55
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.

2 participants