Skip to content

Dockerfile omits harness-clients, so the image (and the GitHub Action) fail to build on master #2

Closed

Description

@melvincarvalho

What happens

Consuming the action as documented in docs/distribution.md:

- uses: ebremer/touchstone/.github/actions/lws-conformance@master
  with:
    target-url: http://127.0.0.1:3000/

fails in the "Build the Touchstone image" step before the harness runs:

[ERROR] Child module /src/harness-clients of /src/pom.xml does not exist @
[ERROR] The project com.ebremer.touchstone:touchstone:0.1.0-SNAPSHOT (/src/pom.xml) has 1 error
ERROR: process "/bin/sh -c ./mvnw -q -B -ntp -pl harness-cli -am -Dmaven.test.skip=true package" did not complete successfully: exit code: 1

Full log: https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/actions/runs/38604031054

Cause

pom.xml has listed <module>harness-clients</module> since 7b13c27 (5 Oct, phase C1), but the Dockerfile still only copies the four earlier module poms:

COPY harness-core/pom.xml harness-core/
COPY harness-fixtures/pom.xml harness-fixtures/
COPY harness-cli/pom.xml harness-cli/
COPY harness-mcp/pom.xml harness-mcp/

Maven resolves every module in the reactor even with -pl harness-cli -am, so the missing directory is fatal.

Fix

One line after the existing pom copies:

COPY harness-clients/pom.xml harness-clients/

(harness-clients isn't needed in the -am graph of harness-cli, so only its pom is required, same as harness-fixtures and harness-mcp.)

Workaround

Pinning to the parent commit works: lws-conformance@5c49679385de2ec087787a46e533cb741c018274. That's what JavaScriptSolidServer is doing for now (JavaScriptSolidServer/JavaScriptSolidServer#626). A tagged release would make pinning less fragile for downstream consumers.

Context: we're setting Touchstone up as the conformance scoreboard for LWS work in JSS — JavaScriptSolidServer/JavaScriptSolidServer#621.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions