@milabench/bujang 0.1.23 → 0.1.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@milabench/bujang",
3
- "version": "0.1.23",
3
+ "version": "0.1.25",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -130,7 +130,7 @@ const exportedConstants = (script: string): Record<string, string> => {
130
130
  /** The label a job will get (resolve_label of the server): its own, its nearest group's or its script's, `{NAME}` filled */
131
131
  const resolvedLabel = (job: Extract<PipelineNode, { type: 'job' }>, inherited: string | undefined, script: string | undefined): string => {
132
132
  const values: Record<string, string> = { ...exportedConstants(script ?? ''), ...(job.env ?? {}) };
133
- const template = job.label || inherited || values.BUJANG_JOB_LABEL || values.JR_JOB_LABEL || '';
133
+ const template = job.label || inherited || values.BUJANG_JOB_LABEL || '';
134
134
  return template.replace(/\{([A-Za-z_][A-Za-z0-9_]*)\}/g, (all, name: string) => String(values[name] ?? all)).split(/\s+/).filter(Boolean).join(' ').slice(0, 200);
135
135
  };
136
136