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

StatesCurrentDiscoverCmd and StatesDesiredDiscoverCmd should include an entry for each item spec, even if the state cannot be looked up #91

Closed
azriel91 opened this issue Mar 11, 2023 · 0 comments · Fixed by #105

Comments

@azriel91
Copy link
Owner

Steps to reproduce

  1. Run StatesDiscoverCmd for a Flow, where an item spec's current / desired state cannot be looked up due to a predecessor state not being available.

Expected outcome

The number of states presented matches the number of item specs in the graph, and hence is always consistent.

Actual outcome

Item specs' whose state cannot be discovered are not listed:

<!-- 4 current states -->
1. `iam_policy`: does not exist
2. `iam_role`: does not exist
3. `web_app_download`: `azriel91/web_app/0.1.1/web_app.tar` non-existent, ETag not yet determined
4. `web_app_extract`: 0 files

<!-- 3 desired states -->
1. `iam_policy`: /dev policy should exist
2. `iam_role`: /dev role should exist
3. `web_app_download`: `azriel91/web_app/0.1.1/web_app.tar` containing 6492160 bytes, ETag: "0x8DAEA1931AF89EE"

The web_app_extract desired state is not listed as it cannot determine how many files are in the tar file which has not been downloaded.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant