Skip to content

Make documentation updates#916

Open
laurenchilutti wants to merge 6 commits into
NOAA-GFDL:mainfrom
laurenchilutti:make_docs
Open

Make documentation updates#916
laurenchilutti wants to merge 6 commits into
NOAA-GFDL:mainfrom
laurenchilutti:make_docs

Conversation

@laurenchilutti

@laurenchilutti laurenchilutti commented Jun 23, 2026

Copy link
Copy Markdown
Member

Describe your changes

This changes fremake documentation in the docs/ directory (rst files) and in the fremake.py cli interface defining file.

Background info:
I noticed that the --execute/-e arguments in fremake.py varied by subtool:
fre make all supported -e and --execute
fre make checkout-script supported only --execute
fre make compile-script supported only --execute
fre make dockerfile supported only --execute
And I also noticed that the documentation in the docs/ directory stated that:
fre make all didn't mention execute at all
fre make checkout-script supported -e and --execute
fre make compile-script supported -e and --execute
fre make dockerfile didn't mention execute at all

As a result:

I made changes to fremake.py to have all subtools suport --ecxecute and -e
I then used AI (Gemini 3.5 Flash in the web browser) to update docs/tools/make.rst and docs/usage/guides/fre_make_guide.rst based on fremake.py
I made changes to what AI produced.

Issue ticket number and link (if applicable)

N/A

Checklist before requesting a review

  • I ran my code
  • I tried to make my code readable
  • I tried to comment my code
  • I wrote a new test, if applicable
  • I wrote new instructions/documentation, if applicable
  • I ran pytest and inspected it's output
  • I ran pylint and attempted to implement some of it's feedback
  • No print statements; all user-facing info uses logging module

Note: If you are a code maintainer updating the tag or releasing a new fre-cli version, please use the release_procedure.md template. To quickly use this template, open a new pull request, choose your branch, and add ?template=release_procedure.md to the end of the url.

@codecov

codecov Bot commented Jun 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.09%. Comparing base (196e168) to head (0e3eb77).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #916      +/-   ##
==========================================
+ Coverage   82.03%   82.09%   +0.05%     
==========================================
  Files          67       67              
  Lines        3736     3736              
==========================================
+ Hits         3065     3067       +2     
+ Misses        671      669       -2     
Flag Coverage Δ
unittests 82.09% <100.00%> (+0.05%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
fre/make/fremake.py 95.58% <100.00%> (ø)

... and 1 file with indirect coverage changes


Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 196e168...0e3eb77. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@laurenchilutti laurenchilutti changed the title In progress: Make documentation updates Make documentation updates Jun 24, 2026

@singhd789 singhd789 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this update. I was working on updating some of these things in that readme refactor I had going but may have missed some myself. One thing to note - I believe the -npc option may just be the default for container builds now, so it may not even really be needed in the guides/quickstarts.

# Create checkout script
fre make checkout-script -y [model yaml file] -p [CONTAINER PLATFORM] -t [target]
# Create checkout script (turning off parallel checkout)
fre make checkout-script -y [model yaml file] -p [CONTAINER PLATFORM] -t [target] -npc

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think -npc is actually needed anymore (it's the default behavior for containers now)

fre make all -y [model yaml file] -p [CONTAINER PLATFORM] -t [target] --execute
# Run all of fremake: create and run checkout script, makefile, dockerfile, container
# creation script, and build the model container
fre make all -y [model yaml file] -p [CONTAINER PLATFORM] -t [target] -npc --execute

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

similar -npc comment as above

Comment on lines +91 to +96
In order for the container to build successfully, the parallel checkout feature is disabled using the -npc option.

.. code-block::
.. code-block:: bash

# Create checkout script
fre make checkout-script -y null_model.yaml -p hpcme.2023 -t prod
# Create checkout script
fre make checkout-script -y null_model.yaml -p hpcme.2023 -t prod -npc

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see -npc comment

# Create Makefile
fre make makefile -y null_model.yaml -p hpcme.2023 -t prod
# Create Makefile
fre make makefile -y null_model.yaml -p hpcme.2023 -t prod

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ooof, this was a good reminder - these platforms may need to be severely updated. I'm not even sure we should be using some of these anymore 😅

Comment thread fre/make/fremake.py

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for this consistency fix. I'm going to suggest we just include --execute and not -e because there are some other fre tools that use -e for experiment name.

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