-
Notifications
You must be signed in to change notification settings - Fork 43
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
Reduce number of tutorial rebuilds that CI performs #354
Comments
One approach that could be used is to create a hash for each demo project and store it every time a demo is processed. A task could then be added to I see two options on how to do this:
While option (1) would be preferable from an automation standpoint, it seems that it would necessitate allowing Travis to update the The second option requires contributors to remember to run the update task and, therefore, will be prone to human error. The impact of failing to do this would be small, however, since Travis would just conduct unnecessary processing. While this does waste time, it does not introduce the possibility of publishing the site with out of date artifacts. This option should be pursued if no acceptable way is found to fully automate the verification and update process. |
If the processing and hash updates are done as part of a contributor-driven task, it could be preceded by the task that zips up each demo to simplify the creation of the hashes. |
Using the .zip files won't work since the file changes each time, presumably due to metadata that is stored in the zip file (time of archiving, etc.). Instead, I am going to use a directly walker that concatenates the hash for each file and hashes the final result. This should be just about as fast and doesn't add too much complexity. |
When dojo.io is published, it currently verifies every tutorial demo by installing the dependencies and building them. This has the effect of making the deployment times very long and ties up multiple Travis build jobs while this work is done. With the coming of the web-editor (ref #93) this situation promises to get worse since the web-editor needs each tutorial have its dependencies installed (again) in order to export it in the format that the editor needs.
The build should be made more intelligent so that unchanged tutorial demos are not re-tested and exported.
The text was updated successfully, but these errors were encountered: