Skip to content

allow skipping validation #253

Description

@lczyk

ci runs in chisel releases need to install slices multiple times. every install runs on the same repo and is forced to run validation. this currently takes about 60% of the CI time. it woudl be an incredibly useful feature to allow us to skip validation in certain contexts. i've been running chisel quite successfully only for local dev-time testing with the following:

diff --git i/internal/setup/setup.go w/internal/setup/setup.go
index 4502687..1909f8e 100644
--- i/internal/setup/setup.go
+++ w/internal/setup/setup.go
@@ -187,6 +187,12 @@ func ReadRelease(dir string) (*Release, error) {
 		return nil, err
 	}
 
+	// skip validation for cached releases is CHISEL_HACKS flag is set
+	if os.Getenv("CHISEL_HACKS") != "" {
+		logf("Skipping release validation due to CHISEL_HACKS")
+		return release, nil
+	}
+
 	err = release.validate()
 	if err != nil {
 		return nil, err

(i don't propose this exact code to be merged)

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions