Commit Graph

238 Commits (11ec21ffeddb946efa2a7b04c1ee28f53393f19f)

Author SHA1 Message Date
Aditya Maru 9b63433194 src: make blacksmith builder name unique 1 year ago
Aditya Maru bda6587832 src: change sticky disk key to repo name 1 year ago
Aditya Maru c33190b3c9 src: add local mirror to buildkit toml 1 year ago
Aditya Maru 1dee25cffd src: fix the movement of cleanup to the main step 1 year ago
Aditya Maru f16c36e819 src: add resize2fs call if the block device is formatted 1 year ago
Aditya Maru e1da38ff9d src: add petname and vmID to notification 1 year ago
Aditya Maru ac4af6279b src: move shutdown, cleanup, commit from post to after build 1 year ago
Aditya Maru 138e3a2a14 dist: cat buildkit log file if build fails 1 year ago
Aayush Shah bdd6696880
Only use buildRef if it exists (#42) 1 year ago
Aayush Shah 03e2c54ea5
report cache hit ratio and build size back to backend (#40) 1 year ago
Aayush Shah ed90c2b818
log the input context as well as the final context (#39) 1 year ago
Aditya Maru 3cdd1d81fc *: blkid returns non-zero code if no fs found 1 year ago
Aditya Maru 88ab597dfe *: move formatting of the block device to the client
Previously, we were incorrectly formatting the block device
on the ceph server. This could cause corruption. As a mitigation
we now conditionally format the block device on the client. This
should only kick in if a previous parent clone has not already been
formatted.
1 year ago
Aditya Maru b83388c4ca *: inline headers 1 year ago
Aayush Shah a6005ce994
record and report docker build duration seconds (#33) 1 year ago
Aayush Shah 7d2e9e7288
log the full request URL (#32) 1 year ago
Aayush Shah 4e686a61f2
log the status code in the build reporting warning (#30) 1 year ago
Aayush Shah fc356a7e65
inline some logic (#29) 1 year ago
Aayush Shah 5dc5ef6baa
stop messing up API client headers in requests to backend (#28) 1 year ago
Aayush Shah 562ddafb4b
rename a method and add some debug logging (#27) 1 year ago
Aayush Shah c50dbd0552
dont fail the build if we fail to contact backend (#26) 1 year ago
Aayush Shah 51601ec916
report builds to the backend (#25) 1 year ago
Aayush Shah 0488127ec0
correct warning log line (#22) 1 year ago
Aayush Shah daa8a63bfa
rename getRemoteBuilderAddr to getBuilderAddr (#21) 1 year ago
Aayush Shah 5d3ec55e86
fix lint errors (#20) 1 year ago
Aditya Maru d13406287c remove some core info lines 1 year ago
Aditya Maru dbdd453773 check if headers are override 1 year ago
Aditya Maru fca4e68484 fix naming of request options 1 year ago
Aditya Maru 32418bd064 send request options as json 1 year ago
Aditya Maru 36669c3483 fix sentry endpoint 1 year ago
Aditya Maru 31a478457f *: hit sentry on failures to get remote docker builders 1 year ago
Aditya Maru d778ef8660 *: ignore the inputs builder 1 year ago
Aditya Maru 279255870a add retry to umount logic incase proc is still running 1 year ago
Aditya Maru f8e57e8819 *: clear up logs 1 year ago
Aditya Maru 5e4f9e6868 more debugging 1 year ago
Aditya Maru ae321d5513 add some more debugging for arm builds 1 year ago
Aditya Maru 6211bc2630 src: dont fatal on shutdown 1 year ago
Aditya Maru 0f425d2ea6 add missing vmID in form data 1 year ago
Aditya Maru 562b173de2 dont retry on 500 and plumb 500 through 1 year ago
Aditya Maru 3b1df39d5d *: teach action to hot load sticky disks
This change teaches the build push action to request a stickydisk
every time it runs. Once the SD is hotloaded the VM will mount
the buildkit root dir and starts buildkitd.
1 year ago
Aayush 6f9ad79a61
point staging runs to staging anvil 1 year ago
Aayush 6f17c30763
rely on `GITHUB_REPOSITORY` to get the repo name 1 year ago
Aayush Shah 3f6698f877
tls (#12)
* tls

* set up tls while creating the remote builder
1 year ago
Aayush 6960b243a5
improve error logging 1 year ago
Aayush Shah 9c81a9e3dd
only retry build task submission on ephemeral server errors (#11) 1 year ago
Aayush Shah 2fe866cc23
retry on ephemeral http errors (#10) 1 year ago
Aayush 717de04552
revert back to logging task id 1 year ago
Aayush c675e14e3a
log the prefix task id since its more user readable 1 year ago
Aayush 5158225acc
normalize dockerfile paths 1 year ago
Aayush Shah cb07435230
include e2e builder launch time the `complete` request payload (#9) 1 year ago
Aayush 828fa88525
plumb task id through to abandon call 1 year ago
Aayush 2b966d15c9
log abandonment url 1 year ago
Aayush b15cec1fbd
improve error logs 1 year ago
Aayush f261a983fd
misc cleanup 1 year ago
Aayush bd6be25457
retry ephemeral anvil errors 1 year ago
Aayush 242068ab54
additional logging 1 year ago
Aayush 2d18077219
log the submitted build task id 1 year ago
Aayush Shah 30b096e0c1
fix typo (#8) 1 year ago
Aayush Shah 294f759b05
add a `fallback` input (#7) 1 year ago
Aayush Shah 84699d113f
point to fly staging (#6) 1 year ago
Aayush Shah ea2698782c
log anvil url (#4) 1 year ago
Aayush Shah fd041daf3d
point to anvil staging environment (#3) 1 year ago
Aayush Shah 79167f5d18
log specific warning when no builder instances are available (#2) 1 year ago
Aayush 595f5a79be
configure a local builder using the `docker-container` driver as a fallback 1 year ago
Aayush cb250fea79
plumb through the dockerfile path when creating a build_task 1 year ago
Aditya Maru fca077e64d src: add logic to report differently on success and failure 1 year ago
Aditya Maru 29a5593aa1 *: basic scaffolding for build-push-action
1. Checks we have buildx installed
2. Configures a remote builder if we get an address back
3. Uses the already configured builder if we don't get an address back

This change does not plumb the dockerfile path through as the entity,
and does not differentiate a failed build from a succesful to report
to anvil in the post step yet.
1 year ago
CrazyMax 23c657a01f
print info message for build summary support checks
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
1 year ago
CrazyMax 175aa53a3f
opt to disable github annotations generation for build checks
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
1 year ago
CrazyMax 806a2a461f
generate GitHub annotations for build checks
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
1 year ago
CrazyMax d189d0ef33
Revert "set repository and ghtoken attributes for gha cache type"
This reverts commit 522345f555.

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
1 year ago
CrazyMax 522345f555
set repository and ghtoken attributes for gha cache type
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
1 year ago
CrazyMax 11c2faaa9e
rename DOCKER_BUILD_EXPORT_RETENTION_DAYS to DOCKER_BUILD_RECORD_RETENTION_DAYS
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
1 year ago
CrazyMax de2365af33
opt to disable build record upload
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
1 year ago
CrazyMax 63eb7590c6
switch DOCKER_BUILD_SUMMARY_DISABLE to DOCKER_BUILD_SUMMARY
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
1 year ago
CrazyMax 987902144c
rename DOCKER_BUILD_NO_SUMMARY to DOCKER_BUILD_SUMMARY_DISABLE
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2 years ago
CrazyMax 3dc0757c66
move summary support check right after build
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2 years ago
CrazyMax 9cac6c8ea0
use default retention days for build export artifact
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2 years ago
CrazyMax dc24cf9e25
don't generate summary for cloud driver
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2 years ago
CrazyMax 667cb22c52
DOCKER_BUILD_NO_SUMMARY env to disable summary
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2 years ago
CrazyMax d880b1964b
generate build summary
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2 years ago
CrazyMax e51051ad0b
export build record and upload artifact
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2 years ago
CrazyMax 12076d2fb1
show builder information before building
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2 years ago
CrazyMax a3118a86c8
fixes since moved types
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2 years ago
CrazyMax 54d0f58d64
fixes related to actions-toolkit 0.23.0 changes
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2 years ago
CrazyMax 1d5307d7af
align interface fields with action inputs
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2 years ago
CrazyMax eb3cfeaf00
switch to new Build class
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2 years ago
CrazyMax 96acf63e4c
handle attests correctly with provenance and sbom inputs
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2 years ago
CrazyMax 6c2079483e
disable quotes detection for "outputs" input
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2 years ago
CrazyMax afdf0c0a67
chore: debug build cmd and args
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2 years ago
favonia 8411d080ee
feat: warn about ignored inputs
Currently, several inputs can be silently ignored without
any warnings. This change will issue a warning for each
ignored input with a short explanation.

Signed-off-by: favonia <favonia@gmail.com>
2 years ago
CrazyMax 248131c7bf
add `annotations` input
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2 years ago
Elias Lundgren 5f01267817
feat: add secret-envs input
Signed-off-by: Elias Lundgren <145569914+elias-lundgren@users.noreply.github.com>
2 years ago
CrazyMax c97c4060bd
fix ProxyConfig type when checking length
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2 years ago
CrazyMax f46044b799
warn if docker config can't be parsed
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2 years ago
CrazyMax dc0a85b056
display proxy configuration
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2 years ago
CrazyMax a54198e85a
use new implementation from toolkit
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
3 years ago
CrazyMax b3435979d1
use methods from toolkit to handle provenance attrs
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
3 years ago
CrazyMax d8823bfaed
switch to actions-toolkit implementation
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
3 years ago
CrazyMax f403dafe18
revert disable provenance by default if not set
This partially reverts 337a09d182 but
keeps the newly added tests.

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
3 years ago