Skip to content

Conversation

@vkarak
Copy link
Contributor

@vkarak vkarak commented Sep 6, 2025

This is the exact equivalent of loading test library module from a test file. Now users can import custom modules that reside in the same directory as the configuration file, without having to resort to boilerplate code that updates sys.path.

Close #2877.

Implementation details

Since the functionality is exactly the same as that for the test files, the code is refactored so as to be reused i both scenarios.

Note that the interface import_module_from_file() has changed, however we sill schedule this change for 4.9, since our versioning reflects the test API and not the API of the various utilities.

Todos

  • Update documentation

@vkarak vkarak force-pushed the feat/custom-config-imports branch from 688ebfd to 5caf3a1 Compare September 6, 2025 22:00
@codecov
Copy link

codecov bot commented Sep 6, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.22%. Comparing base (8000b58) to head (92800e3).
⚠️ Report is 6 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #3548      +/-   ##
===========================================
- Coverage    91.23%   91.22%   -0.02%     
===========================================
  Files           62       62              
  Lines        13464    13470       +6     
===========================================
+ Hits         12284    12288       +4     
- Misses        1180     1182       +2     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@github-project-automation github-project-automation bot moved this from Todo to In Progress in ReFrame Backlog Sep 16, 2025
@vkarak vkarak merged commit df31923 into reframe-hpc:develop Sep 18, 2025
39 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in ReFrame Backlog Sep 18, 2025
@vkarak vkarak deleted the feat/custom-config-imports branch September 18, 2025 21:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Simplify custom imports also in the configuration file

2 participants