• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pyiron / executorlib / 13121720373
96%

Build:
DEFAULT BRANCH: main
Ran 03 Feb 2025 07:58PM UTC
Jobs 1
Files 32
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

03 Feb 2025 07:56PM UTC coverage: 95.735% (-0.3%) from 95.996%
13121720373

push

github

web-flow
[major] Refactor the Executor interface (#548)

* [major] Refactor the Executor interface

Replace the backend parameter from the initialization of the Executor class with individual executor classes for the individual backends:
* `Executor(backend="local")` becomes `from executorlib import LocalExecutor§
* `Executor(backend="flux_allocation")` becomes `from executorlib import FluxAllocationExecutor§
* `Executor(backend="flux_submission")` becomes `from executorlib import FluxSubmissionExecutor§
* `Executor(backend="slurm_allocation")` becomes "SlurmAllocationExecutor"
* `Executor(backend="slurm_submission")` becomes `from executorlib import SlurmSubmissionExecutor`

This has two advantages: On the one hand it is less error prone to mistyping the backend name, as the user can use auto completion to import the right module. On the other hand it is more consistent with the standard library which defines the `ProcessPoolExecutor` and the `ThreadPoolExecutor`, rather than a `backend` parameter.

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* fix test

* update benchmark

* move interfaces to individual modules

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* fixes

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* remove create

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* remove redundant functionality

* Move graph tests

* remove core check

* clean up

* more tests

* fix import

* more fixes

* Rename LocalExecutor to SingleNodeExecutor

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* test block allocation

* fix

* flux fix

* Rename interfaces

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* fix doc... (continued)

127 of 143 new or added lines in 4 files covered. (88.81%)

1100 of 1149 relevant lines covered (95.74%)

0.96 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
94.59
executorlib/interfaces/single.py
5
91.38
executorlib/interfaces/flux.py
9
79.55
executorlib/interfaces/slurm.py
Jobs
ID Job ID Ran Files Coverage
1 13121720373.1 03 Feb 2025 07:58PM UTC 32
95.74
GitHub Action Run
Source Files on build 13121720373
  • Tree
  • List 32
  • Changed 2
  • Source Changed 1
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #13121720373
  • d95d6ca7 on github
  • Prev Build on main (#13121086374)
  • Next Build on main (#13128775192)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc