kbuntrock commented on PR #104:
URL: 
https://github.com/apache/maven-build-cache-extension/pull/104#issuecomment-2074391072

   > > some "weird" pom files
   > 
   > oh, this is Maven 4 consumer POMs, that seem to have been generated with 
random file names
   > 
   > @gnodet do we really want these random file names? Do we need to create a 
hack in build cache extension to manage this randomness?
   
   To add a bit of context, I did some experiment yesterday evening. Here are 
some extract of the file `buildinfo.xml` after the execution of the goal 
package in different contexts: 
   
   ### Test "IncrementalRestoreTest", on this branch:
   
   ```xml
   <goals>
     <goal>package</goal>
   </goals>
   <artifact>
     <groupId>org.apache.maven.caching.test</groupId>
     <artifactId>mbuildcache-incremental</artifactId>
     <version>0.0.1-SNAPSHOT</version>
     <type>jar</type>
     <fileName>mbuildcache-incremental.jar</fileName>
     <fileHash>887c667918b9b71d</fileHash>
     <fileSize>3119</fileSize>
     <filePath>target/mbuildcache-incremental-final.jar</filePath>
   </artifact>
   <attachedArtifacts>
     <attachedArtifact>
       <groupId>org.apache.maven.caching.test</groupId>
       <artifactId>mbuildcache-incremental</artifactId>
       <version>0.0.1-SNAPSHOT</version>
       <classifier>consumer</classifier>
       <type>pom</type>
       <fileName>mbuildcache-incremental-consumer.pom</fileName>
       <fileHash>bf52cc397806673a</fileHash>
       <fileSize>430</fileSize>
       <filePath>target/consumer-4676390733155918308.pom</filePath>
     </attachedArtifact>
   </attachedArtifacts>
   ```
   
   ### Test "IncrementalRestoreTest", on the branch master:
   
   ```xml
   <goals>
     <goal>package</goal>
   </goals>
   <artifact>
     <groupId>org.apache.maven.caching.test</groupId>
     <artifactId>mbuildcache-incremental</artifactId>
     <version>0.0.1-SNAPSHOT</version>
     <type>jar</type>
     <fileName>mbuildcache-incremental.jar</fileName>
     <fileHash>41e8d89e0385f771</fileHash>
     <fileSize>3119</fileSize>
   </artifact>
   <attachedArtifacts>
     <attachedArtifact>
       <groupId>org.apache.maven.caching.test</groupId>
       <artifactId>mbuildcache-incremental</artifactId>
       <version>0.0.1-SNAPSHOT</version>
       <classifier>consumer</classifier>
       <type>pom</type>
       <fileName>mbuildcache-incremental-consumer.pom</fileName>
       <fileHash>bf52cc397806673a</fileHash>
       <fileSize>430</fileSize>
     </attachedArtifact>
   </attachedArtifacts>
   ```
   
   
   ### On a standalone project based on "IncrementalRestoreTest", with the 
extension code of this branch:
   
   ```xml
   <goals>
     <goal>package</goal>
   </goals>
   <artifact>
     <groupId>org.apache.maven.caching.test</groupId>
     <artifactId>mbuildcache-incremental</artifactId>
     <version>0.0.1-SNAPSHOT</version>
     <type>jar</type>
     <fileName>mbuildcache-incremental.jar</fileName>
     <fileHash>8d6a9a9795c1f249</fileHash>
     <fileSize>3122</fileSize>
     <filePath>target/mbuildcache-incremental-final.jar</filePath>
   </artifact>
   ```
   
   Meaning that:
   - It might be linked to the IT execution context
   - It is not related to this PR, so I will focus on updating the current 
tests and put this problem aside.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@maven.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to