mirror of
https://github.com/Azure/k8s-deploy.git
synced 2026-06-29 08:19:26 +08:00
v4 new release (#224)
* Add missing API switch for GHES (#200) * Vidya reddy/prettier code (#203) * switch none deployment strategy to basic (#204) * switch none deployment strategy to basic * update readme * update deployment strategy fallthrough logic * comment fixed * add disclaimer for basic strategy only supporting deploy action * Hari/beautify logs (#206) * Logging changes for deploy * Logging Changes with group * format check changes * Add ncc build to build script (#208) Co-authored-by: Vidya Reddy <vidyareddy@microsoft.com> * Logging Changes for Promote, Reject actions (#207) * add clean function (#211) * Added Traffic split annotations (#215) * Added Traffic split annotations * traffic split - blueGreen deployment * traffic split - canary deployment * Traffic split annotations - canary deployment * updated Readme and action.yml * Traffic split - canary deployment * clean code * Clean code * Clean code * Create annotation object * Updated Readme and action.yml * Spelling correction Co-authored-by: Vidya Reddy <vidyareddy@microsoft.com> * Swap annotation key to actions.github.com prefix (#216) * Private Cluster functionality (#214) * Fixed Blue/Green Strategy Ingress Route-Method Glitch (#217) * Added some tests, not sure what else to try but gonna think of more examples * forgot some files * reverted package-lock.json * Added empty dir test * Cleaned up some extra spaces * Add node modules and compiled JavaScript from main * forgot to actually include functionality * removed unnecessary files * Update .gitignore * Update .gitignore * Update .gitignore * thx david * renamed searchFilesRec * integrations test fix * added examples to README * added note about depth * added additional note * removed ticks * changed version string * removed conflict on readme * Added tests for bluegreen helper and resolved issue with ingress not being read correctly, still have to figure out why new services aren't showing up * resolved services name issue * looks functional, beginning refactor now * refactored deploy methods for type error * Removed refactor comments * prettier * implemented Oliver's feedback * prettier * added optional chaining operator * removed refactor comment Co-authored-by: Jaiveer Katariya <jaiveerkatariya@Jaiveers-MacBook-Pro.local> Co-authored-by: Oliver King <oking3@uncc.edu> Co-authored-by: Jaiveer Katariya <jaiveerkatariya@Jaiveers-MBP.lan> * Add node modules and compiled JavaScript from main Co-authored-by: nv35 <76777923+nv35@users.noreply.github.com> Co-authored-by: Vidya <59590642+Vidya2606@users.noreply.github.com> Co-authored-by: David Gamero <david340804@gmail.com> Co-authored-by: Hariharan Subramanian <105889062+hsubramanianaks@users.noreply.github.com> Co-authored-by: Vidya Reddy <vidyareddy@microsoft.com> Co-authored-by: Oliver King <oking3@uncc.edu> Co-authored-by: Marcus-Hines <marcus.chris.hines@gmail.com> Co-authored-by: Jaiveer Katariya <35347859+jaiveerk@users.noreply.github.com> Co-authored-by: Jaiveer Katariya <jaiveerkatariya@Jaiveers-MacBook-Pro.local> Co-authored-by: Jaiveer Katariya <jaiveerkatariya@Jaiveers-MBP.lan>
This commit is contained in:
committed by
GitHub
parent
497ce6351c
commit
4e60e959ea
+16
-7
@@ -8,6 +8,7 @@ const { ReportBase } = require('istanbul-lib-report');
|
||||
class LcovOnlyReport extends ReportBase {
|
||||
constructor(opts) {
|
||||
super();
|
||||
opts = opts || {};
|
||||
this.file = opts.file || 'lcov.info';
|
||||
this.projectRoot = opts.projectRoot || process.cwd();
|
||||
this.contentWriter = null;
|
||||
@@ -28,11 +29,15 @@ class LcovOnlyReport extends ReportBase {
|
||||
const summary = node.getCoverageSummary();
|
||||
const path = require('path');
|
||||
|
||||
writer.println('TN:'); //no test nam
|
||||
writer.println('SF:' + path.relative(this.projectRoot, fc.path));
|
||||
writer.println('TN:');
|
||||
const fileName = path.relative(this.projectRoot, fc.path);
|
||||
writer.println('SF:' + fileName);
|
||||
|
||||
Object.values(functionMap).forEach(meta => {
|
||||
writer.println('FN:' + [meta.decl.start.line, meta.name].join(','));
|
||||
// Some versions of the instrumenter in the wild populate 'loc'
|
||||
// but not 'decl':
|
||||
const decl = meta.decl || meta.loc;
|
||||
writer.println('FN:' + [decl.start.line, meta.name].join(','));
|
||||
});
|
||||
writer.println('FNF:' + summary.functions.total);
|
||||
writer.println('FNH:' + summary.functions.covered);
|
||||
@@ -50,10 +55,14 @@ class LcovOnlyReport extends ReportBase {
|
||||
|
||||
Object.entries(branches).forEach(([key, branchArray]) => {
|
||||
const meta = branchMap[key];
|
||||
const { line } = meta.loc.start;
|
||||
branchArray.forEach((b, i) => {
|
||||
writer.println('BRDA:' + [line, key, i, b].join(','));
|
||||
});
|
||||
if (meta) {
|
||||
const { line } = meta.loc.start;
|
||||
branchArray.forEach((b, i) => {
|
||||
writer.println('BRDA:' + [line, key, i, b].join(','));
|
||||
});
|
||||
} else {
|
||||
console.warn('Missing coverage entries in', fileName, key);
|
||||
}
|
||||
});
|
||||
writer.println('BRF:' + summary.branches.total);
|
||||
writer.println('BRH:' + summary.branches.covered);
|
||||
|
||||
Reference in New Issue
Block a user