This repository was archived by the owner on Apr 30, 2026. It is now read-only.
Fix reuse of pipelines including IterBlock#84
Closed
russellb wants to merge 1 commit intoinstructlab:mainfrom
Closed
Fix reuse of pipelines including IterBlock#84russellb wants to merge 1 commit intoinstructlab:mainfrom
russellb wants to merge 1 commit intoinstructlab:mainfrom
Conversation
When running `sdg.generate()` more than once, a pipeline including an `IterBlock` would fail because the `block_kwargs` were removed the first time the block was used. This change removes the special handling for `IterBlock` because it does not appear to be necessary. The new code ends up calling the block's constructor with all of the same arguments, but now `block_kwargs` doesn't disappear. Signed-off-by: Russell Bryant <rbryant@redhat.com>
51ffecf to
fd3cc02
Compare
Contributor
|
You've also fixed the fact that we were instantiating the blocks twice: I did wonder about this special handling of Anyhow, lgtm 👍 |
Contributor
Contributor
Author
Contributor
|
IterBlock was removed by #105 |
jwm4
pushed a commit
to jwm4/sdg
that referenced
this pull request
Dec 13, 2024
…actions/step-security/harden-runner-2.8.1 Bump step-security/harden-runner from 2.8.0 to 2.8.1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When running
sdg.generate()more than once, a pipeline including anIterBlockwould fail because theblock_kwargswere removed thefirst time the block was used. This change removes the special
handling for
IterBlockbecause it does not appear to be necessary.The new code ends up calling the block's constructor with all of the
same arguments, but now
block_kwargsdoesn't disappear.Signed-off-by: Russell Bryant rbryant@redhat.com