Skip to content

Add experimental DummyOptimization and adopt new dev workflow - #116

Merged
goerz merged 2 commits into
masterfrom
dev-workflow
Sep 16, 2026
Merged

goerz merged 2 commits into
masterfrom
dev-workflow

Conversation

@goerz

@goerz goerz commented Sep 15, 2026

Copy link
Copy Markdown
Member

The documentation environment temporarily takes QuantumPropagators from its master branch (via [sources]), because v0.9.0 has a broken cross-reference. CI shows an "Unreleased sibling package" warning for this. Remove the entry after the next QuantumPropagators release.

* Add the non-exported, experimental `QuantumControl.DummyOptimization`
  submodule with `dummy_control_problem` and the `:dummymethod`
  optimization method, moved from QuantumControlTestUtils (which no
  longer depends on QuantumControl). It includes private copies of the
  random-object generators, so that the same `rng` produces the same
  dummy problems. The API docs list it only in the reference, marked
  as experimental.
* Adapt the tests to QuantumControlTestUtils 0.4: import
  `dummy_control_problem` from `QuantumControl.DummyOptimization`, pass
  the terms returned by `random_dynamic_generator` to `hamiltonian`,
  and drop the unused `QuantumTestLogger`. Fix the `sparsity` keyword
  in test_adjoint_trajectory.jl, which should be `density`.
* Adopt the org-wide development workflow: standard Makefile, test
  environment reduced to what the tests use, no devrepl.jl, new CI with
  a lowest-compat job on the oldest supported Julia. The downstream
  GRAPE/Krotov workflows now test their master branches against the
  current QuantumControl via Pkg.develop.
* Docs: take QuantumPropagators from its master branch via [sources]
  until the next QuantumPropagators release (v0.9.0 has a broken
  cross-reference). Add Documenter remotes for URL-sourced packages, so
  source links point to GitHub.
* Add two ExternalFallbacks for `Krotov-Background` and
  `storage-contract`.
@codecov

codecov Bot commented Sep 15, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 65.34653% with 70 lines in your changes missing coverage. Please review.
✅ Project coverage is 84.4%. Comparing base (9f2123e) to head (3181ef8).

Files with missing lines Patch % Lines
src/dummy_optimization.jl 65.4% 70 Missing ⚠️

❌ Your patch check has failed because the patch coverage (65.4%) is below the target coverage (90.0%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files
@@           Coverage Diff            @@
##           master    #116     +/-   ##
========================================
- Coverage    87.8%   84.4%   -3.3%     
========================================
  Files          20      21      +1     
  Lines        1140    1342    +202     
========================================
+ Hits         1000    1132    +132     
- Misses        140     210     +70     

☔ View full report in Codecov by Harness.
📢 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.

The tests import the `Random` standard library, which was missing from
`test/Project.toml`. `make test` did not catch this because the default
`LOAD_PATH` includes the standard library and the global environment,
while `Pkg.test` on CI only sees the test environment.

`make test` and `make coverage` now set `JULIA_LOAD_PATH="@"` and
`--startup-file=no`, so that a dependency missing from
`test/Project.toml` is an error locally as well.
@goerz
goerz merged commit 96011c2 into master Sep 16, 2026
8 of 10 checks passed
@goerz
goerz deleted the dev-workflow branch September 16, 2026 10:57
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.

1 participant