Skip to content

Conversation

@edragain2nd
Copy link
Contributor

@edragain2nd edragain2nd commented Dec 13, 2025

Summary by CodeRabbit

  • Chores

    • Added placeholder exposure for many additional command-line flags across salloc, sbatch, srun and related commands.
  • User-facing changes

    • Commands now report and ignore a broad set of unsupported flags, printing clear informational messages when those flags are supplied.

✏️ Tip: You can customize this high-level summary in your review settings.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Dec 13, 2025

Walkthrough

Adds many placeholder (not-implemented) exported CLI flag variables across calloc, cbatch, and crun; introduces filtering of unsupported cbatch script args and helper functions that print "not yet supported" messages for Slurm wrapper commands.

Changes

Cohort / File(s) Summary
Flag variable declarations (calloc)
internal/calloc/cmd.go
Adds exported string flags: FlagNTasks, FlagDependency, FlagMemPerCpu, FlagNoKill, FlagQuiet, FlagVerbose.
Flag variable declarations (cbatch)
internal/cbatch/cmd.go
Adds exported string flags (examples): FlagNTasks, FlagArray, FlagNoRequeue, FlagParsable, FlagGpusPerNode, FlagNTasksPerSocket, FlagSignal, FlagWckey, FlagCpuFreq, FlagDependency, FlagPriority, FlagMemPerCpu, FlagThreadsPerCore, FlagDistribution, FlagInput, FlagSocketsPerNode, FlagCoresPerSocket, FlagRequeue, FlagWait.
Flag variable declarations (crun)
internal/crun/cmd.go
Adds exported string flags: FlagNTasks, FlagMultiProg, FlagOversubscribe, FlagCpuBind, FlagDeadline, FlagWait, FlagMpi, FlagDependency, FlagVerbose, FlagError, FlagKillOnBadExit, FlagExtraNodeInfo, FlagNTasksPerCore, FlagConstraint.
cbatch arg filtering
internal/cbatch/cbatch.go
Adds FilterDummyArgs(args []CbatchArg) []CbatchArg to remove/report known-unsupported script flags and integrates it into ParseCbatchScript.
Slurm wrapper messages
internal/cwrapper/slurm.go
Adds PrintSrunIgnoreDummyArgsMessage, PrintSallocIgnoreDummyArgsMessage, PrintSbatchIgnoreArgsMessage and invokes them at command entry to emit "not yet supported" notices when related flags are set.

Sequence Diagram(s)

(omitted)

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly related PRs

  • Dev/licenses #194 — also adds exported CLI flag variables in internal/calloc/cmd.go; closely related to flag additions.

Suggested labels

enhancement

Suggested reviewers

  • RileyWen
  • Nativu5

Pre-merge checks and finishing touches

❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 7.14% which is insufficient. The required threshold is 80.00%. You can run @coderabbitai generate docstrings to improve docstring coverage.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'feat: Add not support args message' clearly summarizes the main change: adding messages for unsupported arguments across multiple command wrappers and packages.
✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 6

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between f32540e and 1a4d627.

📒 Files selected for processing (6)
  • internal/calloc/calloc.go (1 hunks)
  • internal/calloc/cmd.go (2 hunks)
  • internal/cbatch/cbatch.go (2 hunks)
  • internal/cbatch/cmd.go (2 hunks)
  • internal/crun/cmd.go (2 hunks)
  • internal/crun/crun.go (1 hunks)
🧰 Additional context used
🧬 Code graph analysis (6)
internal/calloc/calloc.go (3)
internal/calloc/cmd.go (6)
  • FlagNTasks (59-59)
  • FlagDependency (60-60)
  • FlagMemPerCpu (61-61)
  • FlagNoKill (62-62)
  • FlagQuiet (63-63)
  • FlagVerbose (64-64)
internal/cbatch/cmd.go (3)
  • FlagNTasks (70-70)
  • FlagDependency (79-79)
  • FlagMemPerCpu (83-83)
internal/crun/cmd.go (3)
  • FlagNTasks (65-65)
  • FlagDependency (72-72)
  • FlagVerbose (73-73)
