TruCol / Self-host-GitLab-CI-for-GitHub

Installs your own GitLab CI and runs it on all your GitHub repos, in a single command.
GNU Affero General Public License v3.0
4 stars 3 forks source link

Ensure the "Run CI on repo" works completely. #124

Closed a-t-0 closed 1 year ago

a-t-0 commented 1 year ago

The code seems to not take enough time to wait until a CI build result is obtained.

bash -c "source src/import.sh helper_github_modify.sh && get_build_status_repository_from_github"
bash -c "source src/import.sh src/CI/call_CI/run_ci_on_github_repo.sh && run_ci_on_github_repo hiveminds renamed_test_repo hiveminds"

Make sure it does wait and ensure the results are passed to the build status correctly.

a-t-0 commented 1 year ago
a-t-0 commented 1 year ago

Next up: improve verbosity of: push_commit_build_status_in_github_status_repo_to_github

a-t-0 commented 1 year ago

Write:

#######################################
# Loops over all the commit build status txts in the GitHub repository with the
# GitLab build statusses, and deletes all the txts with invalid build statusses.
# Then removes those from BOTH evaluated lists. And adds them to a "erroneous"
# list.
# 
# Local variables:
#  
# Globals:
#  
# Arguments:
#  
# Returns:
#  0 If function was evaluated succesfull.
# Outputs:
#  
#######################################
# Run with: 
# bash -c "source src/import.sh src/CI/call_CI/verify_build_statusses_are_valid.sh && assert_commit_build_status_txt_is_valid
delete_invalid_commit_txts(){
    echo "pass"
}

And then complete the remainder of the asserts, and implement those asserts to throw an error on invalid build statusses.