-
Notifications
You must be signed in to change notification settings - Fork 31
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
Add prout to DCR #9692
Add prout to DCR #9692
Conversation
Size Change: 0 B Total Size: 730 kB ℹ️ View Unchanged
|
7ef48e2
to
609e3c9
Compare
609e3c9
to
ee2f531
Compare
@@ -213,7 +217,7 @@ https://workforus.theguardian.com/careers/product-engineering/ | |||
} | |||
${ | |||
renderingTarget === 'Web' | |||
? `<meta name="theme-color" content="${brandBackground.primary}" />` | |||
? `<meta name="theme-color" content="${sourcePalette.brand[400]}" />` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[non-related change]
brandBackground
is deprecated so replacing with the equivalent colour in the non-deprecated palette
@@ -196,6 +197,9 @@ https://workforus.theguardian.com/careers/product-engineering/ | |||
? weAreHiringMessage | |||
: '<!-- Hello there, HTML enthusiast! -->' | |||
} | |||
|
|||
<!-- DCR commit hash ${GIT_COMMIT_HASH} --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Commit hash is directly embedded in the HTML
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, embedding the commit directly into the body of the response is always best, if you can, for making sure that Prout reflects what users are really seeing!
"CODE": { | ||
"url": "https://m.code.dev-theguardian.com/uk", | ||
"overdue": "30M" | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added CODE URL for monitoring initially but plan to remove later
ee2f531
to
28c9b78
Compare
28c9b78
to
1a29667
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A breath of fresh air!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Brilliant stuff!
Remember, the diagnostic page at https://prout-bot.herokuapp.com/view/guardian/dotcom-rendering will give helpful info once the PR is merged!
@@ -196,6 +197,9 @@ https://workforus.theguardian.com/careers/product-engineering/ | |||
? weAreHiringMessage | |||
: '<!-- Hello there, HTML enthusiast! -->' | |||
} | |||
|
|||
<!-- DCR commit hash ${GIT_COMMIT_HASH} --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, embedding the commit directly into the body of the response is always best, if you can, for making sure that Prout reflects what users are really seeing!
"overdue": "30M" | ||
}, | ||
"CODE": { | ||
"url": "https://m.code.dev-theguardian.com/uk", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Incidentally, have you deployed this to CODE? Did you see the hash?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep! Good news
https://m.code.dev-theguardian.com/uk?dcr does indeed show the commit hash corresponding to https://riffraff.gutools.co.uk/deployment/view/59010e8b-f34c-4f4f-9297-47a68aadf2bc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So I guess I can remove this CODE endpoint now 🥳
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll do this in a separate PR though ^ (I've waited around for checks to pass on this one for too long 😄 )
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://m.code.dev-theguardian.com/uk?dcr does indeed show the commit hash corresponding to https://riffraff.gutools.co.uk/deployment/view/59010e8b-f34c-4f4f-9297-47a68aadf2bc
Ah yeah, I see it!
Adds https://github.com/guardian/prout, to let us know when our changes don't ship as expected, or when they are ready to see in Production! Some other recents PRs enabling Prout on repos: * guardian/permissions#174 * guardian/dotcom-rendering#9692 https://www.theguardian.com/info/developer-blog/2015/feb/03/prout-is-your-pull-request-out
Adds [Prout](https://www.theguardian.com/info/developer-blog/2015/feb/03/prout-is-your-pull-request-out), to let us know when our changes don't ship as expected, or when they are ready to check in Production! This PR uses guardian/permissions#174 as a recent example of adding Prout, other examples include: * guardian/typerighter#465 * guardian/dotcom-rendering#9692
Adds [Prout](https://www.theguardian.com/info/developer-blog/2015/feb/03/prout-is-your-pull-request-out), to let us know when our changes don't ship as expected, or when they are ready to check in Production! This PR uses guardian/permissions#174 as a recent example of adding Prout, other examples include: * guardian/typerighter#465 * guardian/dotcom-rendering#9692
Adds [Prout](https://www.theguardian.com/info/developer-blog/2015/feb/03/prout-is-your-pull-request-out), to let us know when our changes don't ship as expected, or when they are ready to check in Production! This PR uses guardian/permissions#174 as a recent example of adding Prout, other examples include: * guardian/typerighter#465 * guardian/dotcom-rendering#9692
Adds [Prout](https://www.theguardian.com/info/developer-blog/2015/feb/03/prout-is-your-pull-request-out), to let us know when our changes don't ship as expected, or when they are ready to check in Production! This PR uses guardian/permissions#174 as a recent example of adding Prout, other examples include: * guardian/typerighter#465 * guardian/dotcom-rendering#9692
What does this change?
Adds prout config to DCR so that developers can know when their commits are in a production environment.
This PR is linked with #26721It should not need an additional
frontend
PRWhy?
Speeds up development and allows devs better visibility of when their work has reached prod.
A possible precursor to allowing merge queues in this repo