[Bug] Coverage stack detection omits Swift, Dart, and Scala, falling through to UNKNOWN in evidence setup
Maintainers usually reply within 1 day
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 80/100
Research direction
Open packages/core/src/repowise/core/test_runners/stacks.py and read _LANGUAGE_STACKS (around lines 735-745), _BUILDERS and _manifest_stacks to see how a manifest name becomes a stack, then follow detect_repo_stacks into packages/core/src/repowise/core/evidence/setup.py. Add Swift, Dart and Scala stack definitions using the commands and report paths listed under "Done looks like", wire them into both maps, and check the fallback still returns unknown. Done is tests/unit/test_coverage_stacks.py passing with new cases for a repo containing Package.swift and one containing pubspec.yaml.
Written by the indexing model from the issue text.
Description
Summary
_LANGUAGE_STACKS in packages/core/src/repowise/core/test_runners/stacks.py maps supported languages to test runner stacks (python, go, rust, jvm, dotnet, ruby, php, node).
Even though Swift (Package.swift), Dart (pubspec.yaml), and Scala (build.sbt) have full AST and graph support in REGISTRY, they are absent from _LANGUAGE_STACKS and _BUILDERS. Running repowise evidence setup in repos using these languages falls through to UNKNOWN.
packages/core/src/repowise/core/test_runners/stacks.py:735-745
_LANGUAGE_STACKS = {
"python": "python",
"go": "go",
"rust": "rust",
"java": "jvm",
"kotlin": "jvm",
"csharp": "dotnet",
"ruby": "ruby",
"php": "php",
"javascript": "node",
"typescript": "node",
}
Mechanism
- In
packages/core/src/repowise/core/evidence/setup.py,evidence_setupcallsdetect_repo_stacksto print the command that writes a coverage report. detect_repo_stackslooks up the manifest filename in_manifest_stacks(name).- Because
"swift","dart", and"scala"are missing from_LANGUAGE_STACKS:Package.swiftis ignored.pubspec.yamlis ignored.build.sbtis ignored.
- The repository is classified as
UNKNOWN, producing"Repowise could not tell how this repository runs its tests.".
Repro
Run repowise evidence setup or detect_repo_stacks on a Swift repository containing a Package.swift and tests:
from pathlib import Path
from repowise.core.test_runners.stacks import detect_repo_stacks
stacks = detect_repo_stacks(Path("/path/to/swift/repo"))
print([s.name for s in stacks])
Output:
['unknown']
Expected: A recognized stack with swift test --enable-code-coverage.
Impact
Users and AI agents running repowise evidence setup on Swift, Dart, or Scala projects receive no automated coverage command plan despite Repowise supporting these languages.
Done looks like
- Add stack definitions for Swift (
swift test --enable-code-coverage,.build/debug/codecov/*.json), Dart (dart test --coverage=coverage,coverage/lcov.info), and Scala (sbt coverage test coverageReport,target/scala-*/scoverage-report/scoverage.xml). - Map them in
_LANGUAGE_STACKSand_BUILDERS. - Retain
UNKNOWNfallback for truly unrecognized ecosystems.
Tests
In tests/unit/test_coverage_stacks.py:
- Test that a repository with
Package.swiftyields theswifttest stack. - Test that a repository with
pubspec.yamlyields thedarttest stack.
- Dominant language
- Python
- Stars
- 7.1k
- Forks
- 756
- Avg merge
- 21h 5m
- Merged PRs (30d)
- 797
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from repowise-dev/repowise
-
[Bug] Elixir `.formatter.exs`, `.credo.exs`, `config/*.exs` and `priv/**/*.exs` are reported as unreachable filesPossibly taken @ZYZ666-RGB claimed this 1 day ago. Openbug good first issue
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
repowise-dev/repowise#6296 · 1 comment ·
Maintainers usually reply within 1 day
-
[Bug] PR-mined decisions store the decision sentence again as their rationalePossibly taken @suyashgitt claimed this 11 days ago. Openbug good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
repowise-dev/repowise#5702 · 2 comments ·
Maintainers usually reply within 1 day
-
[Bug] CICS CSD `DEFINE _PGMLIST` startup programs (`_PGMPH`) are not rootsPossibly taken @dchaudhari7177 claimed this 34 days ago. Openbug good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
repowise-dev/repowise#4477 ·
Maintainers usually reply within 1 day
-
[Bug] COBOL listing directives EJECT, SKIP1/SKIP2/SKIP3 and TITLE fail to parse and drop the rest of the filePossibly taken @dchaudhari7177 claimed this 34 days ago. Openbug good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 91/100
repowise-dev/repowise#4474 ·
Maintainers usually reply within 1 day
-
`repowise uninstall` prints a configured database URL with a backslash on WindowsMay be free again A pull request for this issue was closed without being merged. Openbug good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
repowise-dev/repowise#4347 · 2 comments ·
Maintainers usually reply within 1 day
All issues in repowise-dev/repowise
Similar issues
-
triage
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
kornia/kornia-rs#1416 · 1 comment ·
Maintainers usually reply within 2 days
-
ui
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
PolicyEngine/ai-inequality#64 ·
Maintainers usually reply within 1 day
-
LinearGaussianStateSpace.dist splits states and observations wrongly when the transition varies over timePossibly taken @PabloRoque claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
pymc-devs/pymc-extras#839 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day