Skip to content

Test: Integration stack for HTCondor - #34

Draft
Alexander-Auer wants to merge 10 commits into
DIRACGrid:mainfrom
Alexander-Auer:stack/htcondor-2-integration-stack
Draft

Alexander-Auer wants to merge 10 commits into
DIRACGrid:mainfrom
Alexander-Auer:stack/htcondor-2-integration-stack

Conversation

@Alexander-Auer

Copy link
Copy Markdown
Contributor

test: the htcondor stack, and running integration tests side by side

Part of #23, related to #5. PR 2 of 6 for the HTCondor-CE backend.

No dependencies: this changes nothing in src/, applies directly to main, and can merge at any time.

What's added

  • Image (stacks/_images/htcondor-ce): AlmaLinux 9 with an HTCondor-CE in front of a one-machine pool, both in one container. It builds latest or lts, following the stack's versions.
  • Stack (stacks/htcondor): publishes the CE on 127.0.0.1:9619, with a basic configuration.
  • CI:
    • Tests run in parallel, using a new workers setting in stacks.yml (default 4).
    • -rs --no-fold-skipped makes the log name every skipped test and why.
    • The workflow also runs when src/ changes.
  • Image build: skips package mirrors slower than 1 MB/s and shares its common install steps between versions.

What to expect from CI

No test selects this stack yet, so its job only shows that the stack builds and starts (pytest exit 5 is tolerated). The suite arrives in PR 6.

Testing

1 new manifest test for workers. The same image and stack passed the full suite on both lts and latest on my fork (eb0fec6).

@Alexander-Auer Alexander-Auer changed the title Stack/htcondor 2 integration stack Test: Integration stack for HTCondor Nov 3, 2026
@Alexander-Auer
Alexander-Auer force-pushed the stack/htcondor-2-integration-stack branch from 3198fa6 to 6a58e1b Compare November 6, 2026 13:11
@Alexander-Auer
Alexander-Auer force-pushed the stack/htcondor-2-integration-stack branch from 6a58e1b to 9556be7 Compare November 16, 2026 08:24
@Alexander-Auer
Alexander-Auer marked this pull request as ready for review November 16, 2026 09:10
@Alexander-Auer Alexander-Auer linked an issue Nov 16, 2026 that may be closed by this pull request
4 tasks
@Alexander-Auer Alexander-Auer self-assigned this Nov 16, 2026
@Alexander-Auer
Alexander-Auer requested a review from aldbr November 16, 2026 09:15
Moves test_fake_backend.py to tests/unit/backends/fake/, ready for the
HTCondor tests that follow. The tests themselves do not change.

Part of DIRACGrid#23.
Renders a submit description from a plan: one process per copy, per-copy
values indexed by ProcId, quoting, and refusing what a description cannot
hold. It sets no policy on the job except keeping finished jobs until they
are purged, so output can be collected again.

Shared with the HTCondor scheduler to come (DIRACGrid#21), so it knows nothing about
any backend. Expected values were checked against HTCondor 25.

Part of DIRACGrid#23.
Builds the tools' command lines and reads what they print: condor_submit
-terse, condor_rm, and the job ads of condor_q and condor_history, mapped
to the common JobStatus.

A finished job's result comes from its exit, a removed job keeps the result
it had, and any hold that interCEde did not cause counts as aborted.

Part of DIRACGrid#23.
interCEde no longer supports proxies, so a description has nothing to say about one.
The core is tested through the HTCondor-CE backend that uses it, and on the
htcondor stack by the shared suite.
A stack's tests run with pytest-xdist (stacks.yml `workers`, default 4), and
`-rs --no-fold-skipped` makes the log name every skipped test and why. The
workflow also runs when src/ changes, since that is what it exists to test.

Part of DIRACGrid#23.
An HTCondor-CE in front of a one-machine HTCondor pool. The image refuses
package mirrors below 1 MB/s and caches its slow installs per version.

No test selects this stack yet, so its CI job only shows that the stack
starts (pytest exit 5 is tolerated). The shared suite lands later.

Part of DIRACGrid#23.
@Alexander-Auer
Alexander-Auer force-pushed the stack/htcondor-2-integration-stack branch from 7e71c02 to 7809b88 Compare December 1, 2026 16:47
@Alexander-Auer
Alexander-Auer requested a review from a team as a code owner December 1, 2026 16:47
@Alexander-Auer
Alexander-Auer marked this pull request as draft December 1, 2026 16:50
…emaps

Each is written on a line of its own, so a line break would start another
submit command. A stream name given by the consumer is also written as it is:
its "$" is escaped, and only the default names one file per process.
With -match it stops reading the history file at the number of jobs asked
about, as DIRAC's HTCondorCEComputingElement does.

This branch has not been deployed

No deployments
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.

[Feature]: HTCondorCEBackend — grid CE over the shared _htcondor core

1 participant