Skip to content

fix: include modified mounted files in generated output (closes #56)#62

Merged
aron-muon merged 1 commit into
aron-muon:mainfrom
nosportugal:fix-modified-files-not-in-generated-output
May 7, 2026
Merged

fix: include modified mounted files in generated output (closes #56)#62
aron-muon merged 1 commit into
aron-muon:mainfrom
nosportugal:fix-modified-files-not-in-generated-output

Conversation

@gafda
Copy link
Copy Markdown
Contributor

@gafda gafda commented May 6, 2026

This PR fixes an issue where files uploaded (mounted) by the user and then modified during code execution were not shown in the generated output. Previously, _filter_generated_files always excluded files matching mounted filenames, so even if a file like example.xlsx was changed by the code, it would not appear in the results.

Key changes:

  • Go runner: Adds mod_time (Unix timestamp) to FileInfo struct, populates it in HandleList and HandleUpload responses.
  • Python runner: _detect_generated_files now passes mod_time through to callers.
  • _filter_generated_files now accepts an execution_start_unix parameter and keeps mounted files whose mod_time is greater than or equal to the execution start time.
  • Adds comprehensive unit tests for the new filtering logic.
  • Adds a Go test verifying mod_time is present in file listings.

This ensures that any mounted file modified during execution is correctly included in the output, resolving issue #56.

Copilot AI review requested due to automatic review settings May 6, 2026 16:19
@gafda gafda requested a review from aron-muon as a code owner May 6, 2026 16:19
…muon#56)

Previously, _filter_generated_files unconditionally excluded ALL files
whose names matched uploaded (mounted) files. This meant that if a user
uploaded example.xlsx and the code modified it, the modified file would
not appear in the execution output.

Changes:
- Go runner: add mod_time (Unix timestamp) to FileInfo struct and
  populate it in HandleList and HandleUpload responses
- _detect_generated_files: pass mod_time through to callers
- _filter_generated_files: accept execution_start_unix parameter;
  keep mounted files whose mod_time >= execution start time
- Add comprehensive unit tests for the new filtering behavior
- Add Go test verifying mod_time presence in file listings
@gafda gafda force-pushed the fix-modified-files-not-in-generated-output branch from 9d944ea to dfe3ee8 Compare May 6, 2026 16:35
Copy link
Copy Markdown
Owner

@aron-muon aron-muon left a comment

Choose a reason for hiding this comment

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

Perfect! Thank you very much!

@aron-muon aron-muon merged commit 7a92891 into aron-muon:main May 7, 2026
28 checks passed
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 7, 2026

🎉 This PR is included in version 3.4.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@gafda gafda deleted the fix-modified-files-not-in-generated-output branch May 7, 2026 08:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants