Skip to content

Conversation

@lalmeras
Copy link
Contributor

@lalmeras lalmeras commented Dec 2, 2023

(this is a follow-up to #77)

Current incremental build does not honor isUptodate(), so changed or removed target resources are not refreshed until sources are modified or a full build is performed.

2 new testcases exhibits this issue (one for missing target resource, one for modified target resource). As stub BuildContext provides appropriate isUptodate results, build should refresh this resources.

Current implementation prevents BuildContext implementors to trigger appropriate resource refresh by tweaking isUptodate implementation.

See javadoc in BuildContext#newScanner javadoc that advices that incremental build may be performed with a full resource scanning and a isUptodate call to refresh only needed resources.

Following this checklist to help us incorporate your
contribution quickly and easily:

  • Make sure there is a JIRA issue filed
    for the change (usually before you start working on it). Trivial changes like typos do not
    require a JIRA issue. Your pull request should address just this issue, without
    pulling in other changes.
  • Each commit in the pull request should have a meaningful subject line and body.
  • Format the pull request title like [MSHARED-XXX] - Fixes bug in ApproximateQuantiles,
    where you replace MSHARED-XXX with the appropriate JIRA issue. Best practice
    is to use the JIRA issue title in the pull request title and in the first line of the
    commit message.
  • Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
  • Run mvn clean verify -Prun-its to make sure basic checks pass. A more thorough check will
    be performed on your pull request automatically.

If your pull request is about ~20 lines of code you don't need to sign an
Individual Contributor License Agreement if you are unsure
please ask on the developers list.

To make clear that you license your contribution under
the Apache License Version 2.0, January 2004
you have to acknowledge this by using the following check-box.

Current incremental build does not honor isUptodate(), so changed or
removed target resources are not refreshed until sources are modified or
a full build is performed.

2 new testcases exhibits this issue (one for missing target resource,
one for modified target resource). As stub BuildContext provides
appropriate isUptodate results, build should refresh this resources.

Current implementation prevents BuildContext implementors to trigger
appropriate resource refresh by tweaking isUptodate implementation.

See javadoc in BuildContext#newScanner javadoc that advices that
incremental build may be performed with a full resource scanning and a
isUptodate call to refresh only needed resources.
@lalmeras
Copy link
Contributor Author

lalmeras commented Dec 2, 2023

PR only contains test to exhibit the issue. You can check with CI build that the two added test fail.

Once the issue demonstrated, proposal from @laeubi in #77 can be applied as a fix.

Thanks to @laeubi for diagnostic and explanations.

@laeubi
Copy link
Contributor

laeubi commented Dec 2, 2023

@lalmeras thanks for the PR on working on test-case and @slawekjaranowski for aproving the workflow run, so this verifies that the described test-case fail with the current implementation, I'll create a follow-up PR!

@laeubi
Copy link
Contributor

laeubi commented Dec 6, 2023

I have now rebased my PR on top of your commit:

@jira-importer
Copy link

Resolve #270

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants