Skip to content

#2000: Add local dev build script#2011

Open
Caylipp wants to merge 7 commits into
devonfw:mainfrom
Caylipp:feature/2000-createscript-for-local-end-to-end-testing
Open

#2000: Add local dev build script#2011
Caylipp wants to merge 7 commits into
devonfw:mainfrom
Caylipp:feature/2000-createscript-for-local-end-to-end-testing

Conversation

@Caylipp

@Caylipp Caylipp commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

This PR fixes #2000

Implemented changes:

  • Added build-local-dev.sh to build the local IDEasy native image and install it into a local-dev folder.
  • The script copies the generated ideasy / ideasy.exe executable and native libraries into local-dev/bin.
  • The script updates $IDE_ROOT/_ide/installation to point to the new local-dev installation so the local build can be tested with regular ideasy commands.

Testing instructions

Please add conscise, understandable instructions on how a reviewer can test/verify the functionality of your contribution here:

  1. Run the script from the IDEasy repository root:
    ./build-local-dev.sh
    

Checklist for this PR

Make sure everything is checked before merging this PR. For further info please also see
our DoD.

  • When running mvn clean test locally all tests pass and build is successful
  • PR title is of the form #«issue-id»: «brief summary» (e.g. #921: fixed setup.bat). If no issue ID exists, title only.
  • PR top-level comment summarizes what has been done and contains link to addressed issue(s)
  • PR and issue(s) have suitable labels
  • Issue is set to In Progress and assigned to you or there is no issue (might happen for very small PRs)
  • You followed all coding conventions
  • You have added the issue implemented by your PR in CHANGELOG.adoc unless issue is labeled
    with internal
  • You have formulated clear instructions on how to test your contribution under "Testing instructions"

@github-project-automation github-project-automation Bot moved this to 🆕 New in IDEasy board Jun 9, 2026
@Caylipp Caylipp self-assigned this Jun 9, 2026
@Caylipp Caylipp added enhancement New feature or request test related to testing and QA bash bash, zsh, git-bash (integration, scripts) internal Nothing to be added to CHANGELOG, only internal story labels Jun 9, 2026
@coveralls

coveralls commented Jun 9, 2026

Copy link
Copy Markdown
Collaborator

Coverage Report for CI Build 27565488243

Coverage increased (+0.03%) to 71.119%

Details

  • Coverage increased (+0.03%) from the base build.
  • Patch coverage: No coverable lines changed in this PR.
  • No coverage regressions found.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 15949
Covered Lines: 11837
Line Coverage: 74.22%
Relevant Branches: 7080
Covered Branches: 4541
Branch Coverage: 64.14%
Branches in Coverage %: Yes
Coverage Strength: 3.14 hits per line

💛 - Coveralls

@Caylipp Caylipp moved this from 🆕 New to Team Review in IDEasy board Jun 10, 2026
-add packages from project directory
@Caylipp Caylipp mentioned this pull request Jun 10, 2026
8 tasks
@laert-ll laert-ll self-requested a review June 11, 2026 08:39
@laert-ll laert-ll self-assigned this Jun 11, 2026
Comment thread CHANGELOG.adoc
* https://github.com/devonfw/IDEasy/issues/1849[#1849]: Add VSCodium support
* https://github.com/devonfw/IDEasy/issues/1391[#1391]: Fix bashrc messed with terraform completions
* https://github.com/devonfw/IDEasy/issues/1922[#1922]: Add Task CLI to IDEasy commandlets
* https://github.com/devonfw/IDEasy/issues/2000[#2000]: Add local dev build script

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Story #2000 has no impact for end-users and is therefore labelled as internal.
Therefore, we do not add it to our changelog.
The idea of the changelog is to only highlight the fixed issues relevant for end-users (compared to the full details linked at the end on the GitHub milestone).

Suggested change
* https://github.com/devonfw/IDEasy/issues/2000[#2000]: Add local dev build script

Comment thread build-local-dev.sh
exit 1
fi

SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

BASH_SOURCE is used if a script is not executed but sourced (. build-local-dev.sh vs. ./build-local-dev.sh).
Do we need to source this script instead of running it?
Then you should actually check this and raise an error telling the user to source it if it was executed.
Otherwise you can directly do cd "$(dirname "$0")" instead (and PROJECT_DIR can be relative as ../../..).
BTW: Isn't PROJECT_DIR the same as IDE_HOME?

Comment thread build-local-dev.sh
echo "$GRAALVM_DIR"
echo
echo "Please install GraalVM first:"
echo "ideasy install graalvm"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
echo "ideasy install graalvm"
echo "ide install graalvm"

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

Labels

bash bash, zsh, git-bash (integration, scripts) enhancement New feature or request internal Nothing to be added to CHANGELOG, only internal story test related to testing and QA

Projects

Status: Team Review

Development

Successfully merging this pull request may close these issues.

Create script for local end-to-end testing

4 participants