feat: add option to separate configs by tags on export#1005
Open
wakonig wants to merge 1 commit into
Open
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR enhances the device configuration export workflow by adding an option to export the current session split into multiple YAML files grouped by deviceTags, and it also refactors/extends the config helper API (set_session, add_to_session, save_session) while keeping backward-compatible aliases.
Changes:
- Added
save_session(..., split_by_tag=True)to write a manifest plus one YAML file per tag (and anuntaggedbucket). - Introduced
set_session(replacement forupdate_session_with_file) and addedadd_to_session; updated call sites/tests accordingly. - Added unit tests covering split-by-tag export behavior and updated e2e tests to use
set_session.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 6 comments.
| File | Description |
|---|---|
| bec_lib/tests/test_config_helper.py | Updates tests for the new API names and adds coverage for split-by-tag export output. |
| bec_lib/bec_lib/config_helper.py | Implements split_by_tag export, adds add_to_session, refactors session APIs, and introduces helper functions for split output generation. |
| bec_ipython_client/tests/end-2-end/test_scans_lib_e2e.py | Updates e2e tests to use set_session instead of update_session_with_file. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
wakonig
force-pushed
the
feature/config_split
branch
3 times, most recently
from
July 15, 2026 14:17
adf0e95 to
357b958
Compare
wakonig
force-pushed
the
feature/config_split
branch
from
July 15, 2026 14:25
357b958 to
058df16
Compare
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
bec.config.save_current_sessionnow supports the export by tags.Additional Comments
Once merged, we can add it also to the DeviceManagerView
Definition of Done