Skip to content

Guard AiiDA workflow execution - #163

Open
njzjz-bot wants to merge 1 commit into
deepmodeling:develfrom
njzjz-bot:codex/issue-138-aiida-main-guard
Open

Guard AiiDA workflow execution#163
njzjz-bot wants to merge 1 commit into
deepmodeling:develfrom
njzjz-bot:codex/issue-138-aiida-main-guard

Conversation

@njzjz-bot

Copy link
Copy Markdown
Contributor

Summary:

  • move AiiDA profile loading and workflow startup behind a main guard
  • resolve the bundled FreeEnergy input relative to the repository
  • add an import-time side-effect regression test

Tests:

  • PYTHONPATH=.. python -m unittest test_aiida_workflow_script -v
  • python -m py_compile workflow/DpFreeEnergy-aiida.py
  • python -m ruff check --select I,F --ignore F841 workflow/DpFreeEnergy-aiida.py tests/test_aiida_workflow_script.py

Fixes #138

Coding agent: Codex
Codex version: codex-cli 0.149.0
Model: gpt-5.6-sol
Reasoning effort: xhigh

Move profile loading, example input reading, and workflow execution behind an explicit main entry point. Resolve the bundled input relative to the repository and add an AST regression test for import-time safety.

Coding-Agent: Codex
Codex-Version: codex-cli 0.149.0
Model: gpt-5.6-sol
Reasoning-Effort: xhigh
@coderabbitai

coderabbitai Bot commented Aug 23, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 40 minutes.

View limit details

Limit details: You’ve used the included review currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 4bd6be85-d95f-4615-8eec-461890ee2332

📥 Commits

Reviewing files that changed from the base of the PR and between 78091bd and 3660d7b.

📒 Files selected for processing (2)
  • tests/test_aiida_workflow_script.py
  • workflow/DpFreeEnergy-aiida.py

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@codecov

codecov Bot commented Aug 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 0.00%. Comparing base (78091bd) to head (3660d7b).

Additional details and impacted files
@@          Coverage Diff          @@
##           devel    #163   +/-   ##
=====================================
  Coverage   0.00%   0.00%           
=====================================
  Files         25      25           
  Lines       6665    6665           
=====================================
  Misses      6665    6665           

☔ 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.

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.

[Code scan] AiiDA workflow script starts work at import time

1 participant