Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix dotnet command for nightly test #974

Closed
alfeilex opened this issue Nov 10, 2022 · 7 comments · Fixed by #980
Closed

Fix dotnet command for nightly test #974

alfeilex opened this issue Nov 10, 2022 · 7 comments · Fixed by #980
Assignees
Labels
bug Something isn't working test related to testing and QA

Comments

@alfeilex
Copy link
Member

Actual behavior

The nightly tests in all OS's detect an error with dotnet command.

Steps to reproduce (bug) / Use Case of feature request (enhancement)

  1. Check latest nightly tests for Windows, MacOS and Ubuntu

Related/Dependent Issues

Comments/Hints:

I have done the tests locally and no such an error occurs. A keyword of the error is Segmentation fault (core dumped).

@alfeilex alfeilex added bug Something isn't working test related to testing and QA Team_IDE labels Nov 10, 2022
@mustafaokyay
Copy link

Hey team! Please add your planning poker estimate with Zenhub @alfeilex @hohwille @tobka777 @Amueller36

@mustafaokyay
Copy link

Hey team! Please add your planning poker estimate with Zenhub @CREITZ25 @cinnamon-coder-hub

@mustafaokyay
Copy link

Please add your planning poker estimate with Zenhub @Ttring

@alfeilex
Copy link
Member Author

It seems that this line

doRun new -i devon4net.WebApi.Template
leads to an error in github actions runners. At the moment, I can't figure out why another installation of dotnet is started after the installation of dotnet. And why git commands are not found?

https://github.com/devonfw/ide/actions/runs/3475607093/jobs/5810015947#step:5:361

@alfeilex
Copy link
Member Author

I suppose that the github hosts don't the typical directory structure.

doRun new -i devon4net.WebApi.Template

This command creates a .templateengine file under .../User/.templateengine. Maybe that is the reason why the installation leads to this kind of error.

@alfeilex
Copy link
Member Author

alfeilex commented Nov 16, 2022

I have noticed that after running doRun in line 33, doSetup is run again in line 40. This leads to an error which is described in this issue.

function doSetup() {
doInstall "dotnet" "${DOTNET_VERSION}" "${1}"
if doExists ~/.templateengine/packages/Devon4Net.WebAPI.Template*
then
doDebug "Devon4net template already installed."
else
doRun new -i devon4net.WebApi.Template
fi
}
function doRun() {
doSetup silent
doEcho "Running: dotnet ${*}"
if doIsQuiet
then
"${DOTNET}" "${@}" > /dev/null

Why did this happened? Should not doInstall skip the installation if the tool is already installed. Or does this error happen because doInstall and doRun are run in same session?

@alfeilex
Copy link
Member Author

I was able to fix this error by replacing line 35 with
doRunCommand "'${DOTNET}' new -i devon4net.WebApi.Template"

But does this also happen in other commandlets?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working test related to testing and QA
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants