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

Modularization and cleaning of the glidein_startup.sh script #197

Open
wants to merge 159 commits into
base: master
Choose a base branch
from

Conversation

terranovafr
Copy link
Contributor

@terranovafr terranovafr commented Aug 11, 2022

In this pull request, I attach the current evolving draft of the modularization and cleaning of the glidein_startup.sh script.
Division in modules:

  • glidein_startup.sh: revised and reduced
  • glidein_cleanup.sh: functions regarding the glidein termination and cleanup
  • utils_*.sh: utility functions regarding * (crypto, io, signals, tarballs, params, xml)
  • utils_gs_*.sh: utility functions specific for the glidein_startup regarding * (filesystem, http, io, signals, tarballs)

Most relevant modifications:

  • local scope of some variables which were global but used only in that function
  • definition of the create_xml function for creating xml strings and print_header_line for printing header strings
  • grouped some code blocks in functions
  • added comments explaining for each function the arguments, global variables used, the returned values and the environment

terranovafr and others added 23 commits September 16, 2022 16:20
Some files' position has not been modified since it is expected to be found in certain positions inside the scripts.
Modified comments structure, moved the license on top, moved utils_tarballs.sh functions to glidein_startup.sh, and renamed some functions.
…p and utils_gs_signals) and adapted bats tests.
…tils_log and utils_xml) and adapted bats tests.
… original repo's modifications to the glidein_startup.sh script.
# Conflicts:
#	creation/web_base/glidein_cleanup.sh
#	creation/web_base/glidein_startup.sh
#	creation/web_base/utils_gs_filesystem.sh
#	test/bats/creation_web_base_glidein_cleanup.bats
#	test/bats/creation_web_base_utils_gs_filesystem.bats
…) from the modules to glidein_startup.sh and re-adapted bats tests.
@mambelli
Copy link
Contributor

mambelli commented Oct 5, 2022

Better rebase os this PR: mambelli#12

@namrathaurs namrathaurs modified the milestones: 3.11.0, 3.11.1 Feb 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rel:3.11.0 Release label for v3.11.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants