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

Fixup for OS selection in GitHub Actions unittests workflow #628

Merged
merged 8 commits into from Oct 10, 2022

Conversation

jayaddison
Copy link
Collaborator

Resolves #627

I believe that our coveralls integration no longer uses GitHub Actions, so I think that this should be safe to do
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11.0-rc.1"]
exclude:
- os: macos-latest
python-version: "3.11.0-rc.1"
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Strangely, all of the macos-latest builds succeeded except for one running this release candidate version of Py3.11.

For that version, schema data extraction failed for the generic wild_mode scraper test.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'm having trouble figuring this one out. Despite enabling debug logging, there wasn't much additional context in the wild_mode scraper test failure output.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Roughly speaking: it's as if the unit test doesn't read the HTML content correctly (or at all?) when the TestWildMode test runs.

The errors arise when the scraper-under-test attempts to retrieve parsed schema.org JSON-LD fields from the content. For example, we see:

  File "/Users/runner/work/recipe-scrapers/recipe-scrapers/recipe_scrapers/_factory.py", line 21, in cook_time
    return self.schema.cook_time()
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/runner/work/recipe-scrapers/recipe-scrapers/recipe_scrapers/_schemaorg.py", line 120, in cook_time
    raise SchemaOrgException("Cooktime information not found in SchemaOrg")
recipe_scrapers._exceptions.SchemaOrgException: recipe-scrapers exception: Cooktime information not found in SchemaOrg

Note that this is happening in Py3.10 as well as seen in the latest builds.

… for {macos-latest, 3.11.0-rc.1} during GHA build of 9956ae4"

This reverts commit 93c0c86.
jayaddison added a commit that referenced this pull request Oct 10, 2022
…t failure noted at #628 (comment) bug could have been introduced

Attempted reading and comparing the 3.10.x and 3.11.x changelogs since the failure affects both lineages of Python, but that hasn't produced any definitive answers yet
jayaddison added a commit that referenced this pull request Oct 10, 2022
…t failure noted at #628 (comment) bug could have been introduced

Attempted reading and comparing the 3.10.x and 3.11.x changelogs since the failure affects both lineages of Python, but that hasn't produced any definitive answers yet
jayaddison added a commit that referenced this pull request Oct 10, 2022
…t failure noted at #628 (comment) bug could have been introduced

Attempted reading and comparing the 3.10.x and 3.11.x changelogs since the failure affects both lineages of Python, but that hasn't produced any definitive answers yet
jayaddison added a commit that referenced this pull request Oct 10, 2022
…t failure noted at #628 (comment) bug could have been introduced

Attempted reading and comparing the 3.10.x and 3.11.x changelogs since the failure affects both lineages of Python, but that hasn't produced any definitive answers yet
@jayaddison
Copy link
Collaborator Author

Merging the changes here so that subsequent pull requests will run with the full intended list of operating systems. Investigation into the test failures for Py3.10 / Py3.11 on MacOS continues in #629.

@jayaddison jayaddison merged commit 754a316 into main Oct 10, 2022
@jayaddison jayaddison deleted the issue-627/github-actions-unittests-os-fixup branch October 10, 2022 19:51
jayaddison added a commit that referenced this pull request Oct 10, 2022
…t failure noted at #628 (comment) bug could have been introduced

Attempted reading and comparing the 3.10.x and 3.11.x changelogs since the failure affects both lineages of Python, but that hasn't produced any definitive answers yet
@@ -10,11 +10,18 @@ on:

jobs:
test:
runs-on: ubuntu-latest
Copy link
Owner

Choose a reason for hiding this comment

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

that's been pretty lame on my part 😅

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.

GitHub Actions: unit tests not exercising different operating systems
2 participants