internal/crun/crun.go (1)
internal/crun/cmd.go (14)
  • FlagNTasks (65-65)
  • FlagMultiProg (66-66)
  • FlagOversubscribe (67-67)
  • FlagCpuBind (68-68)
  • FlagDeadline (69-69)
  • FlagWait (70-70)
  • FlagMpi (71-71)
  • FlagDependency (72-72)
  • FlagVerbose (73-73)
  • FlagError (74-74)
  • FlagKillOnBadExit (75-75)
  • FlagExtraNodeInfo (76-76)
  • FlagNTasksPerCore (77-77)
  • FlagConstraint (78-78)
internal/cbatch/cmd.go (7)
internal/calloc/cmd.go (4)
  • RootCmd (66-77)
  • FlagNTasks (59-59)
  • FlagDependency (60-60)
  • FlagMemPerCpu (61-61)
internal/crun/cmd.go (4)
  • RootCmd (80-90)
  • FlagNTasks (65-65)
  • FlagDependency (72-72)
  • FlagWait (70-70)
internal/cqueue/cmd.go (1)
  • RootCmd (48-69)
internal/cinfo/cmd.go (1)
  • RootCmd (41-57)
internal/ccon/flags.go (1)
  • Flags (109-121)
internal/ccontrol/cmd.go (1)
  • FlagPriority (42-42)
internal/cacctmgr/cmd.go (1)
  • FlagPriority (86-86)
internal/cbatch/cbatch.go (1)
internal/cbatch/cmd.go (20)
  • FlagNTasks (70-70)
  • FlagArray (71-71)
  • FlagNoRequeue (72-72)
  • FlagParsable (73-73)
  • FlagGpusPerNode (74-74)
  • FlagNTasksPerSocket (75-75)
  • FlagWckey (77-77)
  • FlagCpuFreq (78-78)
  • FlagDependency (79-79)
  • FlagTasks (80-80)
  • FlagTasksPerNode (81-81)
  • FlagPriority (82-82)
  • FlagMemPerCpu (83-83)
  • FlagThreadsPerCore (84-84)
  • FlagDistribution (85-85)
  • FlagInput (86-86)
  • FlagSocketsPerNode (87-87)
  • FlagCoresPerSocket (88-88)
  • FlagRequeue (89-89)
  • FlagWait (90-90)
internal/calloc/cmd.go (2)
internal/crun/cmd.go (3)
  • FlagNTasks (65-65)
  • FlagDependency (72-72)
  • FlagVerbose (73-73)
internal/ccon/flags.go (1)
  • Flags (109-121)
internal/crun/cmd.go (1)
internal/calloc/cmd.go (3)
  • FlagNTasks (59-59)
  • FlagDependency (60-60)
  • FlagVerbose (64-64)

Copy link
Collaborator

@Nativu5 Nativu5 left a comment

Choose a reason for hiding this comment

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

最好打印到 stderr,这样不容易破坏用户逻辑

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 4

♻️ Duplicate comments (3)
internal/cbatch/cbatch.go (1)

361-417: LGTM—stderr output is correct.

The warnings are correctly emitted to stderr, addressing the past review comment. This ensures machine-parseable stdout (job IDs, JSON) remains uncontaminated.

internal/cbatch/cmd.go (2)

69-89: Several flag types should be bool instead of string.

Flags like FlagNoRequeue, FlagParsable, FlagRequeue, and FlagWait (lines 72, 73, 88, 89) are typically boolean in Slurm but are declared as string. This requires changing both the declaration here and the registration in internal/cwrapper/slurm.go lines 314-333.

See the review comment on internal/cwrapper/slurm.go lines 314-333 for the complete fix.


69-89: FlagSignal is declared but never registered.

FlagSignal (line 76) is declared but not registered in internal/cwrapper/slurm.go lines 314-333, so it won't be parsed from the command line.

Add registration in internal/cwrapper/slurm.go sbatch function:

 cmd.Flags().StringVar(&cbatch.FlagNTasksPerSocket, "ntasks-per-socket", "", "")
+cmd.Flags().StringVar(&cbatch.FlagSignal, "signal", "", "Not yet supported by Crane (ignored).")
 cmd.Flags().StringVar(&cbatch.FlagWckey, "wckey", "", "")

And add warning emission in internal/cbatch/cbatch.go around line 417:

 if FlagWait != "" {
     fmt.Fprintln(os.Stderr, "The feature --wait is not yet supported by Crane, the use is ignored.")
 }
+if FlagSignal != "" {
+    fmt.Fprintln(os.Stderr, "The feature --signal is not yet supported by Crane, the use is ignored.")
+}
📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 44adcdd and 557f739.

📒 Files selected for processing (3)
  • internal/cbatch/cbatch.go (2 hunks)
  • internal/cbatch/cmd.go (1 hunks)
  • internal/cwrapper/slurm.go (3 hunks)
🧰 Additional context used
🧬 Code graph analysis (2)
internal/cbatch/cbatch.go (2)
internal/cbatch/cmd.go (19)
  • FlagNTasks (70-70)
  • FlagArray (71-71)
  • FlagNoRequeue (72-72)
  • FlagParsable (73-73)
  • FlagGpusPerNode (74-74)
  • FlagNTasksPerSocket (75-75)
  • FlagWckey (77-77)
  • FlagCpuFreq (78-78)
  • FlagDependency (79-79)
  • FlagTasksPerNode (80-80)
  • FlagPriority (81-81)
  • FlagMemPerCpu (82-82)
  • FlagThreadsPerCore (83-83)
  • FlagDistribution (84-84)
  • FlagInput (85-85)
  • FlagSocketsPerNode (86-86)
  • FlagCoresPerSocket (87-87)
  • FlagRequeue (88-88)
  • FlagWait (89-89)
internal/ccontrol/cmd.go (1)
  • FlagPriority (42-42)
internal/cwrapper/slurm.go (3)
internal/cbatch/cmd.go (19)
  • FlagNTasks (70-70)
  • FlagDependency (79-79)
  • FlagMemPerCpu (82-82)
  • FlagArray (71-71)
  • FlagNoRequeue (72-72)
  • FlagParsable (73-73)
  • FlagGpusPerNode (74-74)
  • FlagNTasksPerSocket (75-75)
  • FlagWckey (77-77)
  • FlagCpuFreq (78-78)
  • FlagTasksPerNode (80-80)
  • FlagPriority (81-81)
  • FlagThreadsPerCore (83-83)
  • FlagDistribution (84-84)
  • FlagInput (85-85)
  • FlagSocketsPerNode (86-86)
  • FlagCoresPerSocket (87-87)
  • FlagRequeue (88-88)
  • FlagWait (89-89)
internal/crun/cmd.go (15)
  • FlagNTasks (65-65)
  • FlagDependency (72-72)
  • FlagVerbose (73-73)
  • FlagInput (44-44)
  • FlagWait (70-70)
  • FlagMultiProg (66-66)
  • FlagOversubscribe (67-67)
  • FlagCpuBind (68-68)
  • FlagDeadline (69-69)
  • FlagMpi (71-71)
  • FlagError (74-74)
  • FlagKillOnBadExit (75-75)
  • FlagExtraNodeInfo (76-76)
  • FlagNTasksPerCore (77-77)
  • FlagConstraint (78-78)
internal/calloc/cmd.go (6)
  • FlagNTasks (59-59)
  • FlagDependency (60-60)
  • FlagMemPerCpu (61-61)
  • FlagNoKill (62-62)
  • FlagQuiet (63-63)
  • FlagVerbose (64-64)
🔇 Additional comments (2)
internal/cwrapper/slurm.go (2)

236-242: Verify that warnings are emitted when these flags are used.

Ensure that calloc emits warnings to stderr when these not-yet-supported flags are provided, similar to how cbatch handles them in lines 361-417 of internal/cbatch/cbatch.go.

#!/bin/bash
# Check if calloc.go emits warnings for not-supported flags
rg -nP --type=go -C5 'FlagNTasks|FlagDependency|FlagMemPerCpu|FlagNoKill|FlagQuiet|FlagVerbose' internal/calloc/

709-723: Warnings are correctly emitted for all unsupported flags.

Verification confirms that crun properly emits warnings to stderr when these flags are provided. All 14 flags (ntasks, multi-prog, oversubscribe, cpu-bind, deadline, wait, mpi, dependency, verbose, error, kill-on-bad-exit, extra-node-info, ntasks-per-core, and constraint) have corresponding warning checks in internal/crun/crun.go (lines 1118–1159) that output "The feature --X is not yet supported by Crane, the use is ignored." The implementation matches the cbatch pattern and properly handles these not-yet-supported flags.

@Nativu5 Nativu5 requested a review from huerni December 15, 2025 14:05
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 2

♻️ Duplicate comments (3)
internal/cwrapper/slurm.go (3)

238-244: Add descriptive help text and fix flag types for boolean options.

These flags still have empty help text, and --no-kill, --quiet, and --verbose are boolean flags in Slurm but registered as StringVar. This issue was previously flagged but remains unresolved.

The current implementation forces users to pass values like --quiet=true instead of just --quiet, and makes the help output useless.

Please refer to the previous review comment for the recommended fix pattern. Note that changing to BoolVar requires updating the variable types in internal/calloc/cmd.go from string to bool.


316-334: Add descriptive help text and fix flag types for boolean options.

These flags have empty help text, and --no-requeue, --parsable, --requeue, and --wait are boolean flags but registered as StringVar. This issue was previously identified but not addressed.

Refer to the previous review comment for the fix pattern. Changing to BoolVar requires updating variable types in internal/cbatch/cmd.go.


710-724: Add descriptive help text and fix flag types for boolean options.

Empty help text and incorrect types for boolean flags (--oversubscribe, --verbose, --kill-on-bad-exit, --extra-node-info, --wait) were previously reported but remain unresolved.

See the earlier review comment for guidance. Variable types in internal/crun/cmd.go must be updated accordingly.

🧹 Nitpick comments (2)
internal/cwrapper/slurm.go (2)

741-784: Update logic when boolean flags are fixed.

This function currently checks string non-emptiness (!= ""), but when the flags are corrected to use BoolVar (as flagged in the earlier comments), these conditions must change to simply check the boolean value.

Example change needed after flag type fixes:

-	if crun.FlagVerbose != "" {
+	if crun.FlagVerbose {

Additionally, the three message-printing functions share substantial code duplication. Consider extracting a helper function that accepts a map of flag-value pairs and their corresponding messages.


786-805: Update logic when boolean flags are fixed.

When the flag types are changed to BoolVar, update the conditions from string checks to boolean checks.

Example:

-	if calloc.FlagQuiet != "" {
+	if calloc.FlagQuiet {
📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 4e107c2 and 1996810.

📒 Files selected for processing (2)
  • internal/cbatch/cbatch.go (1 hunks)
  • internal/cwrapper/slurm.go (7 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • internal/cbatch/cbatch.go
🧰 Additional context used
🧬 Code graph analysis (1)
internal/cwrapper/slurm.go (3)
internal/cbatch/cmd.go (18)
  • FlagNTasks (70-70)
  • FlagDependency (79-79)
  • FlagMemPerCpu (81-81)
  • FlagArray (71-71)
  • FlagNoRequeue (72-72)
  • FlagParsable (73-73)
  • FlagGpusPerNode (74-74)
  • FlagNTasksPerSocket (75-75)
  • FlagWckey (77-77)
  • FlagCpuFreq (78-78)
  • FlagPriority (80-80)
  • FlagThreadsPerCore (82-82)
  • FlagDistribution (83-83)
  • FlagInput (84-84)
  • FlagSocketsPerNode (85-85)
  • FlagCoresPerSocket (86-86)
  • FlagRequeue (87-87)
  • FlagWait (88-88)
internal/crun/cmd.go (15)
  • FlagNTasks (65-65)
  • FlagDependency (72-72)
  • FlagVerbose (73-73)
  • FlagInput (44-44)
  • FlagWait (70-70)
  • FlagMultiProg (66-66)
  • FlagOversubscribe (67-67)
  • FlagCpuBind (68-68)
  • FlagDeadline (69-69)
  • FlagMpi (71-71)
  • FlagError (74-74)
  • FlagKillOnBadExit (75-75)
  • FlagExtraNodeInfo (76-76)
  • FlagNTasksPerCore (77-77)
  • FlagConstraint (78-78)
internal/calloc/cmd.go (6)
  • FlagNTasks (59-59)
  • FlagDependency (60-60)
  • FlagMemPerCpu (61-61)
  • FlagNoKill (62-62)
  • FlagQuiet (63-63)
  • FlagVerbose (64-64)
🔇 Additional comments (2)
internal/cwrapper/slurm.go (2)

227-228: Placement of message function is appropriate.

The call to PrintSallocIgnoreDummyArgsMessage() is correctly positioned after flag parsing and before command execution, ensuring users see the warnings at the right time.


700-700: LGTM!

The placement of PrintSrunIgnoreDummyArgsMessage() is correct.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 2

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 1996810 and bca5bf8.

📒 Files selected for processing (2)
  • internal/cbatch/cbatch.go (1 hunks)
  • internal/cwrapper/slurm.go (7 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • internal/cwrapper/slurm.go
🧰 Additional context used
🧬 Code graph analysis (1)
internal/cbatch/cbatch.go (1)
internal/util/err.go (2)
  • WrapCraneErr (67-73)
  • ErrorCmdArg (36-36)

@Nativu5
Copy link
Collaborator

Nativu5 commented Dec 22, 2025

按照 AI 的意见修改下,以及能不能把这些参数隐藏到 Wrapper 里,不要让用户在使用鹤思自己的命令的时候产生困惑?

@Nativu5 Nativu5 changed the title feat: add not support args message feat: Add not support args message Dec 23, 2025
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

♻️ Duplicate comments (3)
internal/cwrapper/slurm.go (3)

238-244: Add descriptive help text and fix flag types for boolean options.

These issues were previously flagged but remain unaddressed:

  • Empty help text makes salloc --help output useless for these flags
  • --no-kill, --quiet, and --verbose are boolean flags in Slurm but registered as StringVar, requiring values like --quiet=true instead of just --quiet

As noted in the PR comments, consider whether these parameters should be hidden entirely to avoid user confusion when using CraneSched's own commands.

Based on past review feedback.


316-334: Fix critical flag shorthand syntax and address previously flagged issues.

Critical issue found:

  • Lines 325 and 334: Flag shorthands "-d" and "-W" should be "d" and "W" respectively. Cobra's StringVarP expects the shorthand without the leading dash. This will cause flag parsing to fail.

Additionally, these previously flagged issues remain unaddressed:

  • Empty help text makes sbatch --help output not useful
  • --no-requeue, --parsable, --requeue, and --wait should be boolean flags using BoolVar, not StringVar
🔎 Proposed fix for flag shorthand syntax
-	cmd.Flags().StringVarP(&cbatch.FlagDependency, "dependency", "-d", "", "")
+	cmd.Flags().StringVarP(&cbatch.FlagDependency, "dependency", "d", "", "")
-	cmd.Flags().StringVarP(&cbatch.FlagWait, "wait", "-W", "", "")
+	cmd.Flags().StringVarP(&cbatch.FlagWait, "wait", "W", "", "")

Based on past review feedback for the duplicate issues.


710-724: Add descriptive help text and fix flag types for boolean options.

These previously flagged issues remain unaddressed:

  • Empty help text makes srun --help output not useful
  • --oversubscribe, --verbose, --kill-on-bad-exit, --extra-node-info, and --wait should be boolean flags using BoolVar, not StringVar

As suggested in the PR comments, consider hiding these parameters to prevent confusion.

Based on past review feedback.

🧹 Nitpick comments (3)
internal/cwrapper/slurm.go (3)

741-784: Consider refactoring for maintainability and type safety.

The function correctly prints warnings to stderr, but has maintainability concerns:

  1. The repetitive structure (14 identical if-blocks) violates DRY principles
  2. The string comparison != "" works for current string types but will break if flags are changed to boolean (as recommended in other comments)
  3. The function is exported but only used within this package
🔎 Suggested refactor for better maintainability

After fixing flag types, consider a table-driven approach:

func PrintSrunIgnoreDummyArgsMessage() {
	type flagCheck struct {
		value   *string
		name    string
	}
	
	checks := []flagCheck{
		{&crun.FlagNTasks, "--ntasks/-n"},
		{&crun.FlagMultiProg, "--multi-prog"},
		// ... etc
	}
	
	for _, check := range checks {
		if *check.value != "" {
			fmt.Fprintf(os.Stderr, "The feature %s is not yet supported by Crane, the use is ignored.\n", check.name)
		}
	}
}

For boolean flags, use separate handling or a unified approach with interface{}.


786-805: Similar refactoring opportunity as PrintSrunIgnoreDummyArgsMessage.

This function has the same maintainability concerns noted for PrintSrunIgnoreDummyArgsMessage (lines 741-784): repetitive structure and type safety issues when flags are converted to boolean.


807-862: Consider consolidating all three Print functions.

This function (and the two similar ones at lines 741-784 and 786-805) follow an identical pattern. Consider consolidating them into a single parameterized function to eliminate code duplication across ~120 lines.

🔎 Suggested approach for consolidation

Create a generic helper:

func printIgnoredFlags(flags map[string]string) {
	for name, value := range flags {
		if value != "" {
			fmt.Fprintf(os.Stderr, "The feature %s is not yet supported by Crane, the use is ignored.\n", name)
		}
	}
}

func PrintSbatchIgnoreArgsMessage() {
	printIgnoredFlags(map[string]string{
		"--ntasks/-n": cbatch.FlagNTasks,
		"--array/-a": cbatch.FlagArray,
		// ... etc
	})
}

This reduces duplication and makes adding new flags simpler.

📜 Review details

Configuration used: defaults

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between bca5bf8 and 7e6c8fd.

📒 Files selected for processing (2)
  • internal/cbatch/cbatch.go
  • internal/cwrapper/slurm.go
🚧 Files skipped from review as they are similar to previous changes (1)
  • internal/cbatch/cbatch.go
🧰 Additional context used
🧬 Code graph analysis (1)
internal/cwrapper/slurm.go (3)
internal/calloc/cmd.go (6)
  • FlagNTasks (59-59)
  • FlagDependency (60-60)
  • FlagMemPerCpu (61-61)
  • FlagNoKill (62-62)
  • FlagQuiet (63-63)
  • FlagVerbose (64-64)
internal/cbatch/cmd.go (18)
  • FlagNTasks (70-70)
  • FlagDependency (79-79)
  • FlagMemPerCpu (81-81)
  • FlagArray (71-71)
  • FlagNoRequeue (72-72)
  • FlagParsable (73-73)
  • FlagGpusPerNode (74-74)
  • FlagNTasksPerSocket (75-75)
  • FlagWckey (77-77)
  • FlagCpuFreq (78-78)
  • FlagPriority (80-80)
  • FlagThreadsPerCore (82-82)
  • FlagDistribution (83-83)
  • FlagInput (84-84)
  • FlagSocketsPerNode (85-85)
  • FlagCoresPerSocket (86-86)
  • FlagRequeue (87-87)
  • FlagWait (88-88)
internal/crun/cmd.go (15)
  • FlagNTasks (65-65)
  • FlagDependency (72-72)
  • FlagVerbose (73-73)
  • FlagInput (44-44)
  • FlagWait (70-70)
  • FlagMultiProg (66-66)
  • FlagOversubscribe (67-67)
  • FlagCpuBind (68-68)
  • FlagDeadline (69-69)
  • FlagMpi (71-71)
  • FlagError (74-74)
  • FlagKillOnBadExit (75-75)
  • FlagExtraNodeInfo (76-76)
  • FlagNTasksPerCore (77-77)
  • FlagConstraint (78-78)
🔇 Additional comments (3)
internal/cwrapper/slurm.go (3)

227-228: Appropriate placement for user-facing warning.

The call to print ignored args is correctly placed early in the execution path, before validation and the actual command execution. This ensures users see the warning message immediately.


307-307: Function placement is correct.

The call to print ignored args is appropriately placed before command execution. The function name spelling is correct.


700-700: Appropriate placement for user warning.

The call is correctly placed to warn users early about ignored flags.

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