~bryce/+git/oci-dev-tools:wait-retry

Last commit made on 2021-05-10
Get this branch:
git clone -b wait-retry https://git.launchpad.net/~bryce/+git/oci-dev-tools
Only Bryce Harrington can upload to this branch. If you are Bryce Harrington please log in for upload directions.

Branch merges

Branch information

Name:
wait-retry
Repository:
lp:~bryce/+git/oci-dev-tools

Recent commits

2aca61f... by Bryce Harrington

Clarify docs for the show command

70564c0... by Bryce Harrington

Document the list command

5456cde... by Bryce Harrington

Refactor build req loading logic to oci_build_request_from_config()

b7e03bd... by Bryce Harrington

Refactor to use Lp object to define launchpad URLs

Instead of hardcoding the launchpad.net url everywhere, use static
parameters from the Lp object.

1ce858c... by Bryce Harrington

Refactor oci recipe loading logic to oci_recipe_from_config()

The build and show commands had duplicative logic for loading the oci
recipe from Launchpad using config parameters. Extract this into a
common oci_recipe_from_config() function.

9e901f1... by Bryce Harrington

Add --debug to enable debugging

28a0a83... by Bryce Harrington

Implement screenscraping of build request id's

7223ba0... by Bryce Harrington

Detect if image has push rules, and only wait on uploads if it does

a006123... by Bryce Harrington

Fix wait command to detect state changes properly

The code had been assuming a build request in state 'Completed' meant
that the entire build process was completed, whereas the behavior we see
in practice suggests 'Completed' just means the request itself was
handled by starting all the necessary builds.

So, we need to track the status of each of the builds, as well as
tracking the status of each of the subsequent uploads. This also
permits giving the user some clearer feedback about what's going on.

Unfortunately, the various status values provided by Launchpad aren't
documented, so we're making assumptions about what the various failed
and pending state tags actually mean, and may need to refine the
behavior once we see some of these states in practice.

e26e1ca... by Bryce Harrington

Note the bs4 dependency