Currently we have over 1500 active herald rules. Over 1000 of them are global.
- Queries
- All Stories
- Search
- Advanced Search
- Transactions
- Transaction Logs
Advanced Search
Oct 15 2015
I know this is closed, but I wanted to add how I eventually solved it. I paid more attention to my error logs (nginx), and noticed I had a permission issue. I have "wwwrun" as the nginx user, but I forgot to check /var/lib/nginx ownership; it was owned by nginx.
CircleCI still isn't running builds for me so I can't reasonably do step 4 (the webhook part) tonight. Presumably they'll be back up by tomorrow and I can finish this up.
Yeah it works for us to just kill it in arc unit for now, we're stuck a few weeks behind master for the time being so an upstream fix wouldn't help us immediately anyways.
| Command | Now | Require --everything | Check Parent Workflow |
|---|---|---|---|
| arc diff | Runs Tests | No Tests | No Tests |
| arc unit | Runs Tests | No Tests | Runs Tests |
| arc unit --everything | Runs Tests | Runs Tests | Runs Tests |
The test engine can figure out if --everything is present or not but I don't think it can reach up to the workflow object right now. So you can disable arc unit as a sub-step of arc diff, but not without also disabling arc unit when run without --everything.
So I guess yes? You're saying implement this in the test engine?
We have our own build step which just runs arc unit --everything --coverage --ugly in a working copy and then deals with the exit code and json returned.
We can use a branch name like "zzz_harbormaster" or something so the console doesn't clutter up too much.
Is running arc unit interactively ever desirable? Can you either disconnect the integration entirely, or have it no-op if the --everything flag is not present (if you rely on --target for build integration)?
Right. If you put it on multiple devices, we can't choose a single identity when you try to do anything with that key. I don't actually remember why we're even allowing that at all and suspect it's some legacy stuff from an early draft that no longer makes any sense.
So it's fine to reuse a key across multiple hosts which are registering as the same Almanac device, but I shouldn't reuse that key for different Almanac devices?
Quotes also don't work in Ponder.
No, it's more like this:
Oh... so a single instance can register as more than one Almanac device?
I guess that my question here is two-fold:
Yes, that works! It looks like it takes an object of one of these forms PHID-DREV-xxxx (a revision), PHID-DIFF-xxxx (a specific diff in that revision), or a PHID-HMBB-xxxx (a buildable).
Sorry, I don't quite follow...
I think I just configured remarkup.ignored-object-names wrong when I added S3, should be OK now going forward.
Try the diff PHID -- $diff->getPHID()?
Thanks, in the last option, what kind of thing should I pass into harbormaster.queryautotargets for the objectPHID? If I leave it blank I get
{"result":null,"error_code":"ERR-CONDUIT-CORE","error_info":"No such object \"\" exists."}My request was
{
"targetKeys": [
"arcanist.unit"
]
}WOWWWWWW! *happy dance*
So if I set that up to push a tag, will that be guaranteed to be on the remote before the build starts?
@epriestley: I tested your command on our instance of CircleCI and can confirm that it properly ran the build! It's a little weird because the build is listed under the branch "loldoesnotexist". Multiple builds to that same non-existent branch then will all sort of stack up there.
haha
sorry I broke CircleCI ;_;
It's the Bitcoin miner isn't it
You broke it
Oh, it's actually been ~down for ~4 hours? Roughly since I touched it earlier this afternoon. o.O
Specifically, this is workable because requests like this are handled in a desirable way (note loldoesnotexist branch, which does not exist):
Here's the specific flow that I think is workable:
@epriestley, @dpaola2: Yes! CircleCI is very branch-oriented, because it was built from the ground up to work well with Github Pull Requests. Across our codebases, we've tried a number of integrations:
Okay, it looks like we can pass any ref-like thing as revision and pretty much whatever we want as branch, and branch is just completely ignored if revision is present, so building tags isn't an issue. We should be able to do a proper integration here cleanly.
We don't have any integration yet of Phabricator with CircleCI. We do have Github + CircleCI which runs CI for every push to every branch. (E.g. https://circleci.com/gh/remind101/empire)
oh
You can currently configure a "Staging Area", which will cause arc diff to push to a tag in an arbitrary remote as a side effect. I generally think this is a better way forward than pushing to named branches in the "real" remote, because it doesn't imply an end state where your remote has "master", "develop", and a million named branches that you can't get rid of. T8092 and linked tasks discuss eventually moving beyond this and virtualizing these refs so they're invisible to users but visible to the build system (for hosted repositories), but just using a different remote is approximately as good today.
Oct 14 2015
It looks like that code isn't interacting with Harbormaster at all and is making an HTTP request to Changes directly from inside a Herald action. We (fairly strongly) discourage this as a way to communicate with external systems (see T5462 for discussion/rationale -- it's synchronous and blocks the UI, error handling can't happen properly, and there's no way to retry if it fails). There is no build target available during the execution of Herald actions and I can't really come up with a reasonable way to generate one.
Thanks -- it's hugely helpful to know that Phabricator already merges coverage!
My last comment overlapped with your response, so I've removed it. The solution you've suggested might be workable. I'd have to see how it works in practice.
Phabricator is not a good fit for your workflow, then, and never will be.
For example, here's a reasonable way you might perform these changes:
Increasing max_allowed_packet to a much larger number (say, 512MB) will likely resolve the 2013 error.
At my company, every revision has a corresponding branch, which, when pushed to our origin remote, kicks off a CircleCI build.
How much time does one allocate to reviewing that many lines of code? What are they looking for?
33554432
What is max_allowed_packet set to in MySQL?
Attempt to connect to root@localhost failed with error #2013: Lost connection to MySQL server at 'reading initial communication packet' is the first sign of trouble in the Apache error log. The change set is in the order of ~250K lines.
Differential just can't load the change set into its database.
Ok, perhaps I haven't stated my problem too well, apologies for this.
Yes, with caveats. See T7148 for discussion of why this is complex. Roughly, here's the state of the world today:
For those of you using CircleCI, what sort of integration are you hoping for?
Progress here:
It's just this thing, basically:
Can I make it look better, or something?