Skip to content

Conversation

@geropl
Copy link
Member

@geropl geropl commented Nov 19, 2021

Description

  1. remove qemu
    image
  2. some minor improvements that brought ~250MB

There seem to be further 1.3GB potential, but dive keeps crashing, so going to merge this as-is.

Related Issue(s)

Fixes #6665

How to test

Release Notes

NONE 

Documentation

@codecov
Copy link

codecov bot commented Nov 19, 2021

Codecov Report

Merging #6797 (1b0b606) into main (154eac9) will increase coverage by 17.47%.
The diff coverage is n/a.

Impacted file tree graph

@@ Coverage Diff @@ ## main #6797 +/- ## =========================================== + Coverage 19.55% 37.03% +17.47%  =========================================== Files 22 19 -3 Lines 1810 4577 +2767 =========================================== + Hits 354 1695 +1341  - Misses 1413 2748 +1335  - Partials 43 134 +91 
Flag Coverage Δ
components-local-app-app-linux-amd64 ?
components-local-app-app-linux-arm64 ?
components-local-app-app-windows-386 ?
components-local-app-app-windows-amd64 ?
components-local-app-app-windows-arm64 ?
components-openvsx-proxy-app ?
components-openvsx-proxy-lib ?
components-supervisor-app 37.03% <ø> (?)
installer-raw-app ?

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
installer/pkg/common/objects.go
...staller/pkg/components/ws-manager/networkpolicy.go
...components/ws-manager/unpriviledged-rolebinding.go
installer/pkg/common/common.go
installer/pkg/components/ws-manager/rolebinding.go
components/openvsx-proxy/pkg/utils.go
components/openvsx-proxy/pkg/modifyresponse.go
installer/pkg/components/ws-manager/configmap.go
installer/pkg/common/render.go
components/openvsx-proxy/pkg/config.go
... and 31 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 154eac9...1b0b606. Read the comment docs.

@github-actions
Copy link
Contributor

⚠️ Hey reviewer! BE CAREFUL ⚠️
Review the code before opening in your Gitpod. .gitpod.yaml was changed and it might be harmful.

@geropl geropl force-pushed the gpl/6665-slim-image branch from bea459e to afcc866 Compare November 19, 2021 13:41
@geropl geropl changed the title Gpl/6665 slim image [dev] slim down dev image Nov 19, 2021
@github-actions
Copy link
Contributor

⚠️ Hey reviewer! BE CAREFUL ⚠️
Review the code before opening in your Gitpod. .gitpod.yaml was changed and it might be harmful.

@geropl geropl marked this pull request as ready for review November 19, 2021 13:50
@geropl geropl requested a review from jankeromnes November 19, 2021 14:11
Copy link
Contributor

@jankeromnes jankeromnes left a comment

Choose a reason for hiding this comment

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

New dev image seems to work, and newer is always better! ❤️

Muchas gracias 🚢

@roboquat
Copy link
Contributor

LGTM label has been added.

DetailsGit tree hash: 49106327b25c2d476e78d4da342a7d98190fdf14

@corneliusludmann
Copy link
Contributor

/approve

# Scratchpad

```
leeway build components/agent-smith:falco-bpf-probe --serve 0.0.0.0:8081
Copy link
Contributor

@iQQBot iQQBot Nov 19, 2021

Choose a reason for hiding this comment

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

FATA[0001] package "components/agent-smith:falco-bpf-probe" does not exist

did it miss something?

Copy link
Contributor

Choose a reason for hiding this comment

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

agent-smith is no longer BPF based. We should remove this from the readme

Copy link
Member Author

Choose a reason for hiding this comment

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

Ouch, this came back during a revert+rebase somehow. Will remove in follow-up.


sudo qemu-system-x86_64 -kernel "${vmlinuz}" \
-boot c -m 2049M -hda "${outdir}/bionic-server-cloudimg-amd64.qcow2" \
-boot c -m 2049M -hda "${outdir}/bionic-server-cloudimg-amd64.img" \
Copy link
Contributor

Choose a reason for hiding this comment

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

because delete dev/image/prepare-bpf-dev-environment.sh so there is no image...

Copy link
Contributor

Choose a reason for hiding this comment

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

We should remove this file entirely. No need for qemu anymore

Copy link
Member Author

Choose a reason for hiding this comment

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

Ouch, this came back during a revert+rebase somehow. Will remove in follow-up.

# Scratchpad

```
leeway build components/agent-smith:falco-bpf-probe --serve 0.0.0.0:8081
Copy link
Contributor

Choose a reason for hiding this comment

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

agent-smith is no longer BPF based. We should remove this from the readme


sudo qemu-system-x86_64 -kernel "${vmlinuz}" \
-boot c -m 2049M -hda "${outdir}/bionic-server-cloudimg-amd64.qcow2" \
-boot c -m 2049M -hda "${outdir}/bionic-server-cloudimg-amd64.img" \
Copy link
Contributor

Choose a reason for hiding this comment

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

We should remove this file entirely. No need for qemu anymore

### Build QEMU VM
COPY config prepare-bpf-dev-environment.sh code workspace.mount workspace.automount /root/
RUN /root/prepare-bpf-dev-environment.sh
RUN install-packages qemu qemu-system-x86 linux-image-$WORKSPACE_KERNEL libguestfs-tools sshpass
Copy link
Contributor

Choose a reason for hiding this comment

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

We don't need qemu anymore. Can be removed

Copy link
Contributor

Choose a reason for hiding this comment

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

cool

@csweichel
Copy link
Contributor

@geropl let's start with this PR, and trim some more fat later :)

/lgtm
/approve

@roboquat
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: corneliusludmann, csweichel, jankeromnes

Associated issue: #6665

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@roboquat roboquat merged commit fdce261 into main Nov 22, 2021
@roboquat roboquat deleted the gpl/6665-slim-image branch November 22, 2021 08:40
@roboquat roboquat added the deployed: workspace Workspace team change is running in production label Nov 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved deployed: workspace Workspace team change is running in production release-note-none size/L team: IDE team: workspace Issue belongs to the Workspace team

7 participants