Skip to content
This repository was archived by the owner on Aug 30, 2023. It is now read-only.

Commit c79930a

Browse files
committed
fix(cloudbuild): path for log files was constructed incorrectly
1 parent d1e8305 commit c79930a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

freight/checks/cloudbuilder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def check(self, app, sha, config):
8383
}
8484

8585
if build_status == "FAILURE":
86-
build_logtext = u"https://storage.googleapis.com/{}/log-{}.txt".format(
86+
build_logtext = u"https://storage.googleapis.com/{}log-{}.txt".format(
8787
build_logs[5:], build_id
8888
)
8989
log = http.get(build_logtext, headers=headers)

tests/checks/test_cloudbuilder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def test_build_fail(self):
101101
responses.add(
102102
responses.GET,
103103
u"https://storage.googleapis.com/{build_logs}/log-{build_id}.txt".format(
104-
build_logs="mycoolproject.cloudbuild-logs.googleusercontent.com",
104+
build_logs="mycoolbucket/mycoolproject/",
105105
build_id="failed_build_id",
106106
),
107107
body=dedent(failed_log_text),

0 commit comments

Comments
 (0)