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

[CT-2604] [Bug] StopIteration when publication for dependency not found #7711

Closed
Tracked by #7372
MichelleArk opened this issue May 26, 2023 · 0 comments · Fixed by #7710
Closed
Tracked by #7372

[CT-2604] [Bug] StopIteration when publication for dependency not found #7711

MichelleArk opened this issue May 26, 2023 · 0 comments · Fixed by #7710
Assignees
Labels
bug Something isn't working multi_project

Comments

@MichelleArk
Copy link
Contributor

MichelleArk commented May 26, 2023

Introduced in: #7656

When a project in (a non-empty) dependencies.yml is specified that is not provided as a PublicationArtifact dbt crashes with StopIteration

Reproduction case:

-- dependencies.yml
projects:
  - name: project_a
  - name: project_b
dbt = dbtRunner()
dbt.invoke(["parse"], publications=[PublicationArtifact(project_name="project_a")

Current Behaviour:
dbt crashes with:

  File "/Users/michelleark/src/dbt-core/core/dbt/parser/manifest.py", line 846, in load_new_public_nodes
    next(p for p in self.publications if p.project_name == project.name)
StopIteration

Expected Behaviour:

Runtime Error
  A dependency on project project_b was specified, but a publication for project_b was not found.
@MichelleArk MichelleArk self-assigned this May 26, 2023
@github-actions github-actions bot changed the title [Bug] StopIteration when publication for dependency not found [CT-2604] [Bug] StopIteration when publication for dependency not found May 26, 2023
@jtcohen6 jtcohen6 added the bug Something isn't working label May 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working multi_project
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants