apache / apache/maven-build-cache-extension

[MBUILDCACHE-103] Allow incremental restore in case of plugin parameter mismatch

Open
#290 2 comments 0 reactions 0 assignees View on GitHub
enhancement priority:major
Dominant language
Java
Stars
163
Forks
77
Avg merge
1d 2h
Merged PRs (30d)
4

Description

**[Réda Housni Alaoui](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=ralaoui)** opened **[MBUILDCACHE-103](https://issues.apache.org/jira/browse/MBUILDCACHE-103?redirect=false)** and commented

Property `groups` of `maven-surefire-plugin` allows to run a subset of tests matching the property value. E.g. `groups=foo` will only execute tests tagged with 'foo'.

If I run a build with `groups=foo`, and if a cache entry exists for `groups=null` (i.e. no test filter), I want the cache entry to be reused as much as possible and the `maven-surefire-plugin` to be run on top of that.

I think I need to specify that every non null value for groups should be considered as a skip value.
Following this, what I need is the ability to declare a reconcile entry in xml config file looking like this:

```xml











```

Could we introduce this `skipValueRegex` that would allow to match multiple skip values and fix my issue?

---

**Remote Links:**
- [GitHub Pull Request #177
](https://github.com/apache/maven-build-cache-extension/pull/177)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reviewing the issue's proposed XML configuration and GitHub pull request #177, then trace how reconcile entries and maven-surefire-plugin parameters are processed. Done means a non-null groups value can reuse the groups=null cache entry while still running the requested Surefire tests, with coverage for the skipValueRegex behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.