functional2: provide a configured config.nix
#849
Labels
No labels
Affects/CppNix
Affects/Nightly
Affects/Only nightly
Affects/Stable
Area/build-packaging
Area/cli
Area/evaluator
Area/fetching
Area/flakes
Area/language
Area/lix ci
Area/nix-eval-jobs
Area/profiles
Area/protocol
Area/releng
Area/remote-builds
Area/repl
Area/repl/debugger
Area/store
bug
Context
contributors
Context
drive-by
Context
maintainers
Context
RFD
crash 💥
Cross Compilation
devx
docs
Downstream Dependents
E/easy
E/hard
E/help wanted
E/reproducible
E/requires rearchitecture
imported
Language/Bash
Language/C++
Language/NixLang
Language/Python
Language/Rust
Needs Langver
OS/Linux
OS/macOS
performance
regression
release-blocker
stability
Status
blocked
Status
invalid
Status
postponed
Status
wontfix
testing
testing/flakey
Topic/Large Scale Installations
ux
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: lix-project/lix#849
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?
Current situation
many of the test from the
functional
test-suite use/import aconfig.nix
file, similar to thelib.nix
file withinfunctional/lang
.Different to the
lib.nix
file, confix.nix is not fully configured by default (being aconfig.nix.in
file within tests) and being configured onjust install
by meson.Resulting Issue
To be able to migrate tests using the
config.nix
file, would need the test template it. As it is required by multiple tests, there should be a way to auto import/use it, without needing to template it (which could lead to inconsistencies if it is done differently somewhere) and to also reduce boilerplate and code duplication.Potential Solutions
testlib/utils.py
, providing the accordingFileish
object to be used in thefiles
fixture parametersReaseach
tmp_path_factory
, astmp_path
is only session scopedfiles
could then pull the file from said folder/fixtureThis issue was mentioned on Gerrit on the following CLs: