Skip to content

Commit

Permalink
Fix expectation, stabilize tests, add versioning section
Browse files Browse the repository at this point in the history
  • Loading branch information
merschformann committed Mar 15, 2024
1 parent f2e5f6c commit 7aed522
Show file tree
Hide file tree
Showing 11 changed files with 18 additions and 5 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,11 @@ nextmv community clone -a knapsack-gosdk

For further information on how to get started, features, deployment, etc.,
please refer to the [official documentation](https://docs.nextmv.io/docs/mixed-integer-programming).

## Versioning

We try our best to version our software thoughtfully and only break APIs and
behaviors when we have a good reason to.

* Minor (`v1.^.0`) tags: new features, might be breaking.
* Patch (`v1.0.^`) tags: bug fixes.
1 change: 1 addition & 0 deletions tests/incentive-allocation/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ func TestGolden(t *testing.T) {
},
TransientFields: []golden.TransientField{
{Key: ".version.sdk", Replacement: golden.StableVersion},
{Key: ".version.go-mip", Replacement: golden.StableVersion},
{Key: ".statistics.result.duration", Replacement: golden.StableFloat},
{Key: ".statistics.run.duration", Replacement: golden.StableFloat},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@
"schema": "v1"
},
"version": {
"go-mip": "v1.5.0-dev.2",
"go-mip": "VERSION",
"sdk": "VERSION"
}
}
1 change: 1 addition & 0 deletions tests/knapsack/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ func TestGolden(t *testing.T) {
},
TransientFields: []golden.TransientField{
{Key: ".version.sdk", Replacement: golden.StableVersion},
{Key: ".version.go-mip", Replacement: golden.StableVersion},
{Key: ".statistics.result.duration", Replacement: golden.StableFloat},
{Key: ".statistics.run.duration", Replacement: golden.StableFloat},
},
Expand Down
2 changes: 1 addition & 1 deletion tests/knapsack/testdata/template_input.json.golden
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
"schema": "v1"
},
"version": {
"go-mip": "v1.5.0-dev.2",
"go-mip": "VERSION",
"sdk": "VERSION"
}
}
1 change: 1 addition & 0 deletions tests/meal-allocation/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ func TestGolden(t *testing.T) {
},
TransientFields: []golden.TransientField{
{Key: ".version.sdk", Replacement: golden.StableVersion},
{Key: ".version.go-mip", Replacement: golden.StableVersion},
{Key: ".statistics.result.duration", Replacement: golden.StableFloat},
{Key: ".statistics.run.duration", Replacement: golden.StableFloat},
},
Expand Down
2 changes: 1 addition & 1 deletion tests/meal-allocation/testdata/template_input.json.golden
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"schema": "v1"
},
"version": {
"go-mip": "v1.5.0-dev.2",
"go-mip": "VERSION",
"sdk": "VERSION"
}
}
1 change: 1 addition & 0 deletions tests/shift-scheduling/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ func TestGolden(t *testing.T) {
},
TransientFields: []golden.TransientField{
{Key: ".version.sdk", Replacement: golden.StableVersion},
{Key: ".version.go-mip", Replacement: golden.StableVersion},
{Key: ".statistics.result.duration", Replacement: golden.StableFloat},
{Key: ".statistics.run.duration", Replacement: golden.StableFloat},
},
Expand Down
2 changes: 1 addition & 1 deletion tests/shift-scheduling/testdata/input.json.golden
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@
"schema": "v1"
},
"version": {
"go-mip": "v1.5.0-dev.2",
"go-mip": "VERSION",
"sdk": "VERSION"
}
}
1 change: 1 addition & 0 deletions tests/solve_control_parameters/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ func TestGolden(t *testing.T) {
},
TransientFields: []golden.TransientField{
{Key: ".version.sdk", Replacement: golden.StableVersion},
{Key: ".version.go-mip", Replacement: golden.StableVersion},
{Key: ".statistics.result.duration", Replacement: golden.StableFloat},
{Key: ".statistics.run.duration", Replacement: golden.StableFloat},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
"schema": "v1"
},
"version": {
"go-mip": "v1.5.0-dev.2",
"go-mip": "VERSION",
"sdk": "VERSION"
}
}

0 comments on commit 7aed522

Please sign in to comment.