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

Provide pre-commit checks to ensure everything is likely to work #7

Open
1 of 2 tasks
SorraTheOrc opened this issue Jan 19, 2018 · 5 comments
Open
1 of 2 tasks
Assignees
Labels
Priority 0 (will address) Pull requests welcome, failing that we will get to this ASAP.
Milestone

Comments

@SorraTheOrc
Copy link
Contributor

SorraTheOrc commented Jan 19, 2018

We can provide a bunch of pre-commit checks to catch common errors and, in some cases, provide scripts to help.

  • Build a script to check the deploy, visualize, nested template and script URLs - reject commit if they don't match the git branch
    • This also needs to be run on pre-merge via the web UI, otherwise we run the risk of master not having the correct values
  • Build a script to automatically update the deploy, visualize, nested template and script URLs - reject commit if they don't match the git branch
@SorraTheOrc SorraTheOrc added the Priority 0 (will address) Pull requests welcome, failing that we will get to this ASAP. label Jan 19, 2018
@SorraTheOrc SorraTheOrc self-assigned this Jan 19, 2018
@SorraTheOrc
Copy link
Contributor Author

@hosungsmsft you might appreciate the script in PR #7. It's not wired into pre-commit yet, but it is faster than manually checking.

@hosungsmsft
Copy link

@rgardler yes, and I was looking at your PR for review, but you already merged. I didn't understand in your script why the current branch is not embedded in the variable SCRIPT_LOCATION (contrast to BASE_TEMPLATE_URL), and you are comparing the BASE_TEMPLATE_URL with the scriptLocation value? Are they bugs?

@SorraTheOrc
Copy link
Contributor Author

SorraTheOrc commented Jan 19, 2018 via email

@hosungsmsft
Copy link

No worries, and you know I made an embarrassing bug myself (which I think led you to craft this), and fixing it urgently... Let me fix these bugs over the weekend, with broken links in other documentation. I'm right now fixing the Apache template blunder... :(

@hosungsmsft
Copy link

#13 fixes the script bugs mentioned above.

@SorraTheOrc SorraTheOrc added this to the v1.2 milestone Jan 24, 2018
venu-sivanadham pushed a commit that referenced this issue Apr 1, 2021
* Update install_moodle.sh

* Update azuredeploy-migration.json

* reverted moodle base path

* .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority 0 (will address) Pull requests welcome, failing that we will get to this ASAP.
Projects
None yet
Development

No branches or pull requests

2 participants