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 test changes workflow #94

Merged
merged 6 commits into from
Jan 21, 2021

Conversation

cyroxx
Copy link
Collaborator

@cyroxx cyroxx commented Jan 21, 2021

Follow-up to PR #61.

The previous PR had some issues:

  1. git whatchanged failed because actions/checkout@v2 only checks out the latest commit by default. Fixed by setting fetch-depth to 0 in order to check out the full history. (In the unforeseeable future, there might be a fetch-refs option to optimize this, see revise adr to support fetch-refs actions/checkout#155)
  2. the scrapy version was too old and did not have the --overwrite-output option that is used in test_changes.sh
  3. database_pipeline.py created a session during load time, which complicates things when we do not actually need the DatabasePipeline. refactored session creation into the get_session() method to be more flexible here.
    @k-nut : Please take a closer look at the session management (6791182). I do have the feeling that our session handling could be improved (i, e. using a fewer number of opened sessions overall).
  4. improved test_changes.py(!) so that its output is helpful in more cases

@cyroxx cyroxx requested a review from k-nut January 21, 2021 02:01
1. output the HTTP error to make it easier to see what's happening
2. always output the NEW data, even in case of an HTTP error
@cyroxx
Copy link
Collaborator Author

cyroxx commented Jan 21, 2021

@k-nut k-nut merged commit 1eb95fa into Datenschule:master Jan 21, 2021
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