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

Some struct tweaks in ConcurrencyTools + syft/stereoscope debugging #1887

Closed
wants to merge 16 commits into from

Conversation

Noxsios
Copy link
Contributor

@Noxsios Noxsios commented Jul 7, 2023

Description

...

Related Issue

Fixes #

Relates to #

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Other (security config, docs update, etc)

Checklist before merging

Signed-off-by: razzle <[email protected]>
Signed-off-by: razzle <[email protected]>
Signed-off-by: razzle <[email protected]>
Signed-off-by: razzle <[email protected]>
Signed-off-by: razzle <[email protected]>
Signed-off-by: razzle <[email protected]>
Signed-off-by: razzle <[email protected]>
@Noxsios
Copy link
Contributor Author

Noxsios commented Jul 7, 2023

@Noxsios
Copy link
Contributor Author

Noxsios commented Jul 7, 2023

might be this anchore/stereoscope#132

or anchore/stereoscope#161

Signed-off-by: razzle <[email protected]>
Signed-off-by: razzle <[email protected]>
Signed-off-by: razzle <[email protected]>
@Noxsios
Copy link
Contributor Author

Noxsios commented Jul 7, 2023

doing a syftImage.Cleanup() results in:

     ERROR:  Failed to create package: unable to create an SBOM catalog for the package: failed to read
 layer="sha256:7dbfe3d6ab90114ecc841a63aab20ecf14f47e5cf2369db5eba7e2db89226631" tar : open
 /home/runner/.zarf-cache/images/sha256:7dbfe3d6ab90114ecc841a63aab20ecf14f47e5cf2369db5eba7e2db89226631.tar:
 no such file or directory

Signed-off-by: razzle <[email protected]>
@Noxsios
Copy link
Contributor Author

Noxsios commented Jul 7, 2023

how to see syft logs:

	eventBus := partybus.NewBus()
	stereoscope.SetBus(eventBus)
	syft.SetBus(eventBus)
	subscription := eventBus.Subscribe()
	defer eventBus.Unsubscribe(subscription)

	cfg := logrus.Config{
		Level: logger.DebugLevel,
	}
	log, _ := logrus.New(cfg)
	syft.SetLogger(log)
	stereoscope.SetLogger(log.Nested("steroscope"))

	events := subscription.Events()
	go func() {
		for event := range events {
			message.Debug("syft||stereoscope", message.JSONValue(event))
		}
	}()

@Noxsios
Copy link
Contributor Author

Noxsios commented Jul 7, 2023

so: layer 9943... is in kustomize-controller linux/amd64 (we already knew that from the logs but wanted to confirm).

It is the first layer in the diff_ids array in the image's config for the rootfs.

I have added logging to syft+stereoscope which can be seen in the CI runs.

@Noxsios Noxsios changed the title I had an idea Some struct tweaks in ConcurrencyTools + syft/stereoscope debugging Jul 7, 2023
@Noxsios Noxsios closed this Sep 21, 2023
@Noxsios Noxsios deleted the razzle-doing-wacky-things-again branch September 21, 2023 13:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant