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

[Backport 1.7.latest] Stop trying to parse deleted schema files #9732

Merged
merged 2 commits into from
Mar 7, 2024

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Mar 7, 2024

Backport deedeeb from #9722.

* Add test around deleting a YAML file containing semantic models and metrics

It was raised in #8860 that an
error is being raised during partial parsing when files containing
metrics/semantic models are deleted. In further testing it looks like this
error specifically happens when a file containing both semantic models and
metrics is deleted. If the deleted file contains just semantic models or
metrics there seems to be no issue. The next commit should contain the fix.

* Skip deleted schema files when scheduling files during partial parsing

Waaaay back (in 7563b99) deleted schema files started being separated out
from deleted non-schema files. However ever since, when it came to scheduling
files for reparsing, we've only done so for deleted non-schema files. We even
missed this when we refactored the scheduling code in b37e5b5. This change
updates `_schedule_for_parsing` which is used by `schedule_nodes_for_parsing`
to begin skipping deleted schema files in addition to deleted non schema files.

* Update `add_to_pp_files` to ignore `deleted_schema_files`

As noted in the previous commit, we started separating out deleted
schema files from deleted non-schema files a looong time ago. However,
this whole time we've been adding `deleted_schema_files` to the list
of files to be parsed. This change corrects for that.

* Add changie doc for partial parsing KeyError fix

(cherry picked from commit deedeeb)
@github-actions github-actions bot requested a review from a team as a code owner March 7, 2024 14:31
@cla-bot cla-bot bot added the cla:yes label Mar 7, 2024
Copy link

@martynydbt martynydbt left a comment

Choose a reason for hiding this comment

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

thanks Quig!

Copy link

codecov bot commented Mar 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.69%. Comparing base (6919c50) to head (1112000).

Additional details and impacted files
@@              Coverage Diff               @@
##           1.7.latest    #9732      +/-   ##
==============================================
- Coverage       86.69%   86.69%   -0.01%     
==============================================
  Files             179      179              
  Lines           26651    26651              
==============================================
- Hits            23105    23104       -1     
- Misses           3546     3547       +1     
Flag Coverage Δ
integration 83.59% <100.00%> (-0.02%) ⬇️
unit 64.94% <0.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@QMalcolm QMalcolm merged commit 53d28ee into 1.7.latest Mar 7, 2024
108 checks passed
@QMalcolm QMalcolm deleted the backport-9722-to-1.7.latest branch March 7, 2024 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants