Skip to content

Commit

Permalink
Need the job package to be public
Browse files Browse the repository at this point in the history
  • Loading branch information
gvallee committed Feb 1, 2021
1 parent 9dea2cd commit ddab3fe
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 11 deletions.
4 changes: 2 additions & 2 deletions pkg/jm/jm.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) 2019, Sylabs Inc. All rights reserved.
// Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.
// Copyright (c) 2020-2021, NVIDIA CORPORATION. All rights reserved.
// This software is licensed under a 3-clause BSD license. Please consult the
// LICENSE.md file distributed with the sources of this project regarding your
// rights to use or distribute this software.
Expand All @@ -14,8 +14,8 @@ import (
"path/filepath"

"github.com/gvallee/go_exec/pkg/advexec"
"github.com/gvallee/go_hpc_jobmgr/internal/pkg/job"
"github.com/gvallee/go_hpc_jobmgr/internal/pkg/sys"
"github.com/gvallee/go_hpc_jobmgr/pkg/job"
"github.com/gvallee/go_util/pkg/util"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/jm/jm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ package jm
import (
"testing"

"github.com/gvallee/go_hpc_jobmgr/internal/pkg/job"
"github.com/gvallee/go_hpc_jobmgr/internal/pkg/sys"
"github.com/gvallee/go_hpc_jobmgr/pkg/job"
"github.com/gvallee/go_util/pkg/util"
)

Expand Down
3 changes: 2 additions & 1 deletion pkg/jm/jobmgr_native.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright (c) 2019, Sylabs Inc. All rights reserved.
// Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
// This software is licensed under a 3-clause BSD license. Please consult the
// LICENSE.md file distributed with the sources of this project regarding your
// rights to use or distribute this software.
Expand All @@ -11,8 +12,8 @@ import (
"strconv"

"github.com/gvallee/go_exec/pkg/advexec"
"github.com/gvallee/go_hpc_jobmgr/internal/pkg/job"
"github.com/gvallee/go_hpc_jobmgr/internal/pkg/sys"
"github.com/gvallee/go_hpc_jobmgr/pkg/job"
"github.com/gvallee/go_hpc_jobmgr/pkg/mpi"
)

Expand Down
3 changes: 2 additions & 1 deletion pkg/jm/jobmgr_prun.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright (c) 2019, Sylabs Inc. All rights reserved.
// Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
// This software is licensed under a 3-clause BSD license. Please consult the
// LICENSE.md file distributed with the sources of this project regarding your
// rights to use or distribute this software.
Expand All @@ -11,8 +12,8 @@ import (
"os/exec"

"github.com/gvallee/go_exec/pkg/advexec"
"github.com/gvallee/go_hpc_jobmgr/internal/pkg/job"
"github.com/gvallee/go_hpc_jobmgr/internal/pkg/sys"
"github.com/gvallee/go_hpc_jobmgr/pkg/job"
)

// Prun is the structure representing the native job manager (i.e., directly use mpirun)
Expand Down
4 changes: 2 additions & 2 deletions pkg/jm/jobmgr_slurm.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) 2019, Sylabs Inc. All rights reserved.
// Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.
// Copyright (c) 2020-2021, NVIDIA CORPORATION. All rights reserved.
// This software is licensed under a 3-clause BSD license. Please consult the
// LICENSE.md file distributed with the sources of this project regarding your
// rights to use or distribute this software.
Expand All @@ -16,9 +16,9 @@ import (
"strings"

"github.com/gvallee/go_exec/pkg/advexec"
"github.com/gvallee/go_hpc_jobmgr/internal/pkg/job"
"github.com/gvallee/go_hpc_jobmgr/internal/pkg/slurm"
"github.com/gvallee/go_hpc_jobmgr/internal/pkg/sys"
"github.com/gvallee/go_hpc_jobmgr/pkg/job"
"github.com/gvallee/go_hpc_jobmgr/pkg/mpi"
"github.com/gvallee/go_util/pkg/util"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/jm/jobmgr_slurm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ import (
"strings"
"testing"

"github.com/gvallee/go_hpc_jobmgr/internal/pkg/job"
"github.com/gvallee/go_hpc_jobmgr/internal/pkg/sys"
"github.com/gvallee/go_hpc_jobmgr/pkg/job"
)

var partition = flag.String("partition", "", "Name of Slurm partition to use to run the test")
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion pkg/launcher/launcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ import (

"github.com/gvallee/go_exec/pkg/advexec"
"github.com/gvallee/go_exec/pkg/results"
"github.com/gvallee/go_hpc_jobmgr/internal/pkg/job"
"github.com/gvallee/go_hpc_jobmgr/internal/pkg/sys"
"github.com/gvallee/go_hpc_jobmgr/pkg/jm"
"github.com/gvallee/go_hpc_jobmgr/pkg/job"
"github.com/gvallee/go_hpc_jobmgr/pkg/mpi"
)

Expand Down
4 changes: 2 additions & 2 deletions pkg/launcher/launcher_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ import (
"os/exec"
"testing"

"github.com/gvallee/go_hpc_jobmgr/internal/pkg/job"
"github.com/gvallee/go_hpc_jobmgr/pkg/jm"
"github.com/gvallee/go_hpc_jobmgr/pkg/job"
)

var partition = flag.String("partition", "", "Name of Slurm partition to use to run the test")
Expand All @@ -42,7 +42,7 @@ func TestSlurmLaunch(t *testing.T) {
defer os.RemoveAll(sysCfg.ScratchDir)

if jobmgr.ID != jm.SlurmID {
t.Fatalf("Slurm not available, skipping")
t.Skipf("Slurm not available, skipping")
}

res, execRes := Run(&j, nil, &jobmgr, &sysCfg, nil)
Expand Down

0 comments on commit ddab3fe

Please sign in to comment.