The 1.18 rebase introduced context as a first-arg parameter to all API calls. This context needs to be created as close to the main process invocation point as possible, and then propagated to all go subroutines.
Note that we have existing issues with builds not gracefully terminating. This may help.