Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
227 commits
Select commit Hold shift + click to select a range
29a5593
*: basic scaffolding for build-push-action
adityamaru Sep 12, 2024
fca077e
src: add logic to report differently on success and failure
adityamaru Sep 12, 2024
cb250fe
plumb through the dockerfile path when creating a build_task
aayushshah15 Sep 13, 2024
595f5a7
configure a local builder using the `docker-container` driver as a fa…
aayushshah15 Sep 13, 2024
c2b089e
Merge pull request #1 from useblacksmith/wireup-remote-docker-build
aayushshah15 Sep 17, 2024
79167f5
log specific warning when no builder instances are available (#2)
aayushshah15 Sep 17, 2024
fd041da
point to anvil staging environment (#3)
aayushshah15 Sep 20, 2024
ea26987
log anvil url (#4)
aayushshah15 Sep 20, 2024
d135977
npm run build (#5)
aayushshah15 Sep 20, 2024
84699d1
point to fly staging (#6)
aayushshah15 Sep 20, 2024
294f759
add a `fallback` input (#7)
aayushshah15 Sep 21, 2024
30b096e
fix typo (#8)
aayushshah15 Sep 21, 2024
2d18077
log the submitted build task id
aayushshah15 Sep 24, 2024
242068a
additional logging
aayushshah15 Sep 25, 2024
bd6be25
retry ephemeral anvil errors
aayushshah15 Sep 25, 2024
f261a98
misc cleanup
aayushshah15 Sep 25, 2024
b15cec1
improve error logs
aayushshah15 Sep 25, 2024
2b966d1
log abandonment url
aayushshah15 Sep 25, 2024
828fa88
plumb task id through to abandon call
aayushshah15 Sep 25, 2024
cb07435
include e2e builder launch time the `complete` request payload (#9)
aayushshah15 Sep 26, 2024
5158225
normalize dockerfile paths
aayushshah15 Sep 27, 2024
c675e14
log the prefix task id since its more user readable
aayushshah15 Sep 27, 2024
717de04
revert back to logging task id
aayushshah15 Sep 27, 2024
2fe866c
retry on ephemeral http errors (#10)
aayushshah15 Sep 29, 2024
9c81a9e
only retry build task submission on ephemeral server errors (#11)
aayushshah15 Sep 29, 2024
6960b24
improve error logging
aayushshah15 Sep 30, 2024
3f6698f
tls (#12)
aayushshah15 Oct 2, 2024
6f17c30
rely on `GITHUB_REPOSITORY` to get the repo name
aayushshah15 Oct 2, 2024
6f9ad79
point staging runs to staging anvil
aayushshah15 Oct 3, 2024
3b1df39
*: teach action to hot load sticky disks
adityamaru Oct 31, 2024
a880aed
Merge pull request #13 from useblacksmith/use-stickydisk
adityamaru Nov 1, 2024
562b173
dont retry on 500 and plumb 500 through
adityamaru Nov 4, 2024
83feaac
Merge pull request #14 from useblacksmith/fix-retry
adityamaru Nov 4, 2024
417c6d6
dist: missed build regen
adityamaru Nov 4, 2024
0f425d2
add missing vmID in form data
adityamaru Nov 4, 2024
6211bc2
src: dont fatal on shutdown
adityamaru Nov 4, 2024
67bfb55
Merge pull request #15 from useblacksmith/dont-fail-commit
adityamaru Nov 5, 2024
ae321d5
add some more debugging for arm builds
adityamaru Nov 7, 2024
5e4f9e6
more debugging
adityamaru Nov 7, 2024
f8e57e8
*: clear up logs
adityamaru Nov 8, 2024
a759557
Merge pull request #16 from useblacksmith/cleanup
adityamaru Nov 8, 2024
2792558
add retry to umount logic incase proc is still running
adityamaru Nov 8, 2024
48d4153
Merge pull request #17 from useblacksmith/add-some-logifc
adityamaru Nov 8, 2024
d778ef8
*: ignore the inputs builder
adityamaru Nov 12, 2024
5ce6222
Merge pull request #18 from useblacksmith/builder-fixup
adityamaru Nov 12, 2024
31a4784
*: hit sentry on failures to get remote docker builders
adityamaru Nov 13, 2024
36669c3
fix sentry endpoint
adityamaru Nov 16, 2024
32418bd
send request options as json
adityamaru Nov 16, 2024
fca4e68
fix naming of request options
adityamaru Nov 16, 2024
dbdd453
check if headers are override
adityamaru Nov 16, 2024
d134062
remove some core info lines
adityamaru Nov 16, 2024
0dd24ab
Merge pull request #19 from useblacksmith/hit-sentry
adityamaru Nov 16, 2024
5d3ec55
fix lint errors (#20)
aayushshah15 Nov 18, 2024
daa8a63
rename getRemoteBuilderAddr to getBuilderAddr (#21)
aayushshah15 Nov 18, 2024
0488127
correct warning log line (#22)
aayushshah15 Nov 18, 2024
363377e
update generated code (#24)
aayushshah15 Nov 18, 2024
51601ec
report builds to the backend (#25)
aayushshah15 Nov 19, 2024
c50dbd0
dont fail the build if we fail to contact backend (#26)
aayushshah15 Nov 19, 2024
562ddaf
rename a method and add some debug logging (#27)
aayushshah15 Nov 19, 2024
5dc5ef6
stop messing up API client headers in requests to backend (#28)
aayushshah15 Nov 19, 2024
fc356a7
inline some logic (#29)
aayushshah15 Nov 19, 2024
4e686a6
log the status code in the build reporting warning (#30)
aayushshah15 Nov 19, 2024
3b6e3e7
update generated code (#31)
aayushshah15 Nov 19, 2024
7d2e9e7
log the full request URL (#32)
aayushshah15 Nov 19, 2024
a6005ce
record and report docker build duration seconds (#33)
aayushshah15 Nov 19, 2024
0576bed
Create bump_tags_to_master.yaml
adityamaru Nov 19, 2024
ec9585d
Merge pull request #34 from useblacksmith/adityamaru-patch-1
adityamaru Nov 19, 2024
b83388c
*: inline headers
adityamaru Nov 20, 2024
633d4da
Merge pull request #36 from useblacksmith/plumb-docker-build-id
adityamaru Nov 20, 2024
88ab597
*: move formatting of the block device to the client
adityamaru Nov 22, 2024
c32c793
Merge pull request #37 from useblacksmith/format-client-side
adityamaru Nov 22, 2024
3cdd1d8
*: blkid returns non-zero code if no fs found
adityamaru Nov 22, 2024
0a2f8c5
Merge pull request #38 from useblacksmith/fix-format
adityamaru Nov 22, 2024
ed90c2b
log the input context as well as the final context (#39)
aayushshah15 Nov 23, 2024
03e2c54
report cache hit ratio and build size back to backend (#40)
aayushshah15 Nov 25, 2024
6587504
workflows: add workflow to avoid checking in ungenerated code (#41)
aayushshah15 Nov 25, 2024
bdd6696
Only use buildRef if it exists (#42)
aayushshah15 Nov 25, 2024
138e3a2
dist: cat buildkit log file if build fails
adityamaru Nov 27, 2024
e6e6650
Merge pull request #44 from useblacksmith/cat-logs
adityamaru Nov 27, 2024
ac4af62
src: move shutdown, cleanup, commit from post to after build
adityamaru Nov 27, 2024
c7565a4
Merge pull request #45 from useblacksmith/move-some-stuff
adityamaru Nov 27, 2024
e1da38f
src: add petname and vmID to notification
adityamaru Nov 27, 2024
d197edc
Merge pull request #46 from useblacksmith/vm-notification
adityamaru Nov 27, 2024
f16c36e
src: add resize2fs call if the block device is formatted
adityamaru Nov 27, 2024
eb6486e
Merge pull request #47 from useblacksmith/resize
adityamaru Nov 27, 2024
1dee25c
src: fix the movement of cleanup to the main step
adityamaru Nov 27, 2024
7e9c6bd
Merge pull request #48 from useblacksmith/fix-ordering
adityamaru Nov 27, 2024
c33190b
src: add local mirror to buildkit toml
adityamaru Nov 27, 2024
7cbe92e
Merge pull request #49 from useblacksmith/use-mirror
adityamaru Nov 27, 2024
bda6587
src: change sticky disk key to repo name
adityamaru Nov 28, 2024
9b63433
src: make blacksmith builder name unique
adityamaru Nov 28, 2024
02f42e1
Merge pull request #50 from useblacksmith/make-action-idempotent
adityamaru Nov 28, 2024
bdf7f0b
src: wrap all steps after blacksmith builder in try catch
adityamaru Nov 30, 2024
2ca2ad4
Merge pull request #51 from useblacksmith/wrap-err
adityamaru Nov 30, 2024
9336122
src: add some idempotent cleanup safeguard in post action
adityamaru Nov 30, 2024
b7eb016
Merge pull request #52 from useblacksmith/safe-guard-cleanup
adityamaru Nov 30, 2024
4938a7e
src: change arch to use BLACKSMITH_ENV
adityamaru Nov 30, 2024
99d48d0
Merge pull request #53 from useblacksmith/change-env-process
adityamaru Nov 30, 2024
9841eab
src: only resolve buildref on success
adityamaru Dec 1, 2024
6622b69
Merge pull request #54 from useblacksmith/fix-misplaced
adityamaru Dec 1, 2024
a55bae5
src: prevent top-level ref variable from being shadowed
adityamaru Dec 1, 2024
4d1a78f
Merge pull request #55 from useblacksmith/delete-ref-overload
adityamaru Dec 1, 2024
17d922a
src: shuttle a expose ID between expose and commit
adityamaru Dec 2, 2024
0fb5318
Merge pull request #56 from useblacksmith/shuttle-exposeid
adityamaru Dec 2, 2024
c308f14
src: report the correct sticky disk key
adityamaru Dec 3, 2024
2d7d5ad
Merge pull request #57 from useblacksmith/fix-report
adityamaru Dec 3, 2024
6d7db93
src: bump socket creation timeout to 5s from 3s
adityamaru Dec 3, 2024
e00a389
Merge pull request #58 from useblacksmith/bump-sock-timeout
adityamaru Dec 3, 2024
72c7e93
src: send stickydisk key with commit
adityamaru Dec 3, 2024
3d09910
Merge pull request #60 from useblacksmith/stickykey-commit
adityamaru Dec 4, 2024
edc01b3
backend: use device returned in ExposeVolume response
adityamaru Dec 7, 2024
96821d6
Merge pull request #61 from useblacksmith/use-expose-resp
adityamaru Dec 7, 2024
5ab7817
backend: default to /dev/vdb when ExposeVolume response is empty
adityamaru Dec 7, 2024
15e5bef
Merge pull request #62 from useblacksmith/default-devdb
adityamaru Dec 7, 2024
c71ad2d
*: refactor methods to support mocking
adityamaru Dec 8, 2024
f9d1e15
*: unify error handling and add more unit tests
aayushshah15 Dec 8, 2024
9f63c68
Merge pull request #63 from useblacksmith/refactor-for-tests
adityamaru Dec 8, 2024
b76cd7b
src: fix bug in conditional that zero'd out expose ID
adityamaru Dec 8, 2024
1cc1561
Merge pull request #65 from useblacksmith/fix-conditional
adityamaru Dec 8, 2024
f06a558
src: alert if an exception is thrown on cleanup
adityamaru Dec 9, 2024
a415504
Merge pull request #66 from useblacksmith/alert-on-cleanup
adityamaru Dec 9, 2024
7b86428
src: make `getDockerfilePath` return the full path to the dockerfile …
aayushshah15 Dec 9, 2024
0186286
*: use axios-retry instead of handrolled retry methods
adityamaru Dec 9, 2024
0f99a0b
src: start sending get request with query params
adityamaru Dec 9, 2024
c6b6f32
Merge pull request #68 from useblacksmith/stop-sending-form-data
adityamaru Dec 9, 2024
de0451e
src: make post unmount even if buildkitd is no longer present
adityamaru Dec 11, 2024
5b9a178
Merge pull request #69 from useblacksmith/umount-timeout
adityamaru Dec 11, 2024
1df1b3c
src: ignore error when theres nothing mounted
adityamaru Dec 13, 2024
23eae44
Merge pull request #70 from useblacksmith/cleanup-failure
adityamaru Dec 15, 2024
53000f0
ignore error when nothing is mounted
adityamaru Dec 15, 2024
c7c5053
Merge pull request #71 from useblacksmith/subdue-noisy-log
adityamaru Dec 15, 2024
d43ee61
*: move to grpc backed communication for the agent
adityamaru Dec 16, 2024
8d0da8c
Merge pull request #72 from useblacksmith/move-to-grpc
adityamaru Dec 16, 2024
54bc4e0
src: refactor cleanup logic to expose buildkitd.log
adityamaru Dec 17, 2024
7227817
Merge pull request #73 from useblacksmith/socket-cat
adityamaru Dec 17, 2024
ac42783
src: cleanup flakiness in different parts of the action
adityamaru Dec 17, 2024
e9a7d2c
Merge pull request #74 from useblacksmith/debug-failures
adityamaru Dec 18, 2024
9302d2a
src: stop running process as nohup to avoid missing logs
adityamaru Dec 19, 2024
726f2f6
Merge pull request #76 from useblacksmith/run-diff
adityamaru Dec 19, 2024
1672d6f
src: fix shutdown retry behavior
adityamaru Dec 19, 2024
31dd0cc
Merge pull request #77 from useblacksmith/fix-shutdown
adityamaru Dec 19, 2024
4723a2a
src: stop spurious warnings on buildkit shutdown
adityamaru Dec 19, 2024
70572bc
Merge pull request #78 from useblacksmith/debug-shutdown-spurious-war…
adityamaru Dec 20, 2024
def1585
*: report metrics to the VM agent
adityamaru Dec 20, 2024
e836937
Merge pull request #79 from useblacksmith/wire-metrics
adityamaru Dec 21, 2024
4759d93
src: use the plumbed BLACKSMITH_BACKEND_URL if present
adityamaru Dec 21, 2024
6a143ed
Merge pull request #81 from useblacksmith/use-backend-env
adityamaru Dec 21, 2024
6fe2467
src: silence metric warnings for now
adityamaru Dec 22, 2024
79d3930
Merge pull request #82 from useblacksmith/silence-metric-warning
adityamaru Dec 22, 2024
61713d1
src: print api url in debug info
adityamaru Dec 22, 2024
d0a5da0
Merge pull request #83 from useblacksmith/print-api-url
adityamaru Dec 22, 2024
9fdeb57
src: disable automatic buildkit GC
adityamaru Dec 21, 2024
8a782a7
Merge pull request #80 from useblacksmith/gc-inode-tweaks
adityamaru Dec 23, 2024
fdc12bb
update README (#85)
aayushshah15 Dec 27, 2024
8b07a60
Update README.md
aayushshah15 Dec 28, 2024
aa6b213
src: join and leave tailnet on start and cleanup of builder
adityamaru Dec 31, 2024
8e71971
Merge pull request #87 from useblacksmith/vm-tailnet
adityamaru Dec 31, 2024
c03b613
use local dockerfile path over git context (#86)
aayushshah15 Dec 31, 2024
42b59d6
src: bump timeout from 30s to 45s
adityamaru Jan 1, 2025
7a4d18f
Merge pull request #88 from useblacksmith/bump-timeout
adityamaru Jan 1, 2025
4ed3ba5
src: ignore unset sentinel value for tailscale token (#89)
aayushshah15 Jan 1, 2025
34ea2f7
src: change warning to debug
adityamaru Jan 1, 2025
4fe825e
Merge pull request #90 from useblacksmith/warning-debug
adityamaru Jan 1, 2025
d8a061a
src: update timeout on `setupStickyDisk` (#91)
aayushshah15 Jan 1, 2025
0e47889
src: bump buildkit startup timeout to 30sec
aayushshah15 Jan 8, 2025
3b96b27
Merge pull request #92 from useblacksmith/01-07-src_bump_buildkit_sta…
adityamaru Jan 8, 2025
5ac445a
src: fix error message
adityamaru Jan 8, 2025
82dd2a6
Merge pull request #93 from useblacksmith/fix-error-msg
adityamaru Jan 8, 2025
8554acb
src: prevent path duplication when dockerfile is within context
aayushshah15 Jan 9, 2025
37974fc
Merge pull request #94 from useblacksmith/01-09-src_prevent_path_dupl…
adityamaru Jan 9, 2025
f440133
wip
adityamaru Jan 10, 2025
75e9b3f
Merge pull request #95 from useblacksmith/write-bb-startr
adityamaru Jan 10, 2025
2331ad8
src: add sync before umount
adityamaru Jan 22, 2025
6ff8522
Merge pull request #96 from useblacksmith/add-sync
adityamaru Jan 22, 2025
1390f95
*: bind to localhost over TCP instead of using a unix socket
aayushshah15 Feb 11, 2025
ca7f4dd
Merge pull request #97 from useblacksmith/02-10-_bind_to_localhost_ov…
adityamaru Feb 11, 2025
4a3e86e
src: add scaffolding for support multi-platform builds
adityamaru Feb 16, 2025
1def72d
Merge pull request #99 from useblacksmith/scaffold-multi-platform
adityamaru Feb 17, 2025
feb3751
src: only log fatal errors in tailscale teardown
adityamaru Mar 4, 2025
aa05aa4
Merge pull request #101 from useblacksmith/tailscale-cleanup
adityamaru Mar 4, 2025
6fd1376
src: disable native multi-arch builds
adityamaru Mar 4, 2025
3bde8b2
Merge pull request #103 from useblacksmith/stub-multiarch
adityamaru Mar 5, 2025
f8d1c2e
*: normalize file paths in all cases (#104)
aayushshah15 Mar 6, 2025
ab514e3
*: introduce a setup-only mode to the build-push-action
claude Apr 9, 2025
a1b5443
Merge pull request #105 from useblacksmith/setup-only
adityamaru Apr 14, 2025
11ec21f
src: use port from env
adityamaru Apr 16, 2025
49f6d18
Merge pull request #109 from useblacksmith/use-port-env
adityamaru Apr 16, 2025
c801859
src: move buildkit prune to cleanup stage and invoke it inline
adityamaru Apr 22, 2025
550edf2
Merge pull request #110 from useblacksmith/move-prune
adityamaru Apr 22, 2025
5646913
.github: update bump_tags_to_master.yaml
adityamaru Apr 27, 2025
296109d
src: only commit stickydisk in post step if in setup-only
adityamaru Apr 29, 2025
7af3b3a
Merge pull request #111 from useblacksmith/fix-unnecessary-commti
adityamaru Apr 29, 2025
41a36ac
src: print the port bpa is trying to hit
adityamaru May 14, 2025
5501e3f
Merge pull request #112 from useblacksmith/debug-port
adityamaru May 14, 2025
e84bc1a
src: more debug logs
adityamaru May 14, 2025
f0d8aee
Merge pull request #113 from useblacksmith/newlogs
adityamaru May 14, 2025
1868624
src: add ping before get stickydisk
adityamaru May 16, 2025
198ccc9
Merge pull request #114 from useblacksmith/add-up-ping
adityamaru May 16, 2025
9dbab7f
src: add a retry with backoff to combat 429s when downloading buildkit
adityamaru May 18, 2025
e09a088
Merge pull request #115 from useblacksmith/buildx-ratelimit
adityamaru May 18, 2025
28c2447
*: allow users to pass in a buildx version
adityamaru May 30, 2025
68105fc
Merge pull request #116 from useblacksmith/bump-buildkitd
adityamaru May 30, 2025
d2acb06
action: add missing option string
adityamaru May 30, 2025
6fe3b1c
Merge pull request #117 from useblacksmith/add-missing-option
adityamaru May 30, 2025
a7fa33c
fix: use correct platform when creating remote buildx builder
adityamaru Jun 11, 2025
616bee0
test: fix platform test to work on both ARM and AMD runners
adityamaru Jun 11, 2025
51bef8c
.github: add docker workflow
adityamaru Jun 11, 2025
4fac798
Merge pull request #118 from useblacksmith/builder-misconfig
adityamaru Jun 11, 2025
574eb0e
.github: add v1.2 to bump_tags_to_master.yaml
adityamaru Jun 11, 2025
a037e6f
src: use BLACKSMITH prefixed VM ID env var
adityamaru Jun 16, 2025
4e97fd3
Merge pull request #120 from useblacksmith/change-env
adityamaru Jun 16, 2025
f9f71c9
src: only prune if buildkitd was spun up
adityamaru Jun 14, 2025
ac765fe
Merge pull request #119 from useblacksmith/grpc-fallbakc
adityamaru Jun 18, 2025
7894682
refactor: Remove buildkit management from build-push-action
adityamaru Aug 1, 2025
877a04d
refactor: Remove sticky disk management while keeping build reporting
adityamaru Aug 1, 2025
cc46a91
refactor: complete removal of buildkit and sticky disk management
adityamaru Aug 1, 2025
245d376
refactor: remove unused stickydisk setup logic and rename setup_builder
adityamaru Aug 1, 2025
4108c3e
refactor: remove unnecessary build-reporter abstraction
adityamaru Aug 1, 2025
fece9d4
refactor: remove tmpDir management and buildx installation
adityamaru Aug 1, 2025
4c54035
refactor: remove nofallback parameter
adityamaru Aug 1, 2025
99fce0d
fix: resolve TypeScript build errors and lint issues
adityamaru Aug 3, 2025
61dd933
refactor: only report metrics when using Blacksmith builder
adityamaru Aug 3, 2025
805af4f
fix: resolve variable scope issues causing CI failures
adityamaru Aug 3, 2025
7bff203
fix: remove unnecessary @ts-expect-error directive
adityamaru Aug 4, 2025
6eb4580
chore: comment out bump tags workflow to prevent breaking changes
adityamaru Aug 4, 2025
c213746
Merge pull request #127 from useblacksmith/refactor/remove-buildkit-m…
adityamaru Aug 4, 2025
3cf0b00
fix: add timeout to buildx export operation to prevent hanging
adityamaru Aug 4, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 4 additions & 19 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,9 @@
{
"env": {
"node": true,
"es6": true,
"jest": true
},
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:jest/recommended",
"plugin:prettier/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2023,
"sourceType": "module"
},
"plugins": [
"@typescript-eslint",
"jest",
"prettier"
"plugin:@typescript-eslint/recommended"
]
}
5 changes: 0 additions & 5 deletions .github/e2e/distribution/env

This file was deleted.

13 changes: 0 additions & 13 deletions .github/e2e/distribution/install.sh

This file was deleted.

8 changes: 0 additions & 8 deletions .github/e2e/harbor/env

This file was deleted.

79 changes: 0 additions & 79 deletions .github/e2e/harbor/install.sh

This file was deleted.

8 changes: 0 additions & 8 deletions .github/e2e/nexus/docker-compose.yml

This file was deleted.

9 changes: 0 additions & 9 deletions .github/e2e/nexus/env

This file was deleted.

93 changes: 0 additions & 93 deletions .github/e2e/nexus/install.sh

This file was deleted.

130 changes: 0 additions & 130 deletions .github/workflows/.e2e-run.yml

This file was deleted.

Loading