Skip to content

ci: package-webapp and integration-tests compilation are failing when adding new classes #1594

Open
@lbroudoux

Description

@lbroudoux

Describe the bug

See https://github.com/microcks/microcks/actions/runs/14791356227

Even if the first compilation done in the build-install step is OK, the other ones done in subsequent steps are failing because of a missing new class.

Expected behavior

If my understanding of the Maven caching is correct, this should work!

Actual behavior

build-install compilation is done with mvn -B clean install so webapp is able to access new classes compiled in util and pushed in Maven local repo. Then, the Maven local repo is cached using maven-repo-${{ github.run_id }}.

We see in the post compilation step logs:

Cache hit for: maven-repo-14791356227
Received 176160768 of 425392991 (41.4%), 167.8 MBs/sec
Received 297795584 of 425392991 (70.0%), 141.9 MBs/sec
Received 425392991 of 425392991 (100.0%), 142.1 MBs/sec
Cache Size: ~406 MB (425392991 B)
/usr/bin/tar -xf /home/runner/work/_temp/b7d97389-e032-463d-b769-fd551f0999d0/cache.tzst -P -C /home/runner/work/microcks/microcks --use-compress-program unzstd
Cache restored successfully
Cache restored from key: maven-repo-147564147

------------------------

Post job cleanup.
/usr/bin/tar --posix -cf cache.tzst --exclude cache.tzst -P -C /home/runner/work/microcks/microcks --files-from manifest.txt --use-compress-program zstdmt
Sent [2](https://github.com/microcks/microcks/actions/runs/14791356227/job/41529021782#step:8:2)2734334 of 425387518 (5.3%), 21.7 MBs/sec
Sent 224060926 of 425387518 (52.7%), 106.8 MBs/sec
Sent 425387518 of 425387518 (100.0%), 160.3 MBs/sec
Cache saved with key: maven-repo-14791356227

When package-webapp starts the Maven cache is restored using maven-repo-${{ github.run_id }} and then the compilation is launched using mvn -B -Pprod -DskipTests package. package should be enough at that level because project dependencies should be pulled from the restore local repo...

We see in the pre compilation step logs:

Cache hit for: maven-repo-14791356227
Received 0 of 425387518 (0.0%), 0.0 MBs/sec
Received 12[16](https://github.com/microcks/microcks/actions/runs/14791356227/job/41529104295#step:4:17)34816 of 425387518 (28.6%), 58.0 MBs/sec
Received 243269632 of 425387518 (57.2%), 77.3 MBs/sec
Received 348127232 of 4253875[18](https://github.com/microcks/microcks/actions/runs/14791356227/job/41529104295#step:4:19) (81.8%), 82.9 MBs/sec
Received 425387518 of 425387518 (100.0%), 84.7 MBs/sec
Cache Size: ~406 MB (425387518 B)

So we see that the cache keys are the same and restoration is ok. This cache must contained the util compiled snapshot...

How to Reproduce?

No response

Microcks version or git rev

No response

Install method (docker-compose, helm chart, operator, docker-desktop extension,...)

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions