Skip to content

Conversation

@opajonk
Copy link
Contributor

@opajonk opajonk commented Jul 22, 2025

  • added devcontainer.json
  • bumped Bazel version from 7.4.0 to 7.5.0 (the one present in the container)
  • added a small README note

- added devcontainer.json
- bumped Bazel version from 7.4.0 to 7.5.0 (the one present in the container)
- added a small README note
@github-actions
Copy link

github-actions bot commented Jul 22, 2025

License Check Results

🚀 The license check job ran with the Bazel command:

bazel run //src:license-check

Status: ✅ Passed

Click to expand output
[License Check Output]
Extracting Bazel installation...
Starting local Bazel server and connecting to it...
INFO: Invocation ID: d2258e29-4204-411a-8ac4-95363bf42840
Computing main repo mapping: 
Computing main repo mapping: 
Computing main repo mapping: 
Computing main repo mapping: 
Computing main repo mapping: 
Loading: 
Loading: 0 packages loaded
Loading: 0 packages loaded
    currently loading: src
Loading: 0 packages loaded
    currently loading: src
Analyzing: target //src:license-check (1 packages loaded, 0 targets configured)
Analyzing: target //src:license-check (1 packages loaded, 0 targets configured)

Analyzing: target //src:license-check (96 packages loaded, 10 targets configured)

Analyzing: target //src:license-check (104 packages loaded, 10 targets configured)

Analyzing: target //src:license-check (148 packages loaded, 1988 targets configured)

Analyzing: target //src:license-check (153 packages loaded, 2652 targets configured)

Analyzing: target //src:license-check (158 packages loaded, 2687 targets configured)

INFO: Analyzed target //src:license-check (163 packages loaded, 4946 targets configured).
[1 / 1] no actions running
[11 / 13] [Prepa] JavaToolchainCompileBootClasspath external/rules_java~/toolchains/platformclasspath.jar
[12 / 13] [Prepa] Building src/license.check.license_check.jar ()
INFO: Found 1 target...
Target //src:license.check.license_check up-to-date:
  bazel-bin/src/license.check.license_check
  bazel-bin/src/license.check.license_check.jar
INFO: Elapsed time: 20.262s, Critical Path: 2.50s
INFO: 13 processes: 1 disk cache hit, 9 internal, 2 processwrapper-sandbox, 1 worker.
INFO: Build completed successfully, 13 total actions
INFO: Running command line: bazel-bin/src/license.check.license_check src/formatted.txt -review -project automotive.score -repo https://github.com/eclipse-score/docs-as-code -token otyhZ4eaRYK1tKLNNF-Y
[main] INFO Querying Eclipse Foundation for license data for 83 items.
[main] INFO Found 58 items.
[main] INFO Querying ClearlyDefined for license data for 25 items.
[main] INFO Found 25 items.
[main] INFO Vetted license information was found for all content. No further investigation is required.

@github-actions
Copy link

The created documentation from the pull request is available at: docu-html

@opajonk opajonk requested a review from AlexanderLanin July 22, 2025 12:32
@AlexanderLanin
Copy link
Member

When I Create a Codespace it fails with:

Running the postCreateCommand from Feature 'ghcr.io/devcontainers/features/git-lfs'...

/usr/local/share/pull-git-lfs-artifacts.sh
Fetching git lfs artifacts...
Hook already exists: post-commit

        #!/bin/bash

        # This is a custom git hook installed for codespaces when you'll be unable to push your changes to the source repository.
        # Instead, we'll fork the repo on your behalf, ensure you have appropriate permissions, and transfer the codespace to that fork.

        trap "mv $0 $0.codespaces-disabled" EXIT

        echo "You don't have write access to the $GITHUB_REPOSITORY repository, so you cannot push changes to it."
        echo "To obtain write access we will point this codespace at your fork of $GITHUB_REPOSITORY, creating that fork if it doesn't exist."
        echo

        if [ -t 1 ]; then
        read -p "Would you like to proceed? " -n 1 -r < /dev/tty
        echo
        if [[ ! $REPLY =~ ^[Yy]$ ]]
        then
        exit 0
        fi
        fi

        URL="********/vscs_internal/user/$GITHUB_USER/codespaces/$CODESPACE_NAME/fork_repo"


        current_branch=$(git rev-parse --abbrev-ref HEAD)

        response=$(curl -s -w "%{http_code}" -X POST -H "Authorization: token $GITHUB_TOKEN" -d "{\"branch\":\"$current_branch\"}" $URL)

        # Grab the last line which is the status code
        http_cod

To resolve this, either:
  1: run `git lfs update --manual` for instructions on how to merge hooks.
  2: run `git lfs update --force` to overwrite your hook.
[633 ms] postCreateCommand from Feature 'ghcr.io/devcontainers/features/git-lfs' failed with exit code 2. Skipping any further user-provided commands.

Error: Command failed: /bin/sh -c /usr/local/share/pull-git-lfs-artifacts.sh
    at E (/.codespaces/agent/bin/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:235:157)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Promise.allSettled (index 0)
    at async b9 (/.codespaces/agent/bin/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:237:119)
    at async MD (/.codespaces/agent/bin/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:226:4668)
    at async SD (/.codespaces/agent/bin/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:226:4013)
    at async kD (/.codespaces/agent/bin/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:226:3217)
    at async Zg (/.codespaces/agent/bin/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:226:2623)
    at async w6 (/.codespaces/agent/bin/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:467:1526)
    at async Ix (/.codespaces/agent/bin/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:467:960)
{"outcome":"error","message":"Command failed: /bin/sh -c /usr/local/share/pull-git-lfs-artifacts.sh","description":"postCreateCommand from Feature 'ghcr.io/devcontainers/features/git-lfs' failed.","containerId":"af815fc87801dc8e46c9dd4248dab9b5192cec215e0f364d0a7fe482d0bff9ee"}

As we don't use git lfs, maybe just remove it for now?

@opajonk
Copy link
Contributor Author

opajonk commented Jul 22, 2025

I am not sure what happens here. I have tried twice to create a codespace, which worked just fine. I had to disable a browser extension which blocks some content, but that was all. I found one bug related to bazel in codespaces, which will be fixed via eclipse-score/devcontainer#5. But this should not prevent the codespace from starting...

@opajonk
Copy link
Contributor Author

opajonk commented Jul 23, 2025

eclipse-score/devcontainer#5 is merged. I tried codespaces again, and it starts. bazel run //docs:incremental_latest is now passing in it without any error - although rather slow, since the backing VM has very low specs...

@opajonk opajonk marked this pull request as ready for review July 23, 2025 08:20
@AlexanderLanin
Copy link
Member

although rather slow, since the backing VM has very low specs...

You get what you pay for ;-)

Copy link
Member

@AlexanderLanin AlexanderLanin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now it works for me as well.

@MaximilianSoerenPollak MaximilianSoerenPollak merged commit 4a46297 into eclipse-score:main Jul 23, 2025
7 checks passed
@github-project-automation github-project-automation bot moved this from Draft to Done in Infrastructure Jul 23, 2025
@AlexanderLanin
Copy link
Member

Next step might be adding "updateContentCommand" with ide_support

@opajonk
Copy link
Contributor Author

opajonk commented Jul 23, 2025

Next step might be adding "updateContentCommand" with ide_support

Like so? #157

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

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants