Skip to content

Conversation

cashend
Copy link
Contributor

@cashend cashend commented Sep 11, 2025

Description

Airfoil markdown documentation. tmp directory linux desktop workaround using an environment variable.

Seen error:

Error: [Errno 28] No space left on device: '/home/mdolabuser/.pyenv/versions/3.9.12/lib/python3.9/site-packages/adflow/libadflow.so' -> '/tmp/tmpzo20nluh/libadflow.so'

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • This change requires a documentation update

Checklist:

  • I have run the pre-commit checks with pre-commit run --all-files
  • I have run ruff check . and ruff format
  • I have run mypy .
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • New and existing unit tests pass locally with my changes

@cashend cashend requested a review from ffelten September 11, 2025 13:17
Copy link
Collaborator

@ffelten ffelten left a comment

Choose a reason for hiding this comment

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

Ruff is not passing 🥲


# if APPTAINER_BIND_TMP, add an additional mount for /tmp to /tmp
if os.environ.get("APPTAINER_BIND_TMP", "false").lower() in ("1", "true", "yes"):
mounts = list(mounts) + [("/tmp", "/tmp")] # noqa: RUF005, S108
Copy link
Collaborator

Choose a reason for hiding this comment

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

@g-braeunlich this makes me think of #155. I am starting to be more confused than sure of what we're doing here. I think we should sit somewhere and discuss/define:

  • The current Apptainer behavior
  • The Docker behavior (and why we have problems even with --compat)
  • The behavior we want

I'm thinking of just laying down all the information we have in a single issue because there are many different things happening on Airfoil.

Copy link
Contributor Author

@cashend cashend Sep 11, 2025

Choose a reason for hiding this comment

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

ruff is passing for all the changes I made - I think it is failing in photonics. Not sure why the main branch is passing or why my local branch is failing. ruff check locally says everything passed.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I gave up on trying to fix my own docker problems too. I think Apptainer is solvable at least since no permissions are required, while docker requires the user to be added to a privileged docker group in order to do anything.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Re-ran tests on main: ruff is failing on main :(

Copy link
Collaborator

@g-braeunlich g-braeunlich Sep 15, 2025

Choose a reason for hiding this comment

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

@cashend This is due to the latest ruff release (0.13). It comes with new lints, in particular with
unused-unpacked-variable (RUF059).
Also see https://astral.sh/blog/ruff-v0.13.0

Copy link
Collaborator

Choose a reason for hiding this comment

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

@ffelten Yes, lets discuss that. On Wednesday, I would be in CLA if that is not too late for you

@g-braeunlich
Copy link
Collaborator

ruff issues fixed in #179

@ffelten
Copy link
Collaborator

ffelten commented Sep 17, 2025

See #180 for the workaround part.

@cashend cashend closed this Sep 21, 2025
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.

3 participants