Skip to content

Misc documentation and build fixes - #249

Merged
embray merged 5 commits into
asdf-format:mainfrom
embray:misc-fixes
Sep 3, 2026
Merged

Misc documentation and build fixes#249
embray merged 5 commits into
asdf-format:mainfrom
embray:misc-fixes

Conversation

@embray

@embray embray commented Sep 3, 2026

Copy link
Copy Markdown
Collaborator

Description

A few minor fixes to apply before 0.1.0 final. Some things that resulted from working on the libasdf-gwcs documentation, and some nitpicks I found while experimenting with the homebrew formula.

AI Disclosure

No AI tools used.

Borrowed from libasdf-gwcs where I added this while working on its docs.
In the libasdf-gwcs docs I also copied libasdf's development.rst and
made some improvements to it--those improvements, such that are
applicable also in libasdf, I tried to sync back up here.
I had forgotten the third argument to AC_ARG_ENABLE/WITH is *not*
the "enabled" case, it's whether an --enable-foo or --disable-foo was
given at all as opposed to absent (the 4th argument). This often trips
me up.
The destructor that cleaned up the test directory at the end of a test
executable was *too* destructive and could lead to race conditions where
the test directory gets deleted between test programs like:

A: get_run_dir() (creates run dir)
B: get_run_dir() (reuses existing run dir)
A: finishes (deletes run dir)
B: tries to write file to run_dir (gets ENOENT)

Better to just not delete them, even if they happen to be empty.  The
`latest` symlink will still point to the most recent.

This makes a few additional attempts as well to more carefully avoid
race conditions (e.g. a partially written or empty coordination file).

It also adds a `run-dir` helper program that can be used in the shell
tests so that they also write cleanly into per-test-run directories.
@embray
embray marked this pull request as ready for review September 3, 2026 13:15
@embray
embray merged commit 4f30131 into asdf-format:main Sep 3, 2026
12 checks passed
@embray
embray deleted the misc-fixes branch September 3, 2026 14:09
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