Skip to content
This repository was archived by the owner on Mar 18, 2024. It is now read-only.

Add CI build and fix conflict #115

Merged
merged 1 commit into from
Feb 26, 2024
Merged

Add CI build and fix conflict #115

merged 1 commit into from
Feb 26, 2024

Conversation

erikbosch
Copy link
Contributor

@erikbosch erikbosch commented Feb 23, 2024

This is a proposal for a simple sanity check of vissv2server. It will run on pull requests for changes in selected repos and all merges. It will just check that we can build and run to get help.

In https://github.com/w3c/automotive-viss2/pull/115/checks you can check output

Note: I got an error on duplicate "s" when running, seems like a merge regression. Did a work around but should likely be fixed in a different way

Signed-off-by: Erik Jaegervall <[email protected]>
@@ -794,7 +794,7 @@ func main() {
vssJson := parser.String("", "vssJson", &argparse.Options{Required: false, Help: "path and name vssPathlist json file", Default: "../vsspathlist.json"})
stateDB := parser.Selector("s", "statestorage", []string{"sqlite", "redis", "apache-iotdb", "none"}, &argparse.Options{Required: false,
Help: "Statestorage must be either sqlite, redis, apache-iotdb, or none", Default: "redis"})
historySupport := parser.Flag("s", "history", &argparse.Options{Required: false, Help: "Support for historic data requests", Default: false})
historySupport := parser.Flag("j", "history", &argparse.Options{Required: false, Help: "Support for historic data requests", Default: false})
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@slawr @UlfBj

When trying to run vissv2server I got an error, which seemed to depend that we have "s" both here and on line 795 above. Seems to be a merge regression as both lines were added/changed regularly. I chnaged to "j" here to just get something unique, maybe you can propose something better.

pull_request:
branches: [ master ]
paths:
- ".github/workflows/vissv2server-build.yml"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This indicates the branches/files that trigger a build for a PR. Maybe more should be added. As the build is quite quick one could alternatively remove the path criteria so that it build for all PRs.

@UlfBj UlfBj merged commit bb55ae9 into w3c:master Feb 26, 2024
1 check passed
@UlfBj
Copy link
Collaborator

UlfBj commented Feb 26, 2024

Thank you for fixing my bugs in parallel.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants