Skip to content
Snippets Groups Projects
  1. May 29, 2024
    • Marc-Olivier Andrez's avatar
      ci: fix Go tests that internally check the version of a component · 65e7f0bf
      Marc-Olivier Andrez authored
      The CI job `test-services-linux-debug` executes the tests using CMake,
      including the Go tests. The command used to execute the Go tests is
      defined in `CMakeModules/testing_go.cmake` Ln14: `go test ${test_source_files}`.
      The `go test` command first compiles the tests and then run them.
      Compiling the tests needs the file
      `common/go/src/asapo_common/version/version_lib.go` to correctly define
       the versions of the different communication protocols and components:
      
      ```go
      package version
      
      // Default build-time variable for library-import.
      // This file is overridden on build with build-time informations.
      func init(){
      	version   = "100.0.wip-fix-tests, build 5100fbee"
      	consumerProtocolVersion = "v0.6"
      	producerProtocolVersion = "v0.6"
      	discoveryApiVersion = "v0.1"
      	authorizerApiVersion = "v0.2"
      	ftsApiVersion = "v0.2"
      	brokerApiVersion = "v0.6"
      }
      ```
      
      The file `common/go/src/asapo_common/version/version_lib.go` is
      generated when running CMake. So the file is generated in the CI job
      `build-services-linux-debug`, not in `test-services-linux-debug`.
      
      This commit ensures that the file is copied from the CI job
      `build-services-linux-debug` to the CI job `test-services-linux-debug`
      so that `go test` can use it when compiling and running the tests. If
      the file does not exist, `go test` won't be able to compile the tests.
      65e7f0bf
  2. May 17, 2024
  3. Apr 16, 2024
  4. Apr 15, 2024
  5. Jan 30, 2024
  6. Jan 16, 2024
  7. Dec 08, 2023
  8. Nov 30, 2023
  9. Nov 28, 2023
  10. Nov 01, 2023
  11. Sep 07, 2023
  12. Aug 28, 2023
  13. Oct 28, 2022
  14. Oct 20, 2022
  15. Oct 19, 2022
  16. Aug 12, 2022
  17. Aug 10, 2022
  18. Mar 18, 2022
  19. Mar 01, 2022
  20. Feb 15, 2022
  21. Feb 11, 2022
  22. Feb 07, 2022
  23. Jan 27, 2022
  24. Jan 24, 2022
  25. Jan 18, 2022
  26. Dec 16, 2021
  27. Dec 04, 2021
  28. Dec 03, 2021
  29. Dec 02, 2021
  30. Dec 01, 2021
  31. Nov 26, 2021
  32. Nov 24, 2021
Loading