Skip to content

added PACE/SimBoard performance paths to machine configs - #562

Merged
xylar merged 4 commits into
mainfrom
add_performance_archive_paths_to_machine_configs
Nov 25, 2026
Merged

xylar merged 4 commits into
mainfrom
add_performance_archive_paths_to_machine_configs

Conversation

@TonyB9000

@TonyB9000 TonyB9000 commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Updated selected machine config files with "performance, staging_path" and "performance, archive_path" attributes in support of anticipated employment by SimBoard application, where such paths are available.

Addresses SimBoard issue#349 in part.

Checklist

  • Tests pass and new features are covered by tests
  • Testing comment, if appropriate, in the PR documents testing used to verify the changes

@TonyB9000

TonyB9000 commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor Author

@tomvothecoder As mache documentation does not appear to exhaust all possible config file values, I have chosen not to update documentation for these added values at this time. I can update separately where indicated.

@xylar xylar self-assigned this Nov 18, 2026
@xylar
xylar requested review from tomvothecoder and xylar November 18, 2026 23:25
@xylar xylar added the enhancement New feature or request label Nov 18, 2026
@xylar

xylar commented Nov 18, 2026

Copy link
Copy Markdown
Collaborator

@TonyB9000, it's okay to just add these without any docs but it might be helpful if we did tell someone where to find these paths (e.g. if they're defined in E3SM somewhere) if they want to add a new machine or add the paths for a machine that's missing them.

@xylar

xylar commented Nov 18, 2026

Copy link
Copy Markdown
Collaborator

@tomvothecoder, could you review this when you can?

@TonyB9000

TonyB9000 commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor Author

@xylar I expect to add some documentation commentary, once I better understand where it should appear.
I was going to ask Tom to review first, but "reviewers" seemed to get filled in automatically. (And this is the first time I've seen commentary with latest at the top...)

@xylar

xylar commented Nov 19, 2026

Copy link
Copy Markdown
Collaborator

I was going to ask Tom to review first, but "reviewers" seemed to get filled in automatically.

I filled them in.

@xylar

xylar commented Nov 19, 2026

Copy link
Copy Markdown
Collaborator

@TonyB9000, you are right. I looked through the docs and there's not a great place to document the new config options. We'll hope the comments in the config files themselves suffice for now.

@tomvothecoder

tomvothecoder commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

@TonyB9000, it's okay to just add these without any docs but it might be helpful if we did tell someone where to find these paths (e.g. if they're defined in E3SM somewhere) if they want to add a new machine or add the paths for a machine that's missing them.

If we want to document where these paths are defined in E3SM tools:

  1. staging_path: Root dir defined in CIME config_machines.xml as SAVE_TIMING_DIR and the cime.provenance module automatically adds the /performance_archive part.
  2. archive_path: Defined by in various PACE scripts as documented here (it's messy). In all the cases I've seen it's the same staging_path but /performance_archive is substituted with OLD_PERF.

@tomvothecoder

tomvothecoder commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

@TonyB9000 under the [diagnostics] section can you add archive_path and archive_url? These are related to standardized output paths that zppy uses to publish to SimBoard. Only need to update perlmutter and chrysalis configs, no support for other sites yet.

pm-cpu.cfg and pm-gpu.cfg

# The path to the diagnostics output archive used by Zppy to publish to SimBoard.
archive_path=/global/cfs/cdirs/e3sm/www/diagnostics_archive

# The web URL corresponding to the diagnostics output archive.
archive_url="https://portal.nersc.gov/cfs/e3sm/diagnostics_archive

chrysalis.cfg

# The path to the diagnostics output archive used by Zppy to publish to SimBoard.
archive_path = /lcrc/group/e3sm/public_html/diagnostic_output/diagnostics_archive

# The web URL corresponding to the diagnostics output archive.
archive_url = https://web.lcrc.anl.gov/public/e3sm/diagnostic_output/diagnostics_archive

Source: https://github.com/E3SM-Project/simboard/blob/main/backend/app/scripts/ingestion/diagnostics_archives.py

Once you add those then this PR should be good to go, upon @xylar's approval.

@xylar

xylar commented Nov 20, 2026

Copy link
Copy Markdown
Collaborator

@TonyB9000, I just merged #565. That makes much clearer where the new config options should be documented (both for developers adding new machines and for user). Could you please rebase this branch onto the current main to get those updates and then add your documentation? I'd like to re-review after that.

@TonyB9000

Copy link
Copy Markdown
Contributor Author

@tomvothecoder @xylar (I was struggling to understand the commentary until I remembered I must read bottom up, not top down. Just now, I see the "sort comments" button - was that always there?).

I will try to get this stuff done (rebasing and diagnostics config) this morning and (perhaps) Tuesday. I will be OOO this afternoon, Wed afternoon, and the rest of the week.

@xylar

xylar commented Nov 23, 2026

Copy link
Copy Markdown
Collaborator

(I was struggling to understand the commentary until I remembered I must read bottom up, not top down. Just now, I see the "sort comments" button - was that always there?).

I'm not sure what you mean. It's top down.

@xylar

xylar commented Nov 23, 2026

Copy link
Copy Markdown
Collaborator

Hmm, that looks like a rebase that didn't quite work out. It's bringing in unrelated commits.

@TonyB9000

Copy link
Copy Markdown
Contributor Author

@xylar @tomvothecoder rebased, added the diagnostic archive paths for chrysalist and pm-cpu/pm-gpu. and pushed.

@TonyB9000

TonyB9000 commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor Author

The history:

tonyb@perlmutter:login31:~/gitrepo/mache/mache/machines> vi chrysalis.cfg
tonyb@perlmutter:login31:~/gitrepo/mache/mache/machines> vi pm-cpu.cfg
tonyb@perlmutter:login31:~/gitrepo/mache/mache/machines> vi pm-gpu.cfg

tonyb@perlmutter:login31:~/gitrepo/mache/mache/machines> cd ../../
tonyb@perlmutter:login31:~/gitrepo/mache> git status
On branch add_performance_archive_paths_to_machine_configs
Your branch and 'origin/add_performance_archive_paths_to_machine_configs' have diverged,
and have 25 and 1 different commits each, respectively.
  (use "git pull" if you want to integrate the remote branch with yours)

Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
        modified:   mache/machines/chrysalis.cfg
        modified:   mache/machines/pm-cpu.cfg
        modified:   mache/machines/pm-gpu.cfg

no changes added to commit (use "git add" and/or "git commit -a")
tonyb@perlmutter:login31:~/gitrepo/mache> git add mache/machines/chrysalis.cfg mache/machines/pm-cpu.cfg mache/machines/pm-gpu.cfg
tonyb@perlmutter:login31:~/gitrepo/mache> git commit -m "added archive_path and archive_url under diagnostics to pm-cpu, pm-gpu and chrysalis machine configs"
trim trailing whitespace.................................................Passed
fix end of files.........................................................Passed
flynt................................................(no files to check)Skipped
mypy.................................................(no files to check)Skipped
- hook id: mypy
ruff-sort-imports....................................(no files to check)Skipped
ruff check...........................................(no files to check)Skipped
ruff format..........................................(no files to check)Skipped
[add_performance_archive_paths_to_machine_configs 4ddb00f5] added archive_path and archive_url under diagnostics to pm-cpu, pm-gpu and chrysalis machine configs
 Committer: Anthony Bartoletti <tonyb@login31.chn.perlmutter.nersc.gov>
Your name and email address were configured automatically based
on your username and hostname. Please check that they are accurate.
You can suppress this message by setting them explicitly:

    git config --global user.name "Your Name"
    git config --global user.email you@example.com

After doing this, you may fix the identity used for this commit with:

    git commit --amend --reset-author

 3 files changed, 15 insertions(+)

tonyb@perlmutter:login31:~/gitrepo/mache> git push
Username for 'https://github.com': tonyb9000
Password for 'https://tonyb9000@github.com':
To https://github.com/E3SM-Project/mache
 ! [rejected]          add_performance_archive_paths_to_machine_configs -> add_performance_archive_paths_to_machine_configs (non-fast-forward)
error: failed to push some refs to 'https://github.com/E3SM-Project/mache'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. If you want to integrate the remote changes,
hint: use 'git pull' before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
tonyb@perlmutter:login31:~/gitrepo/mache> git pull
hint: You have divergent branches and need to specify how to reconcile them.
hint: You can do so by running one of the following commands sometime before
hint: your next pull:
hint:
hint:   git config pull.rebase false  # merge
hint:   git config pull.rebase true   # rebase
hint:   git config pull.ff only       # fast-forward only
hint:
hint: You can replace "git config" with "git config --global" to set a default
hint: preference for all repositories. You can also pass --rebase, --no-rebase,
hint: or --ff-only on the command line to override the configured default per
hint: invocation.
fatal: Need to specify how to reconcile divergent branches.
tonyb@perlmutter:login31:~/gitrepo/mache> git config pull.rebase true
tonyb@perlmutter:login31:~/gitrepo/mache> git pull
warning: skipped previously applied commit e3af2f7c
hint: use --reapply-cherry-picks to include skipped commits
hint: Disable this message with "git config set advice.skippedCherryPicks false"
Successfully rebased and updated refs/heads/add_performance_archive_paths_to_machine_configs.
tonyb@perlmutter:login31:~/gitrepo/mache> git push
Username for 'https://github.com': tonyb9000
Password for 'https://tonyb9000@github.com':
Enumerating objects: 180, done.
Counting objects: 100% (180/180), done.
Delta compression using up to 256 threads
Compressing objects: 100% (63/63), done.
Writing objects: 100% (140/140), 30.29 KiB | 3.79 MiB/s, done.
Total 140 (delta 117), reused 82 (delta 75), pack-reused 0 (from 0)
remote: Resolving deltas: 100% (117/117), completed with 37 local objects.
To https://github.com/E3SM-Project/mache
   d2ea7d47..b38cdb57  add_performance_archive_paths_to_machine_configs -> add_performance_archive_paths_to_machine_configs

@TonyB9000

TonyB9000 commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor Author

@xylar The (git) username/password combo that worked for the machine/config update FAILS for the documentation update?

tonyb@perlmutter:login31:~/gitrepo/mache/docs/users_guide> git push
Username for 'https://github.com': tonyb9000
Password for 'https://tonyb9000@github.com':
remote: Invalid username or token. Password authentication is not supported for Git operations.
fatal: Authentication failed for 'https://github.com/E3SM-Project/mache/'

@xylar

xylar commented Nov 23, 2026

Copy link
Copy Markdown
Collaborator

@TonyB9000, you need to set up an SSH key on GitHub for Perlmutter. I don't think a username and password works. Please google it.

@TonyB9000

Copy link
Copy Markdown
Contributor Author

I copied the ssh key I have on chrysalis. It worked before on Perlmutter this very morning. Now it fails. I'll see about making another.

@xylar

xylar commented Nov 23, 2026

Copy link
Copy Markdown
Collaborator

I copied the ssh key I have on chrysalis. It worked before on Perlmutter this very morning. Now it fails. I'll see about making another.

Each machine is supposed to have its own unique SSH key. It may be that GitHub flags an SSH key when 2 different machines use it, not sure. In any case, copying them is not a good practice.

@TonyB9000

TonyB9000 commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor Author

I use git tokens - unfamiliar with ssh-keys in relation to github actions.

(I assume I must wait for an approval...)

I could only "request" a token, and could select E3SM-Project/mache but simboard did not appear to select.

@tomvothecoder

Copy link
Copy Markdown
Contributor

Hey @TonyB9000, I sent you friendly reminder email to try using AI/Google for help here. Tool-related support (e.g., conda and git) are hard to help with unless it is an IT-style support on a call. Otherwise back-and-forth is time-consuming for all parties.

@TonyB9000

Copy link
Copy Markdown
Contributor Author

I used copilot (CLI) on perlmutter. Followed its instructions. Perhaps I'll try Google as well.

@TonyB9000

Copy link
Copy Markdown
Contributor Author

@copilot resolve the merge conflicts in this pull request

@xylar

xylar commented Nov 24, 2026

Copy link
Copy Markdown
Collaborator

@TonyB9000, there are still a bunch of commits here that shouldn't be in the PR. I don't want copilot to resolve the conflict, I want the commits that don't belong rebased out.

@TonyB9000

Copy link
Copy Markdown
Contributor Author

@xylar Sorry - I only added the commits for the paths and the consequent documentation. I had assumed any others were yours. How can I remove them?

@xylar

xylar commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

@TonyB9000, please get AI help on how to rebase the branch onto the current origin/main and keep only the commits you yourself made. Please ask it to help resolve any conflicts that arise. Please ask it for help on how to force-push the branch.

These are very important tools of the trade. It would be worth incorporating them into your daily work and becoming familiar and comfortable with them. They are essential to all work on E3SM tools.

Anthony Bartoletti and others added 3 commits November 24, 2026 10:28
@TonyB9000
TonyB9000 force-pushed the add_performance_archive_paths_to_machine_configs branch from 7533314 to 9c2c11b Compare November 24, 2026 18:37
@TonyB9000

Copy link
Copy Markdown
Contributor Author

Never cherry-picked before . . .

Copilot AI commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

@copilot resolve the merge conflicts in this pull request

The current branch already includes main and has no merge conflicts. No further changes were needed; the current head is 9c2c11b.


Posted by GitHub Copilot on @TonyB9000's behalf. The testing, analysis and wording above are AI-authored; please check them accordingly.

@tomvothecoder tomvothecoder 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.

UPDATE: Nevermind I caught some issues in my review above.

@TonyB9000 I think Copilot handled the merge conflict by rebasing rather than doing a merge commit, which sounds like the right thing to do. I checked the commit list and file diffs and they look right. Thanks for the work and sorting through the git issues.

If @xylar approves then should be good to merge.

@tomvothecoder tomvothecoder 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.

I caught some issues actually. Please address.

Comment thread mache/machines/pm-cpu.cfg Resolved
Comment thread mache/machines/pm-cpu.cfg Resolved
Comment thread mache/machines/pm-gpu.cfg Resolved
Comment thread mache/machines/pm-gpu.cfg Resolved
Co-authored-by: Tom Vo <tomvothecoder@gmail.com>

@xylar xylar left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@TonyB9000, looks good.

Thanks @tomvothecoder for the fixes.

@xylar

xylar commented Nov 25, 2026

Copy link
Copy Markdown
Collaborator

@tomvothecoder, I'm going to go ahead and merge once CI passes rather than asking for another review.

@xylar
xylar merged commit f6169c9 into main Nov 25, 2026
9 checks passed
@xylar
xylar deleted the add_performance_archive_paths_to_machine_configs branch November 25, 2026 12:17
@TonyB9000

Copy link
Copy Markdown
Contributor Author

@xylar Glad I was able to contribute - and learned more about git (cherry-picking). Thanks!

@tomvothecoder

Copy link
Copy Markdown
Contributor

Thank you @TonyB9000 and @xylar.

@xylar -- when are you planning a new release with this update? We'd like to start using it with SimBoard whenever you release. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants