appsody / stacks

Appsody application stacks. This repo will be archived soon.
https://appsody.dev
Apache License 2.0
90 stars 120 forks source link

ci build script randomly removes all repos from appsody repo list #368

Closed Kamran64 closed 4 years ago

Kamran64 commented 5 years ago

Describe the bug Sometimes when running the build script, the script will exit with the error: [Error] Your stack repository is empty - please use `appsody repo add` to add a repository. Unable to initialize project Finished with 1 error(s)

Following this, running appsody repo list reveals that all repos have been removed, like so: Screenshot 2019-09-20 at 11 06 41

To Reproduce Steps to reproduce the behavior:

  1. Run appsody repo listto see all repos
  2. Run the build script with any stack (I was building microprofile and vertx)
  3. Run appsody repo list again to see all repos removed.

Again, for me this happens randomly so I'm not sure exactly what is triggering it (but I've encountered it several times this morning both on my own branch and master)

Expected behavior The build script should finish and the relevant repos added.

Actual behaviour Repos being removed

Environment Details (please complete the following information):

If applicable please specify:

Screenshots If applicable, add screenshots to help explain your problem.

Additional context @skoh7645 also encountered this problem.

Temporary fix is to run: rm -rf ~/.appsody to reset the repos to just appsodyhub and experimental followed by running the build script again.

kylegc commented 5 years ago

I believe Erin is working on this, moving to In Progress

ebullient commented 5 years ago

yes. I am. Thanks, @kylegc

kylegc commented 5 years ago

@ebullient any progress on this? I've seen this behavior a few times recently too.

neeraj-laad commented 4 years ago

This should not be resolved as the CI scripts are not adding/removing repos.