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

Mixer fails to reuse workspace if upstream delete bundles #584

Open
mbelluzzo opened this issue Jun 6, 2019 · 6 comments
Open

Mixer fails to reuse workspace if upstream delete bundles #584

mbelluzzo opened this issue Jun 6, 2019 · 6 comments

Comments

@mbelluzzo
Copy link

If you are only tracking upstream (IOW mixer bundle add --all-upstream) and reuses the mixer workspace between builds, mixer init will fail when bundles are deleted.

mixer init --upstream-version 29690
mixer bundle add --all-upstream
# a given build, no need to actually build to trigger the error
# later, on a following build
mixer init --upstream-version 29800 #to reset to new version
Initializing mix version 10 from upstream version 29800
2019/06/06 05:15:53 ERROR: Cannot find bundle "kernel-container" in local or upstream bundles
@mbelluzzo mbelluzzo changed the title Mixer fail to reuse workspace if upstream delete bundles Mixer fails to reuse workspace if upstream delete bundles Jun 6, 2019
@rchiossi
Copy link
Contributor

rchiossi commented Jun 6, 2019

why are you running init on top of an existing mix? Do you need anything from the first initialization?

@jwakre
Copy link

jwakre commented Jun 6, 2019

Even if the 2nd mixer init is replaced with mixer versions update, downstream mixes have trouble detecting upstream bundle deletions:

mixer init --upstream-version 29690
mixer bundle add kernel-container
mixer build all --native
mixer versions update --upstream-version 29800
mixer build upstream-format --new-format 28
mixer build all --native
2019/06/06 13:22:23 ERROR: Couldn't build bundles: Error building bundles: Cannot find bundle "kernel-container" in local or upstream bundles

@rchiossi
Copy link
Contributor

rchiossi commented Jun 6, 2019

Answering over the phone is not helping... twice I missed what was going on. I'll get back to it when I get home.

@mbelluzzo
Copy link
Author

mixer init is one of the ways to get to the issue.

Calling init always has other value: sanitize the build environment. Only mixer knows if the state of its workspace is in good shape. You never know when a crazy monkey went by and flipped a bit, removed a file, changed a format.

@jwakre jwakre self-assigned this Jun 28, 2019
@jwakre jwakre removed their assignment Jul 25, 2019
@jwakre jwakre self-assigned this Jan 8, 2020
@jwakre
Copy link

jwakre commented Jan 8, 2020

The mixer init and downstream format bump failures seem like separate issues, so I created #694 to track the format bump failure.

@jwakre jwakre removed their assignment Mar 5, 2020
@reaganlo
Copy link
Contributor

reaganlo commented Apr 26, 2020

@mbelluzzo The problem here is that mixer init does not clear the mixbundles file. I'm not sure why it was designed like that. But we could make that change if required.

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

No branches or pull requests

4 participants