Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Obsolete / Dead Code #1866

Closed
wants to merge 26 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
93fc875
Removes obsolete components and habitat-dev plans
jasonheath Jan 17, 2025
a7c6ef7
Removes test/builder-graph/
jasonheath Jan 28, 2025
14fec3d
Removes *bin Makefile targets as they only built builder-graph
jasonheath Jan 28, 2025
a01c8ef
Removes builder-api-graph.sh
jasonheath Jan 28, 2025
4047eee
Removes builder-{graph,jobsrv,worker} from verify pipeline
jasonheath Jan 28, 2025
6c82da5
Modifications removing jobsrv and worker items due to search for jobs…
jasonheath Jan 29, 2025
e05f22b
Removes merge-shards and cycle-tools
jasonheath Jan 29, 2025
36497c5
Removes build.ps1, run_clippy.ps1, and the shared.ps1 files
jasonheath Jan 29, 2025
5faa8ce
Removes post_habitat_release pipeline
jasonheath Jan 29, 2025
7c4c606
Removes tools/merge-databases
jasonheath Jan 29, 2025
736bdd5
Changes resulting from global search for worker
jasonheath Jan 29, 2025
fedf26f
Addresses shellcheck errors in .studiorc
jasonheath Jan 29, 2025
a124882
Removes references to busy_workers db table
jasonheath Jan 29, 2025
b6e21e4
Tears out a lot of 'job api and db stuff' from the code base, likely …
jasonheath Jan 29, 2025
0c95460
Restores habitat-dev plan files and shellchecks/shfmts the rest
jasonheath Feb 3, 2025
cbc70a2
Updates .envrc for shellcheck/shft
jasonheath Feb 3, 2025
e18b231
Updates builder-api init hook
jasonheath Feb 3, 2025
d923875
Updates .studiorc
jasonheath Feb 3, 2025
5a1d11c
Markdown lint and spellcheck of test/builder-api/README.md
jasonheath Feb 3, 2025
fcaa2d5
Removes references to job from and corrects a misspelling in api.raml
jasonheath Feb 3, 2025
d9c7e52
Removes features_enabled = "jobsrv" from builder-api default.toml
jasonheath Feb 4, 2025
9d1ad80
Small changes to test/builder-api/README.md
jasonheath Feb 4, 2025
cf4644b
Adds comments to functional tests that I want to double check after r…
jasonheath Feb 4, 2025
dbefc51
'Top Down' removal from components/builder-api
jasonheath Feb 14, 2025
196af34
Removes /rdeps/{origin}/{name}/group from api.raml
jasonheath Feb 18, 2025
33ea9af
Addresses failed rustfmt check
jasonheath Feb 20, 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
36 changes: 3 additions & 33 deletions .bldr.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
[builder-api-proxy]
plan_path = "components/builder-api-proxy/habitat"
paths = [
"components/builder-web/*",
]
paths = ["components/builder-web/*"]

[builder-api]
plan_path = "components/builder-api/habitat"
Expand All @@ -20,38 +18,10 @@ paths = [
[builder-datastore]
plan_path = "components/builder-datastore"

[builder-jobsrv]
plan_path = "components/builder-jobsrv/habitat"
paths = [
"components/builder-jobsrv/*",
"components/builder-core/*",
"components/builder-protocol/*",
"components/builder-db/*",
"support/ci/builder-base-plan.sh",
]

[builder-worker]
plan_path = "components/builder-worker/habitat"
paths = [
"components/builder-worker/*",
"components/builder-core/*",
"components/builder-protocol/*",
"support/ci/builder-base-plan.sh",
]
build_targets = [
"x86_64-windows",
"x86_64-linux",
"x86_64-linux-kernel2"
]

[builder-minio]
plan_path = "components/builder-minio/habitat"
paths = [
"components/builder-minio/*"
]
paths = ["components/builder-minio/*"]

[builder-memcached]
plan_path = "components/builder-memcached"
paths = [
"components/builder-memcached/*"
]
paths = ["components/builder-memcached/*"]
24 changes: 15 additions & 9 deletions .envrc
Original file line number Diff line number Diff line change
@@ -1,35 +1,41 @@
#!/bin/bash

export HAB_DOCKER_OPTS="-p 80:80 -p 9636:9636 -p 9631:9631 -p 9638:9638 -p 5432:5432"
export HAB_STUDIO_SUP="--auto-update"
export HAB_ORIGIN_KEYS
export HAB_ORIGIN="habitat"

if [ -d ~/.hab ]; then
HAB_CONFIG=~/.hab/etc/cli.toml
if [ -e "$HAB_CONFIG" ]; then
export HAB_AUTH_TOKEN=$(cat $HAB_CONFIG | grep "auth_token" | awk '{print $3}' | tr -d '"')
export HAB_ORIGIN=$(cat $HAB_CONFIG | grep "origin" | awk '{print $3}' | tr -d '"')
HAB_AUTH_TOKEN=$(cat $HAB_CONFIG | grep "auth_token" | awk '{print $3}' | tr -d '"')
HAB_ORIGIN=$(cat $HAB_CONFIG | grep "origin" | awk '{print $3}' | tr -d '"')
export HAB_AUTH_TOKEN HAB_ORIGIN
fi
if ls ~/.hab/cache/keys/*.sig.key 1> /dev/null 2>&1; then
if ls ~/.hab/cache/keys/*.sig.key 1>/dev/null 2>&1; then
HAB_ORIGIN_KEY_NAMES=$(find ~/.hab/cache/keys/*.sig.key -type f -exec basename {} \;)
for key in $HAB_ORIGIN_KEY_NAMES; do
HAB_ORIGIN_KEYS="$HAB_ORIGIN_KEYS ${key%-*}"
done
HAB_ORIGIN_KEYS=$(echo $HAB_ORIGIN_KEYS | tr ' ', ',')
HAB_ORIGIN_KEYS=$(echo "$HAB_ORIGIN_KEYS" | tr ' ', ',')
fi
else
HAB_CONFIG=/hab/etc/cli.toml
if [ -e "$HAB_CONFIG" ]; then
export HAB_AUTH_TOKEN=$(cat $HAB_CONFIG | grep "auth_token" | awk '{print $3}' | tr -d '"')
export HAB_ORIGIN=$(cat $HAB_CONFIG | grep "origin" | awk '{print $3}' | tr -d '"')
HAB_AUTH_TOKEN=$(cat $HAB_CONFIG | grep "auth_token" | awk '{print $3}' | tr -d '"')
HAB_ORIGIN=$(cat $HAB_CONFIG | grep "origin" | awk '{print $3}' | tr -d '"')
export HAB_AUTH_TOKEN HAB_ORIGIN
fi
if ls /hab/cache/keys/*.sig.key 1> /dev/null 2>&1; then
if ls /hab/cache/keys/*.sig.key 1>/dev/null 2>&1; then
HAB_ORIGIN_KEY_NAMES=$(find /hab/cache/keys/*.sig.key -type f -exec basename {} \;)
for key in $HAB_ORIGIN_KEY_NAMES; do
HAB_ORIGIN_KEYS="$HAB_ORIGIN_KEYS ${key%-*}"
done
HAB_ORIGIN_KEYS=$(echo $HAB_ORIGIN_KEYS | tr ' ', ',')
HAB_ORIGIN_KEYS=$(echo "$HAB_ORIGIN_KEYS" | tr ' ', ',')
fi
fi
if [ -n $HAB_ORIGIN ]; then

if [ -n "$HAB_ORIGIN" ]; then
HAB_ORIGIN_KEYS="${HAB_ORIGIN_KEYS},${HAB_ORIGIN}"
fi

Expand Down
2 changes: 0 additions & 2 deletions .expeditor/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ pipelines:
public: true
- release_builder:
description: Builder release process
- post_habitat_release:
description: "Tasks to be performed after a successful Habitat release"

staging_areas:
- release_staging:
Expand Down
40 changes: 0 additions & 40 deletions .expeditor/post_habitat_release.pipeline.yml

This file was deleted.

9 changes: 0 additions & 9 deletions .expeditor/scripts/generate_bootstrap_bundle.sh
Original file line number Diff line number Diff line change
Expand Up @@ -129,15 +129,6 @@ hab pkg download \
# `core-hab-launcher-${VERSION}-${RELEASE}-x86_64-linux.hart`, etc.
hab_hart () {
local pkg_target=${1:-x86_64-linux}
# Until habitat/builder-worker is part of our release pipeline,
# it's likely that we will end up with more than one `core/hab`
# artifact: one from the release, and the previous one, brought in
# by habitat/builder-worker (because, until that's automated, it
# won't have been updated to depend on the new one yet!)
#
# Once this is no longer the case, you can remove the warning
# comment at the declaration of `${this_bootstrap_bundle}`.
#
# The `sort` invocation will sort the output of `find` by the
# release timestamp, and then take the most recent one (i.e., the
# last)
Expand Down
42 changes: 0 additions & 42 deletions .expeditor/scripts/post_habitat_release/build_worker.ps1

This file was deleted.

51 changes: 0 additions & 51 deletions .expeditor/scripts/post_habitat_release/build_worker.sh

This file was deleted.

75 changes: 0 additions & 75 deletions .expeditor/scripts/post_habitat_release/cargo_update.sh

This file was deleted.

This file was deleted.

22 changes: 0 additions & 22 deletions .expeditor/scripts/post_habitat_release/shared.ps1

This file was deleted.

Loading