Skip to content

Commit a352853

Browse files
committed
Troubleshooting loop for different environments
1 parent c09e4c4 commit a352853

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.github/workflows/build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
app=$1
44

55
# Define platforms and architectures
6-
platforms=("windows" "linux" "darwin")
7-
architectures=("amd64" "arm64")
6+
platforms=("linux")
7+
architectures=("amd64")
88
mkdir -p dist
99

1010
# Build binaries for each platform and architecture combination

acceptance/testenv/loaded.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ func (l *loadedEnv) Name() string {
2828

2929
// Configure implemets config.Loader interface
3030
func (l *loadedEnv) Configure(cfg *config.Config) error {
31+
ctx := context.Background()
3132
if cfg.IsAzure() {
33+
logger.Debugf(ctx, "Setting credentials for Azure Databricks")
3234
cfg.Credentials = l.v.creds
3335
}
3436
for _, a := range config.ConfigAttributes {
@@ -37,6 +39,7 @@ func (l *loadedEnv) Configure(cfg *config.Config) error {
3739
if !ok {
3840
continue
3941
}
42+
logger.Debugf(ctx, "Loaded from environment variable: %s", ev)
4043
// TODO: redact only sensitive values out
4144
err := a.SetS(cfg, v)
4245
if err != nil {
@@ -89,6 +92,7 @@ func (l *loadedEnv) Start(ctx context.Context) (context.Context, func(), error)
8992
// not to conflict with metadata service,
9093
// erase any auth env vars
9194
v = ""
95+
logger.Debugf(ctx, "Erasing auth variable for subprocess: %s", k)
9296
}
9397
ctx = env.Set(ctx, k, v)
9498
}
@@ -132,6 +136,7 @@ func (l *loadedEnv) metadataServer(seed *config.Config) *httptest.Server {
132136
})
133137
return
134138
}
139+
logger.Debugf(ctx, "Metadata for host: %s", hostInHeader)
135140
req := &http.Request{Header: http.Header{}}
136141
err := configs.Authenticate(req)
137142
if err != nil {

0 commit comments

Comments
 (0)