Skip to content

Make generated examples relocatable - #695

Merged
vitenti merged 3 commits into
masterfrom
make-generated-examples-relocatable
Oct 23, 2026
Merged

vitenti merged 3 commits into
masterfrom
make-generated-examples-relocatable

Conversation

@vitenti

@vitenti vitenti commented Oct 23, 2026

Copy link
Copy Markdown
Collaborator
  • Behavior change: use_absolute_path now defaults to False, so the generated configurations name their files relative to the example directory and the frameworks run from that directory; pass --use-absolute-path for the previous behavior
  • Load the CosmoSIS connector through firecrown_cosmosis.py, written next to the ini, which imports it from the installed Firecrown; the ini no longer records the connector's installed path
  • Drop root from the generated ini, so that CosmoSIS resolves relative paths against the directory it runs from
  • Write the cmb_cross experiment path relative unless use_absolute_path is set, as des_y1_3x2pt already does
  • Check in the unit tests that no generated file names its directory or the Firecrown installation, and run a moved cosmic_shear with each framework in the example tests
  • Checked locally: 4309 unit tests and 84 example runs pass

@github-actions

github-actions Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

PR revision: 0cff434d7bd0a78b11aacf74f1a6a93f25f3ebd5
Target: master

Breaking API changes detected (1 findings). Informational because the target is master. Reviewer assessment required.

PR public API verdict

Breaking API changes detected (1 findings). Informational because the target is master. Reviewer assessment required.

Target: master
Revision: 0cff434d7bd0a78b11aacf74f1a6a93f25f3ebd5
Baseline: d130a0f9eeda086cd485e66963b5bd642424a99e

Static analysis only: no behavioral compatibility guarantee or external-dependency signature analysis.

Public API changes: d130a0f -> HEAD

Executive summary

  • 1 Attribute value was changed

Breaking changes

  • firecrown.app.analysis.AnalysisBuilder.use_absolute_path: Attribute value was changed: True -> False

New public API

None.

Complete report artifact and workflow run | API job

@codecov

codecov Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.0%. Comparing base (24031a4) to head (0cff434).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #695   +/-   ##
=======================================
  Coverage   100.0%   100.0%           
=======================================
  Files         163      163           
  Lines        9978     9979    +1     
  Branches     1199     1199           
=======================================
+ Hits         9978     9979    +1     
Files with missing lines Coverage Δ
firecrown/app/analysis/_analysis_builder.py 100.0% <ø> (ø)
firecrown/app/analysis/_cosmosis.py 100.0% <100.0%> (ø)
firecrown/app/examples/_cmb_cross.py 100.0% <ø> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

* Write firecrown_cosmosis.py, which imports setup, execute and cleanup from the installed firecrown.connector.cosmosis.likelihood, and point the ini's firecrown_likelihood file at it instead of at the connector's installed path
* Drop root from the generated ini, so that CosmoSIS resolves relative paths against the directory it runs from
* Behavior change: use_absolute_path now defaults to False, so the generated configurations name their files relative to the example directory and the frameworks run from that directory; pass --use-absolute-path for the previous behavior
* Write the cmb_cross experiment path relative unless use_absolute_path is set, as des_y1_3x2pt already does
* Run the example tests that build the likelihood from the example directory
* Check in the unit tests that the generated files of cosmic_shear and cmb_cross name neither their directory nor the Firecrown installation, and that the CosmoSIS ini loads the shim
* Run cosmic_shear with each framework after moving its directory, in the example tests
@vitenti
vitenti force-pushed the make-generated-examples-relocatable branch from fc94845 to 0cff434 Compare October 23, 2026 16:49
@vitenti
vitenti merged commit fb5d141 into master Oct 23, 2026
16 checks passed
@vitenti
vitenti deleted the make-generated-examples-relocatable branch October 23, 2026 17:40
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.

2 participants