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

Implement automation for archival snapshots #428

Draft
wants to merge 41 commits into
base: main
Choose a base branch
from

Conversation

sudo-shashank
Copy link
Contributor

@sudo-shashank sudo-shashank commented Mar 26, 2024

Summary of changes
Changes introduced in this pull request:

Reference issue to close (if applicable)

Closes #414

Other information and links

@sudo-shashank sudo-shashank marked this pull request as ready for review April 1, 2024 11:05
@sudo-shashank sudo-shashank requested a review from a team as a code owner April 1, 2024 11:05
@sudo-shashank sudo-shashank requested review from ruseinov and hanabi1224 and removed request for a team April 1, 2024 11:05
Copy link
Collaborator

@lemmih lemmih left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good start. There are a few things that need to be addressed:

  • The code appears to be fragile. If aws or ruby are missing, the code will fail silently. If there's an error in the script, the code will fail silently. If the snapshots aren't exported or uploaded correctly, the code will fail silently.
  • There are a lot of assumptions about Archie that aren't guaranteed to hold:
    • You can't assume aws is installed.
    • You can't assume forest is installed.
    • You can't assume a Forest node is running.
    • You can't assume Ruby is installed.

ansible/archival-snapshots/resources/diff_script.sh Outdated Show resolved Hide resolved
ansible/archival-snapshots/resources/init.sh Outdated Show resolved Hide resolved
ansible/archival-snapshots/resources/init.sh Outdated Show resolved Hide resolved
.github/workflows/deploy-archival-snapshots.yml Outdated Show resolved Hide resolved
.github/workflows/deploy-archival-snapshots.yml Outdated Show resolved Hide resolved
ansible/archival-snapshots/resources/init.sh Outdated Show resolved Hide resolved
@lemmih
Copy link
Collaborator

lemmih commented Apr 3, 2024

Also, please describe your solution/changes in the PR description.

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 this pull request may close these issues.

Automate archival snapshot uploads
3 participants