We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
files not the source_root will go into check pending [maybe this isn't a good place]
if (branch.source_root && record.path.indexOf(branch.source_root) !== 0) { return check_pending(); };
and the pending_records is ALWAYS decremented [it should not be]
pending_records
--pending_records
when it hits zero [and it will eventually because pending never got incremented] it calls the callback of process_records
_.once(cb((errors_seen.length > 0) ? errors_seen : null));
the errorless callback will setLastProcessedRef for each file that is not in
exports.setLastProcessedRef(branch, ref, function(err) { return cb(err); });
Each setLastProcessedRef will make an api call.
exports.setLastProcessedRef = function(branch, ref, cb) { write_content_to_consul(create_key_name(branch, branch.name + '.ref', true), ref, cb); };
NOTE: though well-intented, the _.once() two blocks up doesn't actually stop this call.
_.once()
I have a quick local fix limiting the files coming in. within lib/git/commands.js (and relevant caller)
lib/git/commands.js
exports.listAllFiles = function(cwd, source_root, cb) { run_command('git ls-tree --name-status -r HEAD', cwd, function(err, output) { /* istanbul ignore if */ if (err) return cb(err); var records = []; var files = output.split('\n'); files.forEach(function(file) { // this condition added. if (source_root && file.indexOf(source_root) !== 0) { return; }; records.push({'type': 'M', 'path': file}); }); cb(null, records); }); };
But, I'm hoping someone has fixed/will fix the pending counter.
The text was updated successfully, but these errors were encountered:
This is a good idea also.
if (branch.source_root && record.path.indexOf(branch.source_root) !== 0) { // return check_pending(); return; };
Sorry, something went wrong.
No branches or pull requests
files not the source_root will go into check pending [maybe this isn't a good place]
and the
pending_records
is ALWAYS decremented [it should not be]when it hits zero [and it will eventually because pending never got incremented] it calls the callback of process_records
the errorless callback will setLastProcessedRef for each file that is not in
Each setLastProcessedRef will make an api call.
NOTE: though well-intented, the
_.once()
two blocks up doesn't actually stop this call.I have a quick local fix limiting the files coming in. within
lib/git/commands.js
(and relevant caller)But, I'm hoping someone has fixed/will fix the pending counter.
The text was updated successfully, but these errors were encountered: