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

Don't transform hrefs in one test #1022

Merged
merged 3 commits into from
Mar 1, 2023
Merged

Don't transform hrefs in one test #1022

merged 3 commits into from
Mar 1, 2023

Conversation

gadomski
Copy link
Member

@gadomski gadomski commented Mar 1, 2023

Related Issue(s):

Description:

We often have intermittent test failures due to an inability to hit CMR, e.g. https://github.com/stac-utils/pystac/actions/runs/4306838650/jobs/7511161952#step:5:321. In this case, the network request is unnecessary for the test that is running, so we diable the network request by setting transform_hrefs=False when serializing items.

I'm sure there's other spots where we could improve things by setting transform_hrefs=False, but rather than do a complete audit, I'd like to fix them as we find them from failed test runs.

PR Checklist:

  • Code is formatted (run pre-commit run --all-files)
  • Tests pass (run scripts/test)
  • Documentation has been updated to reflect changes, if applicable
  • This PR maintains or improves overall codebase code coverage.
  • Changes are added to the CHANGELOG. See the docs for information about adding to the changelog.

This is just in one spot, but we'll add it to others as we find them.
@gadomski gadomski added this to the 1.7 milestone Mar 1, 2023
@gadomski gadomski requested a review from pjhartzell March 1, 2023 18:58
@gadomski gadomski self-assigned this Mar 1, 2023
@gadomski gadomski enabled auto-merge March 1, 2023 19:38
@codecov-commenter
Copy link

codecov-commenter commented Mar 1, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.30%. Comparing base (d51acae) to head (7ac9291).
Report is 293 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1022   +/-   ##
=======================================
  Coverage   90.30%   90.30%           
=======================================
  Files          47       47           
  Lines        6189     6189           
  Branches      929      929           
=======================================
  Hits         5589     5589           
  Misses        422      422           
  Partials      178      178           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@gadomski gadomski added this pull request to the merge queue Mar 1, 2023
Merged via the queue into main with commit b48a9f5 Mar 1, 2023
@gadomski gadomski deleted the dont-transform-hrefs branch March 1, 2023 19:58
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