-
Notifications
You must be signed in to change notification settings - Fork 190
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
local-dev-cluster repo is not correctly cloned when running "make cluster-up" #721
Comments
en? https://github.com/sustainable-computing-io/kepler/actions/runs/5134947333/jobs/9239675792 |
or I am confusing as https://github.com/sustainable-computing-io/kepler/actions/runs/5134947333/jobs/9239675792#step:4:6 as the same git cli command has different result at your local or...? then I will request @jiere provides more details on your local environment. |
|
@jiere , I can't reproduce at my local.... let me know what's your specific case. |
@SamYuan1990 , actually you have reproduced:) |
The current job is not broken because it only checks if the |
I am just curious about the current usage here, why hardcode to be I also checked the branch/tag of local-dev-cluster repo
...... As above |
yes I know that. well it's different with |
@jiere , TL;DR the check out with the tag version v0.0.0 with the commit id is correct one by design. Here is some back ground with different options through our community and I try to make a trade off for now as https://github.com/sustainable-computing-io/kepler/blob/main/enhancements/CICDv1.md +@rootfs here. In recently, there are lots of voices about versioning tagging etc. So far I would like to use tag.
@jiere , maybe a solution as a trade off is that if we have local-cluster folder, then we skip the @jiere ,@rootfs , I am not considering with OpenSSF as I mentioned at #717 (comment), but open for any discussion.
|
My opinion on this is to do a tag for releases for each repo, and folks can choose to either use the main branch, the tag, or sha. Doing releases provides the options eg 0.0.1, 0.0.2, 0.0.3, etc to stay on that code or rollback if they are not ready for the new code. It doesn't hurt anyone, and then if people don't want to reference the tag, they can simply point to the main branch. Pointing to the main branch is fine in scenarios but giving other people the option to reference versions is an easy thing to do. Happy to talk about it in a meeting if you like, I hope that makes sense |
I do agree. |
Signed-off-by: Sam Yuan <[email protected]>
@SamYuan1990 and @bradmccoydev , I do like the idea of tag, what I am confusing is that why we hardcode the tag value to v0.0.0 in kepler's Makefile? Since most Kepler developers use local-dev-cluster as their dev setup, so kepler repo is the most important consumer of local-dev-cluster, right? BTW, could you also share the method to switch to main branch or other tags? I just tried failed like this:
|
@jiere good point. |
Thanks @rootfs for your suggestion, lgtm:)
|
1st of all, I don't want to force binding, unless CI usage.
Hence, if you want to use cluster down, you can enable at your local or commit a PR to default branch. For the tag and commit out of the tag: The comments out as I blocking for tag, as the new parameter been treated as a breaking change. Honestly, I know there is an other option as the second commit as sustainable-computing-io/local-dev-cluster@232fce7 As a summary, |
I feel like @jiere really want local-dev-cluster with 1st parameter control cluster up or down. like
but in my point of view, the 1st parameter maybe KIND or mircoshift(#182) even if for local dev cluster usage.
which is not finalized... |
Absolutely @SamYuan1990 I agree with the notion of keeping CI at a stable version as there will always be scope for improvement/changes in |
haha, actually I am preparing scripts for this PR #711 , since they are automation, we must guarantee that the cluster is setup/teardown properly among different cases, this is why I like this Anyway, I think I totally got your point, Sam. I will try to modify my local scripts to mitigate this. But last thing I want to repeat, could you kindly remove the "--depth=1" then? |
May I ask an easy question: is microshift free for use or not? It sounds like an "Edge Computing" version of OpenShift, as we all know that, OpenShift needs license... |
For #711 , please take a look at: For an suggestion is made in #711 |
I use Microshift for CI purposes and its free to use. |
@vprashar2929 can you create a microshift env for CI? Thanks |
@vprashar2929 manifests will be a good start. Thank you! |
@rootfs , @vprashar2929 , may suggestion is to add shell script into local-dev-cluster |
Sure adding microshift cluster start-up/down in local-dev-cluster sounds good. |
Describe the bug
When running "make cluster-up", the local-dev-cluster repo is not correctly cloned.
This may be due to change here
To Reproduce
Steps to reproduce the behavior:
Run "make cluster-up" or just run "git clone -b v0.0.0 https://github.com/sustainable-computing-io/local-dev-cluster.git --depth=1"
See error msg below:
Note: switching to 'cc8cc366a0f86c891ff867aca914a95af535e2a6'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:
git switch -c
Or undo this operation with:
git switch -
Turn off this advice by setting config variable advice.detachedHead to false
$ cd local-dev-cluster/
[jie@jie-dev local-dev-cluster]$ git branch
Expected behavior
Correctly git clone the local-dev-cluster and do not break the new feature for #718
Additional context
when remove the "-b v0.0.0" words from the git clone, no issue found yet.
The text was updated successfully, but these errors were encountered: