Skip to content

Commit b77b0f1

Browse files
authored
Merge pull request #439 from pixlise/fixes
Fixes
2 parents 0fd60aa + 8a46ebb commit b77b0f1

File tree

11 files changed

+18
-18
lines changed

11 files changed

+18
-18
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ jobs:
7676
- name: Setup Go
7777
uses: actions/setup-go@v3
7878
with:
79-
go-version: "1.21.0"
79+
go-version: "1.22.0"
8080
- name: Start MongoDB
8181
uses: supercharge/mongodb-github-action@1.10.0
8282
with:
@@ -125,7 +125,7 @@ jobs:
125125
- name: Setup Go
126126
uses: actions/setup-go@v3
127127
with:
128-
go-version: "1.21.0"
128+
go-version: "1.22.0"
129129
- name: Print Version
130130
run: |
131131
echo "BUILDING VERSION ${{ needs.version.outputs.version }}"

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# KIND, either express or implied. See the License for the
1515
# specific language governing permissions and limitations
1616
# under the License.
17-
FROM golang:1.21-alpine AS builder
17+
FROM golang:1.22-alpine AS builder
1818
ARG VERSION
1919
ARG GITHUB_SHA
2020

api/dataimport/dataimportHelpers/beamLocation_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ func Example_parseBeamLocations() {
159159
}
160160

161161
// This is kind of redunant, was already tested elsewhere, but this is an easy point to add a file and run the test to make sure it imports!
162-
func Example_ReadBeamLocationsFile() {
162+
func Example_dataImportHelpers_ReadBeamLocationsFile() {
163163
rxl, pmcs, err := ReadBeamLocationsFile("./test-data/GeomCorrMoved.CSV", true, 4, []string{}, &logger.StdOutLoggerForTest{})
164164
fmt.Printf("%v\npmcs: %v\nrxl: %v\n", err, pmcs, len(rxl))
165165

api/dataimport/for-trigger_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ func Example_importForTrigger_Manual_SBU() {
471471
}
472472

473473
// Import a breadboard dataset from manual uploaded zip file
474-
func Example_ImportForTrigger_Manual_SBU_NoAutoShare() {
474+
func Example_dataimport_ImportForTrigger_Manual_SBU_NoAutoShare() {
475475
remoteFS, log, configBucket, datasetBucket, manualBucket, db := initTest("Manual_SBU_NoAutoShare", "Manual_OK2", specialUserIds.JPLImport, "JPLTestUserGroupId")
476476

477477
trigger := `{

api/dataimport/internal/converters/jplbreadboard/spectra_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ func Example_makeBulkMaxSpectra() {
168168
// [3]=meta [DETECTOR_ID:B/s LIVETIME:9.75/f OFFSET:50/f PMC:3/i READTYPE:MaxValue/s SOURCEFILE:GeneratedByPIXLISEConverter/s XPERCHAN:40/f] spectrum [21 22 23]
169169
}
170170

171-
func Example_EVCalibrationOverride() {
171+
func Example_jplbreadboard_EVCalibrationOverride() {
172172
spectrumLookup := dataConvertModels.DetectorSampleByPMC{
173173
1: []dataConvertModels.DetectorSample{
174174
dataConvertModels.DetectorSample{

api/dataimport/internal/importerutils/contextImages_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import (
2424
"github.com/pixlise/core/v4/core/logger"
2525
)
2626

27-
func Example_GetContextImagesPerPMCFromListing() {
27+
func Example_importerutils_GetContextImagesPerPMCFromListing() {
2828
listing := []string{"../datasets/FM_5x5/P13177_5x5_190602/hk.txt", "../datasets/FM_5x5/P13177_5x5_190602/0612747347_000001C5_005048.jpg", "../datasets/FM_5x5/P13177_5x5_190602/0612756313_000001C5_005651.jpg", "../datasets/FM_5x5/P13177_5x5_190602/.DS_Store", "../datasets/FM_5x5/P13177_5x5_190602/0612744373_000001C5_004847.jpg", "../datasets/FM_5x5/P13177_5x5_190602/0612735422_000001C5_004244.jpg", "../datasets/FM_5x5/P13177_5x5_190602/0612758681_000001C5_005807.jpg", "../datasets/FM_5x5/P13177_5x5_190602/0612741400_000001C5_004646.jpg", "../datasets/FM_5x5/P13177_5x5_190602/hk_data.csv", "../datasets/FM_5x5/P13177_5x5_190602/0612732390_000001C5_004042.jpg", "../datasets/FM_5x5/P13177_5x5_190602/0612750353_000001C5_005249.jpg", "../datasets/FM_5x5/P13177_5x5_190602/0612738397_000001C5_004445.jpg", "../datasets/FM_5x5/P13177_5x5_190602/0612753334_000001C5_005450.jpg"}
2929
results := GetContextImagesPerPMCFromListing(listing, &logger.StdOutLogger{})
3030

api/dataimport/pre-import_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import (
2828
)
2929

3030
// Trigger for a manual dataset regeneration (user clicks save button on dataset edit page)
31-
func Example_ProcessEM() {
31+
func Example_dataimport_ProcessEM() {
3232
p := "./test-data/PreImport/20240805_EM_V8.2_ATP_Test_65_A_Day_in_the_Life.zip"
3333
zFile, err := os.ReadFile(p)
3434

api/job/runner/runner_test.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,23 @@ import (
99
"github.com/pixlise/core/v4/core/fileaccess"
1010
)
1111

12-
func Example_RunJob_NoConfig() {
12+
func Example_jobrunner_RunJob_NoConfig() {
1313
os.Setenv(JobConfigEnvVar, "")
1414
fmt.Printf("%v\n", RunJob(false))
1515

1616
// Output:
1717
// JOB_CONFIG env var not set
1818
}
1919

20-
func Example_RunJob_BadConfig() {
20+
func Example_jobrunner_RunJob_BadConfig() {
2121
os.Setenv(JobConfigEnvVar, "{ \"Some\": \"unfinished JSON }")
2222
fmt.Printf("%v\n", RunJob(false))
2323

2424
// Output:
2525
// Failed to parse env var JOB_CONFIG: unexpected end of JSON input
2626
}
2727

28-
func Example_RunJob_NoCommand() {
28+
func Example_jobrunner_RunJob_NoCommand() {
2929
cfg := JobConfig{
3030
JobId: "Job001",
3131
}
@@ -44,7 +44,7 @@ func Example_RunJob_NoCommand() {
4444
// Job: No command specified
4545
}
4646

47-
func Example_RunJob_BadInputLocalPath() {
47+
func Example_jobrunner_RunJob_BadInputLocalPath() {
4848
cfg := JobConfig{
4949
JobId: "Job001",
5050
RequiredFiles: []JobFilePath{{LocalPath: "", RemoteBucket: "test-piquant", RemotePath: "jobs/Job001/input.csv"}},
@@ -68,7 +68,7 @@ func Example_RunJob_BadInputLocalPath() {
6868
// Job: No localPath specified
6969
}
7070

71-
func Example_RunJob_BadInputRemotePath() {
71+
func Example_jobrunner_RunJob_BadInputRemotePath() {
7272
cfg := JobConfig{
7373
JobId: "Job001",
7474
RequiredFiles: []JobFilePath{{LocalPath: "input.csv", RemoteBucket: "test-piquant", RemotePath: "jobs/Job001/input.csv"}},
@@ -93,7 +93,7 @@ func Example_RunJob_BadInputRemotePath() {
9393
// Job: Failed to download s3://test-piquant/jobs/Job001/input.csv: Not found
9494
}
9595

96-
func Example_RunJob_UploadNotThere() {
96+
func Example_jobrunner_RunJob_UploadNotThere() {
9797
cfg := JobConfig{
9898
JobId: "Job001",
9999
Command: NoOpCommand,
@@ -121,7 +121,7 @@ func Example_RunJob_UploadNotThere() {
121121
// Job: Job Job001 failed to generate/upload output files: nofile.txt
122122
}
123123

124-
func Example_RunJob_DownloadUploadOK() {
124+
func Example_jobrunner_RunJob_DownloadUploadOK() {
125125
// Before we do anything, ensure the file is in S3
126126
sess, err := awsutil.GetSession()
127127
fmt.Printf("GetSession: %v\n", err)

api/memoisation/garbageCollection_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
"go.mongodb.org/mongo-driver/mongo/options"
1414
)
1515

16-
func Example_CollectGarbage() {
16+
func Example_memoisation_CollectGarbage() {
1717
db := wstestlib.GetDB()
1818
ctx := context.TODO()
1919
coll := db.Collection(dbCollections.MemoisedItemsName)

api/piquant/configuration_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package piquant
22

33
import "fmt"
44

5-
func Example_ReadFieldFromPIQUANTConfigMSA() {
5+
func Example_piquant_ReadFieldFromPIQUANTConfigMSA() {
66
piquantMSA := `##INCSR : 0.0152 Solid angle from source in steradians (can include normalization for optic file - use this for tuning 0.00355)
77
##INCANGLE : 90.00 Incident angle of primary X-ray beam in degrees (90 is normal incidence)
88
#ELEVANGLE : 48.03 Elevation angle of detector, in degrees (90 is normal to surface)

0 commit comments

Comments
 (0)