apache / apache/lucene

Add a mockfs that hides the real absolute path of test temporary directories. [LUCENE-6443]

Open
#7,502 0 comments 0 reactions 0 assignees View on GitHub
legacy-jira-priority:Major type:task
Dominant language
Java
Stars
3.6k
Forks
1.4k
Avg merge
2d 11h
Merged PRs (30d)
88

Description

Any test that does processing based on full path names won't reproduce well, because checkout locations differ according to developer or jenkins machines, or even because the test gets assigned to a different slave JVM, etc, etc.

Instead we could add a mockfs that presents all files in the temp dir as having absolute paths of something predictable to improve reproducibility.

---
Migrated from [LUCENE-6443](https://issues.apache.org/jira/browse/LUCENE-6443) by Robert Muir (@rmuir)

Contributor guide

Open the contributing guide

Research direction

No files, tests, or entry points are named. Start by defining the mockfs scope and how test temporary-directory paths should be presented; done would mean files in the temporary directory expose predictable absolute paths so path-based processing is reproducible.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
testing-qa
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.