sig: remove hardcoded tmp path, replace os.execute with dawio #12
Labels
No labels
coordination/cross-repo
coordination/needed
effort
large
effort
medium
effort
small
meta/duplicate
meta/planning
meta/wontfix
priority
high
priority
low
priority
medium
session
blocker
session
handover
session
next
status
blocked
status
done
status
in-progress
status
review
status
to-go
type
admin
type
bug
type
config
type
deployment
type
docs
type
enhancement
type
feature
type
handover
type
infrastructure
type
installation
type
maintenance
type
migration
type
research
type
security
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
DAW/daw-module-manager#12
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Findings
1. Hardcoded temp path
local TMPDIR = ".temp/sig-verify"violates the no-hardcoded-tmp-prefixrule (DAW/fragjan#73). The temp directory must come in as a parameter,
e.g. via opts.temp_dir.
2. Direct os.execute calls and local wrapper
A local
execute()wrapper aroundos.executeis defined and usedfour times. This bypasses
daw.common.sysentirely.The wrapper must be removed and replaced with
out:run_rc().3. No dawio / daw.common.sys used at all
daw.common.sysis not required anywhere in this file.All I/O and shell execution must go through
sys.new().Without it, handle injection and testability are not possible.
Acceptance Criteria
TMPDIRremoved, temp path passed via opts.temp_direxecute()wrapper removedos.executecalls replaced without:run_rc()daw.common.sysrequired and used consistently