Skip to content

Conversation

@MrCreosote
Copy link
Member

If subactions are provided in the initial provenance or via set_provenance, they may be duplicated in the stored provenance if a module in the subaction list is run by the callback server. This fix processes initial subactions correctly.

If subactions are provided in the initial provenance or via
set_provenance, they may be duplicated in the stored provenance if a
module in the subaction list is run by the callback server. This fix
processes initial subactions correctly.
@MrCreosote MrCreosote requested a review from bio-boris August 16, 2025 22:13
@bio-boris bio-boris requested a review from Copilot August 18, 2025 01:29
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes a bug where subactions were being duplicated in provenance when they were provided in initial provenance and then executed by the callback server. The fix ensures subactions are processed correctly through the existing add_subaction method rather than being added directly to avoid duplication.

  • Modified provenance initialization to use add_subaction method for processing initial subactions
  • Updated test to use double quotes instead of single quotes for consistency
  • Added comprehensive test case to verify subaction deduplication behavior

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
JobRunner/provenance.py Fixed subaction initialization to prevent duplication by using add_subaction method
test/test_callback_server_integration.py Updated quote style and added test case for subaction deduplication

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@MrCreosote
Copy link
Member Author

Seems like codecov has been having issues recently

@MrCreosote MrCreosote merged commit 99b2958 into main Aug 18, 2025
10 checks passed
@MrCreosote MrCreosote deleted the dev-prov_fix branch August 18, 2025 01:43
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