Skip to content

Conversation

@mmartinv
Copy link
Collaborator

No description provided.

@mmartinv mmartinv changed the title ci: compatibility fixes ci: compatibility and formatting fixes Oct 17, 2025
@mmartinv mmartinv requested a review from kgiusti October 17, 2025 14:04
Copy link
Collaborator

@kgiusti kgiusti left a comment

Choose a reason for hiding this comment

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

Nice cleanups, but I think you may have found a problem with the way fsim renames the file to the destination (see test logs). Funny how this doesn't happen on the client-side which IIUC is also renaming files to do the move.

Use `./test/workdir` as the default `base_dir` instead
of `/tmp/go-fdo` as the directory where the test files
will be created.

Configure the container's working dir through the `working_dir`
variable (default: `/workdir`)

Signed-off-by: Miguel Martín <[email protected]>
Create the temp files in the upload destination folder instead
of `/tmp` to avoid "invalid cross-device link" errors.

Signed-off-by: Miguel Martín <[email protected]>
@mmartinv
Copy link
Collaborator Author

mmartinv commented Oct 21, 2025

Funny how this doesn't happen on the client-side which IIUC is also renaming files to do the move.

That was fixed on client side by creating the temporary file in the final destination dir: fido-device-onboard/go-fdo-client@9ac6738

Pretty much the same I am proposing on this PR for the server side :)

@mmartinv mmartinv requested review from kgiusti and runcom October 21, 2025 14:16
uninstall_server
uninstall_client
rm -rf "${base_dir}"
rm -rf "${base_dir:?}"/*
Copy link
Collaborator

Choose a reason for hiding this comment

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

Oh, yes this is indeed a good change 🥇

Copy link
Collaborator

@kgiusti kgiusti left a comment

Choose a reason for hiding this comment

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

LGTM: local testing successful, shipit.

Copy link
Member

@runcom runcom left a comment

Choose a reason for hiding this comment

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

LGTM

@runcom runcom merged commit 3996796 into fido-device-onboard:main Oct 23, 2025
26 checks passed
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