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

Bug 1335920 - support both $dumps and $json #2629

Merged
merged 1 commit into from
Jul 13, 2017

Conversation

djmitche
Copy link
Contributor

JSON-e defines {$json: ..}, and that's what the actions documentation
says, but Treeherder has been expecting $dumps, and the current
action.json files use $dumps. So this is the first step toward
migrating to the JSON-e standard: make TH accept both. Once this is
deployed, we can switch the in-tree code to generate $json. A little
while later, we can switch TH to use JSON-e instead.

Custom actions have been broken for a few months now (from March 1 until #2619 is deployed) so I am not much more worried than that about breaking things.

JSON-e defines `{$json: ..}`, and that's what the actions documentation
says, but Treeherder has been expecting `$dumps`, and the current
`action.json` files use `$dumps`.  So this is the first step toward
migrating to the JSON-e standard: make TH accept both.  Once this is
deployed, we can switch the in-tree code to generate `$json`.  A little
while later, we can switch TH to use JSON-e instead.
Copy link
Contributor

@edmorley edmorley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Plan sounds great - thank you :-)

@djmitche
Copy link
Contributor Author

Do things get deployed immediately on merge, or is there some way to tell when things are deployed?

@edmorley
Copy link
Contributor

edmorley commented Jul 13, 2017

The prototype (dev) and stage instances auto-deploy from master, prod is deployed by pushing master (or a chosen revision) to the production branch.

The current status of stage/prod are visible via the What's Deployed tool (linked from the Treeherder help menu) - here. Note at present the stage column is blank due to peterbe/whatsdeployed/issues/1, since @camd is testing a feature branch overnight - however that branch is rebased on top of latest master so does include your change.

Since everything looks fine with the various changes on master, I'll do a prod deploy now.

@edmorley
Copy link
Contributor

I've given you write access to the repo - feel free to merge when desired :-)

@edmorley
Copy link
Contributor

Since everything looks fine with the various changes on master, I'll do a prod deploy now.

I spotted an issue with a different PR on stage, so I've held off with the prod deploy for now. After this merges if that other issue isn't resolved I can always cherrypick this to prod if needed to expedite things.

@djmitche
Copy link
Contributor Author

I'm not in a rush, but thanks for the info and the access :)

@djmitche djmitche merged commit f19c8f7 into mozilla:master Jul 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants