Skip to content

Modify Default Translation - Allow Running Filters "upfront" and in "parallel"#110

Merged
fritz-astronomer merged 7 commits intomainfrom
parallel_translation2
Nov 21, 2025
Merged

Modify Default Translation - Allow Running Filters "upfront" and in "parallel"#110
fritz-astronomer merged 7 commits intomainfrom
parallel_translation2

Conversation

@fritz-astronomer
Copy link
Contributor

@fritz-astronomer fritz-astronomer commented Nov 18, 2025

  • feat: parallel translation

Can be used like:

TranslationRuleset(
    config=TranslationConfig(
        parallel=True,
        upfront=True
    )
)

e.g.
https://github.com/astronomer/orbiter-translations/blob/autosys_p1.2/orbiter_translations/autosys/jil_base.py#L1238-L1245

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 adds support for parallel and upfront translation modes in the Orbiter translation system. The changes introduce two new configuration options: parallel (enables multi-processing for filter operations) and upfront (runs all filtering before extraction steps).

  • Adds TranslationConfig with parallel and upfront boolean flags
  • Refactors the translate function to support three execution modes: default sequential, upfront sequential, and upfront parallel
  • Updates test suite to validate all three translation modes

Reviewed Changes

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

File Description
orbiter/rules/rulesets.py Defines TranslationConfig class with parallel and upfront fields to control translation execution modes
orbiter/default_translation.py Refactors translation logic into helper functions and adds branching logic to support upfront and parallel execution modes
tests/orbiter/rules/rulesets_test.py Adds fixture for test setup and three test functions to validate default, upfront, and parallel translation modes

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@codecov-commenter
Copy link

codecov-commenter commented Nov 18, 2025

Codecov Report

❌ Patch coverage is 87.73585% with 13 lines in your changes missing coverage. Please review.
✅ Project coverage is 82.65%. Comparing base (b3ee237) to head (fafb31b).
⚠️ Report is 71 commits behind head on main.

Files with missing lines Patch % Lines
orbiter/default_translation.py 83.33% 13 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #110      +/-   ##
==========================================
+ Coverage   78.92%   82.65%   +3.72%     
==========================================
  Files          35       51      +16     
  Lines        1362     1960     +598     
==========================================
+ Hits         1075     1620     +545     
- Misses        287      340      +53     

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

fritz-astronomer and others added 5 commits November 18, 2025 21:24
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: fritz-astronomer <80706212+fritz-astronomer@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: fritz-astronomer <80706212+fritz-astronomer@users.noreply.github.com>
@fritz-astronomer fritz-astronomer added the enhancement New feature or request label Nov 21, 2025
@fritz-astronomer fritz-astronomer merged commit dacf988 into main Nov 21, 2025
8 checks passed
@fritz-astronomer fritz-astronomer deleted the parallel_translation2 branch November 21, 2025 22:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants