apache / apache/maven-dependency-plugin

[MDEP-959] Possibly Flaky test testUnpackOverWriteIfNewer

Open
#1,466 2 comments 0 reactions 0 assignees View on GitHub
priority:minor
Dominant language
Java
Stars
175
Forks
196
Avg merge
19h 30m
Merged PRs (30d)
5

Description

**[Elliotte Rusty Harold](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=elharo)** opened **[MDEP-959](https://issues.apache.org/jira/browse/MDEP-959?redirect=false)** and commented

Error: TestUnpackMojo.testUnpackOverWriteIfNewer:515 unpackedFile '/Users/runner/work/maven-dependency-plugin/maven-dependency-plugin/target/unit-tests/unpack/outputDirectory/testGroupId-snapshot-2.0-SNAPSHOT-null-jar.txt' lastModified() == 1728921104000: should be different. Actual: 1728921104000

Failed here: https://github.com/apache/maven-dependency-plugin/actions/runs/11330326987/job/31508264337?pr=433

---
No further details from [MDEP-959](https://issues.apache.org/jira/browse/MDEP-959?redirect=false)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with TestUnpackMojo.testUnpackOverWriteIfNewer, around line 515, and reproduce the failure from the linked GitHub Actions run. Investigate why the unpacked file's lastModified() value is unchanged; done means the test is deterministic and passes without masking the overwrite behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system, testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.