Make the daw-dev-tools dependency portable #170
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/architecture
type
bug
type
config
type
deployment
type
docs
type/documentation
type
enhancement
type
feature
type
handover
type
infrastructure
type
installation
type
maintenance
type
migration
type
research
type
security
type/task
type/tech-debt
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
DAW/fragjan#170
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?
Problem
The test setup depends on files from a developer machine (checked on
develop):test/helpers.luais a committed symlink (mode 120000, added in9b42dc4) to the absolute path/home/michael/tools/tool-gitea-workflow/src/helpers.lua.tools/run_tests.shis not in the repo..gitignoreignorestools/and whitelists!tools/run_tests.sh, but the file was never committed.Makefileline 48:test:callstools/run_tests.shdirectly; there is no variable for the tool location.In other environments (cloud session, test server)
make testfails (tools/run_tests.sh: not found), and every test file fails onrequire("helpers").Proposal
helpers.luaandrun_tests.shfrom DAW/daw-dev-tools via a Makefile variable, e.g.DAW_DEV_TOOLS ?= ../daw-dev-tools(overridable inconfig/local.mk).test/helpers.luaand thetools/entries in.gitignore.README.md(sectionmake test).Acceptance criteria
make testruns after cloning fragjan and daw-dev-tools, without path changesAffected files:
test/helpers.lua,tools/run_tests.sh,Makefile,.gitignore,README.mdBranch:
developRefs DAW/fragjan#162
Proposal changed: DAW/daw-dev-tools will be added as a git submodule at
tools/daw-dev-toolsinstead of a sibling directory with aDAW_DEV_TOOLSvariable.make testcallsrun_tests.shfrom the submodule;test/helpers.luapoints into the submodule via a portable path.Summary
.gitignore: removedtools/and the!tools/run_tests.shwhitelist (11e7309).gitmodules: added DAW/daw-dev-tools attools/daw-dev-tools, same SSH URL pattern as the other submodules, pinned to085b283(c45bf7a)test/helpers.lua: now a relative symlink../tools/daw-dev-tools/test/helpers.lua. A relative symlink fits here: git stores it as-is, and it stays inside the repo (53e687a)Makefile:DAW_DEV_TOOLS ?= tools/daw-dev-tools;testruns$(DAW_DEV_TOOLS)/run_tests.shand passesDAW_PROJECT(8bbaf63)README.md:clone --recurse-submodules,git submodule update --init, HTTPS fallback viaurl.insteadOf,make test DAW_LUA_BIN=lua5.1(876e1b5)Tests
Fresh clone of the branch with
--recurse-submodulesover HTTPS, thenmake test:Notes:
lua-env.shdoes not support, soDAW_LUA_BINwas set on the command line.Branch
claude/issue-170(based ondevelop, no PR)Refs DAW/fragjan#170