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

Few fixes from after #105 #130

Merged
merged 6 commits into from
Jun 17, 2022

Conversation

mmlb
Copy link
Contributor

@mmlb mmlb commented Jun 14, 2022

Description

Some fixes from after #105 was merged.

  • Fix sed so debug builds actually have the dbg stuff.
  • Make the files produced by make dist match the file names expected by boots and sandbox.
  • Add a dbg-dist target to get the files wanted for booting but for dbg builds.
  • I fixed up the deploy target for the new names, but have disabled it since publish is broken due to bad creds (we are also waiting on a cncf managed s3 bucket).
  • Fix the bash alias definitions for what used to be the docker service container that was renamed to hook-docker.

Why is this needed

Fixes things broken by refactor.

How Has This Been Tested?

Manual tests.

@mmlb mmlb force-pushed the fixups-from-previous-refactors branch from 40243b5 to 06f5ff7 Compare June 14, 2022 21:38
@mmlb mmlb requested a review from ScottGarman June 14, 2022 21:39
@mmlb mmlb force-pushed the fixups-from-previous-refactors branch from 06f5ff7 to a3b5389 Compare June 14, 2022 21:44
ScottGarman
ScottGarman previously approved these changes Jun 14, 2022
rules.mk Outdated Show resolved Hide resolved
rules.mk Outdated
Comment on lines 56 to 59
out/$T/$(1)/hook_$(DOCKER_2_HW_$(2)).tar.gz: out/$T/$(1)/initramfs-$(DOCKER_2_HW_$(2)) out/$T/$(1)/vmlinuz-$(DOCKER_2_HW_$(2))
out/$T/$(1)/initramfs-$(DOCKER_2_HW_$(2)): out/$T/$(1)/$(2)/initrd.img
out/$T/$(1)/vmlinuz-$(DOCKER_2_HW_$(2)): out/$T/$(1)/$(2)/kernel
dist-files += out/$T/$(1)/initramfs-$(DOCKER_2_HW_$(2)) out/$T/$(1)/vmlinuz-$(DOCKER_2_HW_$(2))
Copy link
Member

Choose a reason for hiding this comment

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

I encourage you to use less make over more. this addition is difficult to understand.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not a fan of having make do unnecessary work but I hear ya, this was new to me too. So its gone now. I was able to give the macro parameters better names (something I tried before but didn't work out until I changed some things for other reasons). Can you take a look at the last commit and see if that makes things a little clearer?

@mmlb mmlb force-pushed the fixups-from-previous-refactors branch 2 times, most recently from 4cfaa2d to 8ca64bb Compare June 15, 2022 17:14
@mmlb
Copy link
Contributor Author

mmlb commented Jun 15, 2022

Hey @ScottGarman @jacobweinstock can y'all take another look please?

ScottGarman
ScottGarman previously approved these changes Jun 15, 2022
@jacobweinstock
Copy link
Member

Looking and FYI this will need @thebsdbox or @tstromberg in order to get merged.

Copy link
Member

@jacobweinstock jacobweinstock left a comment

Choose a reason for hiding this comment

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

one comment, looks fine otherwise. thanks

@@ -94,8 +94,8 @@ services:
files:
- path: etc/profile.d/local.sh
contents: |
alias docker='ctr -n services.linuxkit tasks exec --tty --exec-id cmd docker docker'
alias docker-shell='ctr -n services.linuxkit tasks exec --tty --exec-id shell docker sh'
alias docker='ctr -n services.linuxkit tasks exec --tty --exec-id cmd hook-docker docker'
Copy link
Member

Choose a reason for hiding this comment

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

is this extra space intentional?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yep just an alignment along the = so that its easy to spot the differences.

@mmlb
Copy link
Contributor Author

mmlb commented Jun 16, 2022

@jacobweinstock you're still pending as "requested changes" afaik all have been addressed. Is there anything else?

@mmlb
Copy link
Contributor Author

mmlb commented Jun 16, 2022

Looking and FYI this will need @thebsdbox or @tstromberg in order to get merged.

Haven't seen much activity from either in this repo in a while, an exception may be in order. I've also opened up #131 to add myself as a maintainer.

@jacobweinstock
Copy link
Member

jacobweinstock commented Jun 16, 2022

Looking and FYI this will need @thebsdbox or @tstromberg in order to get merged.

Haven't seen much activity from either in this repo in a while, an exception may be in order. I've also opened up #131 to add myself as a maintainer.

sure, you already have approver permissions but don't know how moving to maintainer helps get PR's from you merged though. I think another approver would be a more idea option over an exception/override from a maintainer.

jacobweinstock
jacobweinstock previously approved these changes Jun 16, 2022
@mmlb
Copy link
Contributor Author

mmlb commented Jun 16, 2022

Looking and FYI this will need @thebsdbox or @tstromberg in order to get merged.

Haven't seen much activity from either in this repo in a while, an exception may be in order. I've also opened up #131 to add myself as a maintainer.

sure, you already have approver permissions but don't know how moving to maintainer helps get PR's from you merged though. I think another approver would be a more idea option over an exception/override from a maintainer.

Yeah. I figure we always want someone "above the ladder" to approve. But then what do we do about maintainers? IDK if maintainers need approval from other maintainers or if we go "one rung down the ladder" for those, or both.

@mmlb
Copy link
Contributor Author

mmlb commented Jun 16, 2022

I haven't seen much interaction from @thebsdbox on this repo, ditto @tstromberg who coincidentally has a single commit for auxillary code (lint-install setup). idk if makes sense to use that commit as the basis for approver status. This repo all-in-all is in need of more active people in the roles, or loosening of gates.

@jacobweinstock
Copy link
Member

I haven't seen much interaction from @thebsdbox on this repo, ditto @tstromberg who coincidentally has a single commit for auxillary code (lint-install setup). idk if makes sense to use that commit as the basis for approver status. This repo all-in-all is in need of more active people in the roles, or loosening of gates.

needing more active folks is definitely what we should be focusing on. loosening gates doesn't really make sense. As you have noted Thomas only has a single commit and yet he is still an approver.

Also, the current governance handles approving PRs the same for all people who open a PR. It doesnt matter what the role of that person is. The process is the same.

@mmlb
Copy link
Contributor Author

mmlb commented Jun 16, 2022

I haven't seen much interaction from @thebsdbox on this repo, ditto @tstromberg who coincidentally has a single commit for auxillary code (lint-install setup). idk if makes sense to use that commit as the basis for approver status. This repo all-in-all is in need of more active people in the roles, or loosening of gates.

needing more active folks is definitely what we should be focusing on. loosening gates doesn't really make sense. As you have noted Thomas only has a single commit and yet he is still an approver.

Also, the current governance handles approving PRs the same for all people who open a PR. It doesnt matter what the role of that person is. The process is the same.

Hmm I guess I was confused about the approver role, for some reason I thought another maintainer would be wanted to approve of a mainter's code. That not being the case makes a ton of sense. At this point though, this repo has just one active member that can approve PRs, me. Let me put out a call for approvers in slack.

@mmlb mmlb dismissed stale reviews from jacobweinstock and ScottGarman via 02d623c June 16, 2022 17:52
@mmlb mmlb force-pushed the fixups-from-previous-refactors branch from 8ca64bb to 02d623c Compare June 16, 2022 17:52
jacobweinstock
jacobweinstock previously approved these changes Jun 16, 2022
@mmlb mmlb force-pushed the fixups-from-previous-refactors branch from 02d623c to 388d1aa Compare June 16, 2022 19:33
mmlb added 2 commits June 17, 2022 10:02
Signed-off-by: Manuel Mendez <github@i.m.mmlb.dev>
I didn't notice that when I previously re-worked the make setup that I
changed the names away from what boots expects. Boots expect gnu style
arch names where docker use go names (x86_64 vs amd64 and aarch64 vs
arm64). I ended up coming across a way to sort of do a staticly defined
look up table in make using something called "Constructed Macro Names",
see http://make.mad-scientist.net/constructed-macro-names/ for details. So
now we can use make to do the cp instead of in shell.

I also reworked the deploy target so it pushes multiple files instead of one
tarball as thats how boots and sandbox use them, this way we avoid needing
to post-process the deployed artifacts. But this is disabled at the moment
as pushing to the s3 bucket is failing due to issue with creds. Once we get
creds fixed up this can be re-enabled.

Signed-off-by: Manuel Mendez <github@i.m.mmlb.dev>
mmlb added 4 commits June 17, 2022 10:02
This was nice to let make be aware of all the dependencies but it was making
use of some uncommon makeisms. Seeing as `dist` is a leaf target anyway its
not super critical to avoid running unnecessarily.

Signed-off-by: Manuel Mendez <github@i.m.mmlb.dev>
This is currently broken anyway.

Signed-off-by: Manuel Mendez <github@i.m.mmlb.dev>
I did not notice that the docker being referenced here before was for the
docker service that was renamed hook-docker. This went by unnoticed since
I was booting old versions of hook that did not have the local.sh file
embedded. I finally figured out I had broken the aliases when I renamed the
server after actually booting the hook images I built.

Signed-off-by: Manuel Mendez <github@i.m.mmlb.dev>
This wasn't possible in initial iterations but after some refactors I thought
it might be doable again. Indeed it is and this makes it easier to see whats
going on in the macros.

Signed-off-by: Manuel Mendez <github@i.m.mmlb.dev>
@mmlb mmlb force-pushed the fixups-from-previous-refactors branch from 388d1aa to 2edb728 Compare June 17, 2022 14:02
@jacobweinstock jacobweinstock added the ready-to-merge Signal to Mergify to merge the PR. label Jun 17, 2022
@mergify mergify bot merged commit d0d0fa2 into tinkerbell:main Jun 17, 2022
@mmlb mmlb deleted the fixups-from-previous-refactors branch June 17, 2022 15:42
mergify bot added a commit that referenced this pull request Jun 17, 2022
## Description

- Makes CI green again by avoiding attempting to push the linuxkit images via `make deploy` which was deleted.
- Removes the dbg only binding of /etc/daemon.json which breaks hook-docker since it ends up being mounted read-only.

## Why is this needed

Fixes CI and dbg runs.

## How Has This Been Tested?

CI fix should just work.

I've been running with the daemon.json drop in a different branch and thought it was in branch for #130. 

## How are existing users impacted? What migration steps/scripts do we need?

CI is ✔️ not ❌ which makes us all feel warm and fuzzy.

dbg builds are actually useful and work.
jacobweinstock added a commit that referenced this pull request Aug 31, 2022
Hello. I would like to request moving from reviewer to approver role. I am looking for a sponsor from either @mmlb or @thebsdbox. Please and thank you.

Requirements:

- [X] I have reviewed the [community membership guidelines](https://github.com/tinkerbell/proposals/blob/main/proposals/0024/GOVERNANCE.md)
- [X] I have [enabled 2FA on my GitHub account](https://github.com/settings/security)
- [X] I have subscribed to the [tinkerbell-contributors e-mail list](https://lists.cncf.io/g/cncf-tinkerbell-dev)
- [X] I am actively contributing to 1 or more Tinkerbell subprojects
- [X] Reviewer for at least 1 month
- [X] Shallow understanding of the technical goals and direction of the repository
- [X] Shallow understanding of the technical domain of the repository
- [X] Reviewed or merged at least 3 substantial PRs to the codebase such as significant re-design or whole new features

PR Reviews
#98
#89
#130

PR merges
#118
#117
#116
#115
#59

Sponsor Request from
@mmlb 
@thebsdbox
@jacobweinstock jacobweinstock mentioned this pull request Aug 31, 2022
8 tasks
mergify bot added a commit that referenced this pull request Aug 31, 2022
Hello. I would like to request moving from reviewer to approver role. I am looking for a sponsor from either @mmlb or @thebsdbox. Please and thank you.

Requirements:

- [X] I have reviewed the [community membership guidelines](https://github.com/tinkerbell/proposals/blob/main/proposals/0024/GOVERNANCE.md)
- [X] I have [enabled 2FA on my GitHub account](https://github.com/settings/security)
- [X] I have subscribed to the [tinkerbell-contributors e-mail list](https://lists.cncf.io/g/cncf-tinkerbell-dev)
- [X] I am actively contributing to 1 or more Tinkerbell subprojects
- [X] Reviewer for at least 1 month
- [X] Shallow understanding of the technical goals and direction of the repository
- [X] Shallow understanding of the technical domain of the repository
- [X] Reviewed or merged at least 3 substantial PRs to the codebase such as significant re-design or whole new features

PR Reviews
#98
#89
#130

PR merges
#118
#117
#116
#115
#59

Sponsor Request from
@mmlb 
@thebsdbox
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-merge Signal to Mergify to merge the PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants