-
Notifications
You must be signed in to change notification settings - Fork 11
DOESN'T WORK -- Log file created by default for uploads and downloads #737
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
DOESN'T WORK -- Log file created by default for uploads and downloads #737
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## dev #737 +/- ##
==========================================
- Coverage 47.88% 47.53% -0.36%
==========================================
Files 31 31
Lines 2890 2920 +30
==========================================
+ Hits 1384 1388 +4
- Misses 1506 1532 +26 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Note: I did try to use a custom Click class which would handle the |
Re: Tests. |
Quick review but in the client container it's giving me this error: FileNotFoundError: [Errno 2] No such file or directory: '/root/dds-cli_logs/dds_data_put_s_tests/_p_project_1_20250306-174108.log' |
I know what it is, if you specify a folder to upload files, it is translated as a subdirectory, such as
The / in tests/ will get converted
|
@valyo To review as well If something to change -- you guys fix it When ok --> merge and make release. Remember to inform the units about the change. |
Team decided to wait for Ina to come back in order to implement the log file being saved in the staging directory's |
Read this before submitting the PR
If there is a field which you are unsure about, enter the edit mode of this description or go to the PR template; There are invisible comments providing descriptions which may be of help.
1. Description / Summary
People rarely use the
--log-file
option. Previously the default was that there was always a log file generated, but we were logging a lot, which resulted in the users (mainly the units) generating a huge amount of logs which were quite big. However, we have now reduced the logging.Every time there's a support ticket, we usually end up having to ask the user to run the command again, which takes both time and energy for us, but also of course means that we cannot immediately investigate what the issue is and often have to wait for the user to try again.
This PR adds a flag
--force-no-log
which the user can use if they really do not want to generate a log file. If this flag is not used, the dds by default saves all logs to a file with the format:<command>_<current time>.log
. The user can also use the--log-file
option to specify their own path to the log file, as usual.This PR also creates a directory in
home
calleddds-cli_logs
where the automatic default logs will be stored. I could technically have used the generated DDS directory which is always created when uploads and downloads are started but this meant more code changes in more files, and made everything less maintainable.2. Jira task / GitHub issue
Is this a GitHub issue? --> Add the link to the github issue
Is this from a Jira task? --> If your branch does not contain info regarding the Jira task ID, put it here.
3. Type of change - Add label
What type of change(s) does the PR contain? For an explanation of the different options below, enter edit mode of this PR description template.
If you do not want this change to be included in release notes, add the label
skip-changelog
.breaking
feature
feature
or none at all.Remember the to include a new migration version, or explain here why it's not needed.
bug
dependency
skip-changelog
skip-changelog
4. Additional information
master
branch: If checked, read the release instructions5. Actions / Scans
Make sure that the following checks/actions have passed.
If an action does not pass and you need help with how to solve it, enter edit mode of this PR template or go to the PR template.