Account for the instance of submodules.pack.Packer #104184
No reviewers
Labels
No Label
Good First Issue
Priority
High
Priority
Low
Priority
Normal
Status
Archived
Status
Confirmed
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Job Type
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: studio/flamenco#104184
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "Nitin-Rawat-1/flamenco:104183-Error-submitting-job"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fix #104183: Error submitting job to flamenco manager.
The bug happened when a user, using filesystem as storage solution,
would try to submit the job to the flamenco manager. The user would be shown
an Error -> Error packing with BAT: 'Packer' object has no attribute 'actual_checkout_path'.
The fix was to account for multiple implementations of the Packer object.
actual_checkout_path
an Optional attribute 965b99546aThanks for the explanation, that makes reviewing much simpler :)
Just a few small notes. The approach I think is good, the implementation can be improved.
@ -8,7 +8,6 @@ import logging
import queue
import threading
import typing
Please dont' include formatting changes. In general, cleanups of formatting (and other changes that don't alter the functionality) should be in a PR by themselves.
@ -171,3 +168,1 @@
self.packer.actual_checkout_path,
self.packer.missing_files,
)
if isinstance(self.packer, submodules.pack.Packer):
I think the code can be simplified to:
That way the entire
if
can go away, and it's no longer specific to a particularPacker
implementation.getattr
function 0abf83b25bThanks!
This I don't see. For me the job is submitted just fine, with this PR.
Now everything is fine it was an old comment I forgot to update.
Account for the instance of submodules.pack.Packerto WIP: Account for the instance of submodules.pack.PackerThen please edit the description so that it's a proper commit message.
WIP: Account for the instance of submodules.pack.Packerto Account for the instance of submodules.pack.PackerAccount for the instance of submodules.pack.Packerto WIP: Account for the instance of submodules.pack.PackerWIP: Account for the instance of submodules.pack.Packerto Account for the instance of submodules.pack.PackerThanks for the patch!