Skip to content

Comments

fix(backup): return error if there is no backup path set#7146

Merged
jrainville merged 1 commit intorelease/10.31.xfrom
fix/dont-backup-if-no-path
Nov 26, 2025
Merged

fix(backup): return error if there is no backup path set#7146
jrainville merged 1 commit intorelease/10.31.xfrom
fix/dont-backup-if-no-path

Conversation

@jrainville
Copy link
Member

@jrainville jrainville commented Nov 25, 2025

Needed for status-im/status-app#19377

For Android, we are setting the default path to empty string so that the user can know that they need to modify it. Otherwise, the default path was the datadir and users cannot access it.

What this meant is that once the auto-backup was happening, the status-go code worked, but then it failed because of the missing user permission.

Also, less code 👍

@status-im-auto
Copy link
Member

status-im-auto commented Nov 25, 2025

Jenkins Builds

Click to see older builds (6)
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 848344f #1 2025-11-25 20:24:14 ~3 min linux/status-go 📦zip
✔️ 848344f #1 2025-11-25 20:24:31 ~4 min macos/status-go 📦zip
✔️ 848344f #1 2025-11-25 20:26:10 ~5 min windows/status-go 📦zip
✔️ 848344f #1 2025-11-25 20:31:26 ~11 min linux/nwaku 📦zip
✔️ 848344f #1 2025-11-25 20:33:18 ~12 min tests-rpc 📄log
✔️ 848344f #1 2025-11-25 20:47:44 ~27 min tests 📄log
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 931cfe3 #2 2025-11-26 16:49:57 ~3 min linux/status-go 📦zip
✔️ 931cfe3 #2 2025-11-26 16:52:42 ~6 min windows/status-go 📦zip
✔️ 931cfe3 #2 2025-11-26 16:58:32 ~12 min linux/nwaku 📦zip
✖️ 931cfe3 #2 2025-11-26 17:04:38 ~18 min tests-rpc 📄log
✔️ 931cfe3 #2 2025-11-26 17:06:41 ~20 min macos/status-go 📦zip
✔️ 931cfe3 #2 2025-11-26 17:19:27 ~33 min tests 📄log
✔️ b68ebd0 #3 2025-11-26 17:42:06 ~6 min macos/status-go 📦zip
✔️ b68ebd0 #3 2025-11-26 17:42:06 ~6 min windows/status-go 📦zip
✔️ b68ebd0 #3 2025-11-26 18:00:07 ~24 min linux/status-go 📦zip
✔️ b68ebd0 #3 2025-11-26 18:07:36 ~32 min linux/nwaku 📦zip
✔️ b68ebd0 #3 2025-11-26 18:11:26 ~35 min tests-rpc 📄log
✔️ b68ebd0 #3 2025-11-26 18:26:29 ~50 min tests 📄log

@codecov
Copy link

codecov bot commented Nov 25, 2025

Codecov Report

❌ Patch coverage is 0% with 3 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (release/10.31.x@b068462). Learn more about missing BASE report.

Files with missing lines Patch % Lines
node/get_status_node.go 0.00% 3 Missing ⚠️

❌ Your patch status has failed because the patch coverage (0.00%) is below the target coverage (50.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files
@@                Coverage Diff                 @@
##             release/10.31.x    #7146   +/-   ##
==================================================
  Coverage                   ?   59.77%           
==================================================
  Files                      ?      804           
  Lines                      ?   113896           
  Branches                   ?        0           
==================================================
  Hits                       ?    68081           
  Misses                     ?    38854           
  Partials                   ?     6961           
Flag Coverage Δ
functional 34.95% <0.00%> (?)
unit 55.40% <0.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
node/get_status_node.go 68.24% <0.00%> (ø)

@jrainville jrainville force-pushed the fix/dont-backup-if-no-path branch from 848344f to 931cfe3 Compare November 26, 2025 16:45
Needed for status-im/status-app#19377

For Android, we are setting the default path to empty string so that the user can know that they need to modify it. Otherwise, the default path was the datadir and users cannot access it.

What this meant is that once the auto-backup was happening, the status-go code worked, but then it failed because of the missing user permission.

To fix it, we just throw an error on empty paths in status-go. That way the backup just doesn't happen until the user selects a path.
@jrainville jrainville force-pushed the fix/dont-backup-if-no-path branch from 931cfe3 to b68ebd0 Compare November 26, 2025 17:35
@jrainville jrainville merged commit 074b5d7 into release/10.31.x Nov 26, 2025
17 of 18 checks passed
@jrainville jrainville deleted the fix/dont-backup-if-no-path branch November 26, 2025 19:54
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.

4 participants