1156 Commits

Author SHA1 Message Date
Aditya Maru
e09a08878e
Merge pull request #115 from useblacksmith/buildx-ratelimit
src: add a retry with backoff to combat 429s when downloading buildkit
2025-05-18 16:29:42 -04:00
Claude
9dbab7fbd2 src: add a retry with backoff to combat 429s when downloading buildkit 2025-05-18 16:22:27 -04:00
Aditya Maru
198ccc9626
Merge pull request #114 from useblacksmith/add-up-ping
src: add ping before get stickydisk
2025-05-16 13:50:38 -04:00
Claude
1868624b97 src: add ping before get stickydisk 2025-05-16 13:41:46 -04:00
Aditya Maru
f0d8aee790
Merge pull request #113 from useblacksmith/newlogs
src: more debug logs
2025-05-14 14:06:06 -04:00
Claude
e84bc1a88e src: more debug logs 2025-05-14 14:04:56 -04:00
Aditya Maru
5501e3ffb3
Merge pull request #112 from useblacksmith/debug-port
src: print the port bpa is trying to hit
2025-05-14 13:47:44 -04:00
Claude
41a36ac067 src: print the port bpa is trying to hit 2025-05-14 13:43:57 -04:00
Aditya Maru
7af3b3af33
Merge pull request #111 from useblacksmith/fix-unnecessary-commti
src: only commit stickydisk in post step if in setup-only
2025-04-29 17:08:09 -04:00
Claude
296109dd1e src: only commit stickydisk in post step if in setup-only
Firstly this was a bug where we were trying to commit in the post
step even if we had already committed at the end of the main step in
a non-setup-only invocation.

Secondly, if the action is canceled before the exposeID is set in the main
process, we don't want to send a commit request with an empty exposeID.
2025-04-29 17:01:42 -04:00
Aditya Maru
5646913081
.github: update bump_tags_to_master.yaml
Signed-off-by: Aditya Maru <adityamaru@gmail.com>
2025-04-26 22:55:20 -04:00
Aditya Maru
550edf2feb
Merge pull request #110 from useblacksmith/move-prune
src: move buildkit prune to cleanup stage and invoke it inline
2025-04-22 17:01:26 -04:00
Claude
c80185915d src: move buildkit prune to cleanup stage and invoke it inline
Previously, we were firing off an async buildkit prune to clean
up layers unused in 14 days. This changes that to cleanup layers
unused in 7 days and fires it off inline on cleanup. It just seems
easier to reason about that way.
2025-04-22 16:31:23 -04:00
Aditya Maru
49f6d185dd
Merge pull request #109 from useblacksmith/use-port-env
src: use port from env
2025-04-15 21:37:56 -04:00
Claude
11ec21ffed src: use port from env 2025-04-15 18:23:28 -07:00
Aditya Maru
a1b5443a1b
Merge pull request #105 from useblacksmith/setup-only
*: introduce a setup-only mode to the build-push-action
2025-04-14 19:44:06 -04:00
Claude
ab514e31b5 *: introduce a setup-only mode to the build-push-action
This setup-only mode will setup a docker builder with the stickydisk
mounted but will not run a Docker build. The use case here is to allow
customers to then run their custom Tilt files or Docker commands against
our builder. The other subtle change is that we only cleanup in the post
step of this builder action. It is still to be seen if you can start several
of these builders at the same time in a workflow but we can do that as a follow
on.
2025-04-14 16:36:36 -07:00
Aayush Shah
f8d1c2e2ae
*: normalize file paths in all cases (#104) 2025-03-06 17:24:56 -05:00
Aditya Maru
3bde8b24e4
Merge pull request #103 from useblacksmith/stub-multiarch
src: disable native multi-arch builds
2025-03-05 18:23:22 -05:00
Aditya Maru
6fd13769ac src: disable native multi-arch builds 2025-03-04 15:53:15 -05:00
Aditya Maru
aa05aa4d9f
Merge pull request #101 from useblacksmith/tailscale-cleanup
src: only log fatal errors in tailscale teardown
2025-03-03 22:57:51 -05:00
Aditya Maru
feb3751245 src: only log fatal errors in tailscale teardown 2025-03-03 22:55:54 -05:00
Aditya Maru
1def72df18
Merge pull request #99 from useblacksmith/scaffold-multi-platform
src: add scaffolding for support multi-platform builds
2025-02-16 23:16:43 -05:00
Aditya Maru
4a3e86e9c9 src: add scaffolding for support multi-platform builds 2025-02-17 05:25:52 +05:30
Aditya Maru
ca7f4ddd0c
Merge pull request #97 from useblacksmith/02-10-_bind_to_localhost_over_TCP_instead_of_using_a_unix_socket
*: bind to localhost over TCP instead of using a unix socket
2025-02-10 23:07:46 -05:00
Aayush
1390f95565 *: bind to localhost over TCP instead of using a unix socket 2025-02-10 23:06:21 -05:00
Aditya Maru
6ff8522817
Merge pull request #96 from useblacksmith/add-sync
src: add sync before umount
2025-01-21 19:38:26 -05:00
Aditya Maru
2331ad873b src: add sync before umount 2025-01-21 19:34:23 -05:00
Aditya Maru
75e9b3f8b2
Merge pull request #95 from useblacksmith/write-bb-startr
src: write a sentinel file once the builder is setup
2025-01-10 16:06:27 -05:00
Aditya Maru
f440133b20 wip 2025-01-10 15:52:55 -05:00
Aditya Maru
37974fc17e
Merge pull request #94 from useblacksmith/01-09-src_prevent_path_duplication_when_dockerfile_is_within_context
src: prevent path duplication when dockerfile is within context
2025-01-09 10:16:29 -05:00
Aayush
8554acbf59
src: prevent path duplication when dockerfile is within context 2025-01-09 10:03:58 -05:00
Aditya Maru
82dd2a61b6
Merge pull request #93 from useblacksmith/fix-error-msg
src: fix error message
2025-01-08 07:14:53 -05:00
Aditya Maru
5ac445ae84 src: fix error message 2025-01-08 07:14:25 -05:00
Aditya Maru
3b96b27fed
Merge pull request #92 from useblacksmith/01-07-src_bump_buildkit_startup_timeout_to_30sec
src: bump buildkit startup timeout to 30sec
2025-01-07 21:22:32 -05:00
Aayush
0e4788906e
src: bump buildkit startup timeout to 30sec 2025-01-07 21:18:32 -05:00
Aayush Shah
d8a061af73
src: update timeout on setupStickyDisk (#91) 2025-01-01 15:09:21 -05:00
Aditya Maru
4fe825e8c9
Merge pull request #90 from useblacksmith/warning-debug
src: change warning to debug
2025-01-01 04:17:26 -05:00
Aditya Maru
34ea2f79e5 src: change warning to debug 2025-01-01 13:16:46 +04:00
Aayush Shah
4ed3ba5c73
src: ignore unset sentinel value for tailscale token (#89) 2025-01-01 02:05:30 -05:00
Aditya Maru
7a4d18f15a
Merge pull request #88 from useblacksmith/bump-timeout
src: bump timeout from 30s to 45s
2025-01-01 00:31:14 -05:00
Aditya Maru
42b59d67c9 src: bump timeout from 30s to 45s 2025-01-01 09:25:31 +04:00
Aayush Shah
c03b613806
use local dockerfile path over git context (#86) 2024-12-31 13:08:49 -05:00
Aditya Maru
8e7197156e
Merge pull request #87 from useblacksmith/vm-tailnet
src: join and leave tailnet on start and cleanup of builder
2024-12-31 06:54:16 -05:00
Aditya Maru
aa6b213b0b src: join and leave tailnet on start and cleanup of builder 2024-12-31 15:52:49 +04:00
Aayush Shah
8b07a60ec3
Update README.md
Signed-off-by: Aayush Shah <aayush.shah15@gmail.com>
2024-12-27 22:44:46 -05:00
Aayush Shah
fdc12bb01d
update README (#85) 2024-12-27 12:07:57 -05:00
Aditya Maru
8a782a7c2b
Merge pull request #80 from useblacksmith/gc-inode-tweaks
src: disable automatic buildkit GC
2024-12-23 09:21:40 -05:00
Aditya Maru
9fdeb57c53 src: disable automatic buildkit GC
We have reason to believe that automatic GC is affecting
daemon startup times. In this patch we disable automatic GC
and instead rely on manual pruning of the buildkit cache.
Once the daemon is ready we spawn an async task to run prune
on any objects older than 14 days. We are already manaing the
ceph volume approaching its size limit ourselves in the VM
Agent.

Patch also adds some alerting when inode usage is high on a mountpoint.
2024-12-23 09:15:34 -05:00
Aditya Maru
d0a5da09cc
Merge pull request #83 from useblacksmith/print-api-url
src: print api url in debug info
2024-12-21 23:43:51 -05:00