Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
f11f6ea
#363: Updated models
Oct 27, 2025
428047e
#363: Updated modules and tests
Nov 22, 2025
d511bfe
Squashed commit of the following:
Nov 22, 2025
5df40af
#363: Updated test module
Nov 23, 2025
0b607b0
#363: Added `Hexadecimal` Validator for String
Nov 24, 2025
52c3b06
#363: Updated dependencies due to docker bug
Nov 24, 2025
13ea895
#363: Removed old DTOs
Nov 24, 2025
eaed2aa
#363: Deleted duplicate `DummyTestData`
Nov 24, 2025
3aab5e7
#363: Fixed broken infrastructure-test
Nov 24, 2025
1b65dc5
#363: Fixed broken infrastructure-cli test
Nov 24, 2025
6361fa3
#363: Fixed broken domain test
Nov 24, 2025
7a8414e
#363: Made all domain objects subtype of `AbstractDomainObject`
Nov 26, 2025
2a8ed93
#363: Updated domain
Dec 6, 2025
bddf56a
#363: Removed duplicated bash scripts
Dec 9, 2025
b1ff246
#363: Replaced user with more specific Stakeholder/Developer
Dec 9, 2025
7006a81
#363: Updated rust lib
Dec 9, 2025
cbcb7ce
#363: Updated ffi module for new domain
Dec 9, 2025
601cd7b
chore(ffi): update native libs + Kotlin bindings [skip ci]
github-actions[bot] Dec 9, 2025
096358e
#363: Fixed cli tests
Dec 9, 2025
fbc2636
#363: Fixed arangodb tests
Dec 9, 2025
dbcbb61
#363: Updated cli/VcsService
Dec 9, 2025
60e40b8
#363: Moved dummy data to `binocular.domain.data`
Dec 9, 2025
c8297d7
#363: Introduced `AbstractInfrastructurePort` for Arangodb
Dec 9, 2025
2816035
#363: Added missing @MappingSession annotations
Dec 9, 2025
5a95ae9
#363: Dropped old database cleanup for `web` module
Dec 9, 2025
2bb6a74
#363: Added rudimentary README for running tests
Dec 9, 2025
a23fc3f
#363: Updated domain tests
Dec 9, 2025
a5bc67a
#363: Refactored config
Dec 9, 2025
1779ea1
#363: Fixing pipeline
Dec 9, 2025
f3b48fe
#363: Added config processor for cli args
Dec 9, 2025
ed47b38
#363: Fixing pipeline
Dec 9, 2025
c888092
#363: Fixing pipeline
Dec 9, 2025
387940d
#363: Fixing pipeline
Dec 9, 2025
e02c399
#363: Fixing pipeline
Dec 9, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
12 changes: 6 additions & 6 deletions .github/workflows/backend-fast.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,15 +87,15 @@ jobs:

- name: Install dependencies
run: |
mvn clean install -DskipTests --pl ${{ matrix.module }} --am -Psql
mvn clean install -DskipTests --pl ${{ matrix.module }} --am

- name: Run tests for module ${{ matrix.module }}
run: |
mvn $MAVEN_CLI_OPTS test --pl ${{ matrix.module }} -Dspring.profiles.active=test,gix,sql,postgres -Psql
mvn $MAVEN_CLI_OPTS test --pl ${{ matrix.module }}

- name: Surefire report for module ${{ matrix.module }}
if: always()
run: mvn $MAVEN_CLI_OPTS surefire-report:report-only --pl ${{ matrix.module }} -am -Dspring.profiles.active=test,gix,sql,postgres -Psql
run: mvn $MAVEN_CLI_OPTS surefire-report:report-only --pl ${{ matrix.module }} -am

- name: Upload surefire report
if: always()
Expand Down Expand Up @@ -146,18 +146,18 @@ jobs:

- name: Install dependencies
run: |
mvn clean install -DskipTests --pl ${{ matrix.module }} --am -Parangodb
mvn clean install -DskipTests --pl ${{ matrix.module }} --am

- name: Run tests for module ${{ matrix.module }}
run: |
ARANGODB_HOST=localhost \
mvn $MAVEN_CLI_OPTS test --pl ${{ matrix.module }} -Dspring.profiles.active=test,nosql,arangodb -Parangodb
mvn $MAVEN_CLI_OPTS test --pl ${{ matrix.module }}

- name: Surefire report for module ${{ matrix.module }}
if: always()
run: |
ARANGODB_HOST=localhost \
mvn $MAVEN_CLI_OPTS surefire-report:report-only --pl ${{ matrix.module }} -am -Dspring.profiles.active=test,nosql,arangodb -Parangodb
mvn $MAVEN_CLI_OPTS surefire-report:report-only --pl ${{ matrix.module }} -am

- name: Upload surefire report
if: always()
Expand Down
6 changes: 6 additions & 0 deletions binocular-backend-new/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Binocular Backend

## Requirements
- Docker running in the background, otherwise tests will fail (tests in `infrastructure-sql/arangodb/tests` use TestContainers internally)

© INSO/BUSY 09/2025
34 changes: 33 additions & 1 deletion binocular-backend-new/cli/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,13 @@
<artifactId>domain</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.inso-world.binocular</groupId>
<artifactId>domain</artifactId>
<version>${project.version}</version>
<scope>test</scope>
<classifier>tests</classifier>
</dependency>
<dependency>
<groupId>com.inso-world.binocular</groupId>
<artifactId>ffi</artifactId>
Expand All @@ -80,6 +87,11 @@
<scope>test</scope>
</dependency>
<!--Non binocular below -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.springframework.shell</groupId>
<artifactId>spring-shell-starter</artifactId>
Expand Down Expand Up @@ -123,7 +135,8 @@
</dependency>
<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>postgresql</artifactId>
<artifactId>testcontainers-postgresql</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<!-- this one is required for testcontainers! -->
Expand Down Expand Up @@ -163,6 +176,25 @@
<plugin>all-open</plugin>
</compilerPlugins>
</configuration>
<executions>
<execution>
<id>kapt</id>
<goals>
<goal>kapt</goal>
</goals>
<configuration>
<sourceDirs>
<sourceDir>${project.basedir}/src/main/kotlin</sourceDir>
</sourceDirs>
<annotationProcessorPaths>
<annotationProcessorPath>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
</annotationProcessorPath>
</annotationProcessorPaths>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ package com.inso_world.binocular.cli.commands
import com.inso_world.binocular.cli.service.ProjectService
import com.inso_world.binocular.cli.service.RepositoryService
import com.inso_world.binocular.cli.service.VcsService
import jakarta.validation.constraints.NotEmpty
import jakarta.validation.constraints.NotNull
import org.slf4j.Logger
import org.slf4j.LoggerFactory
import org.springframework.beans.factory.annotation.Autowired
Expand All @@ -24,27 +26,23 @@ open class Index(
private var logger: Logger = LoggerFactory.getLogger(Index::class.java)
}

@Command(command = ["hello"], description = "Hello World")
fun helloWorld() {
// BinocularFfi().hello()
}

@Command(command = ["commits"])
open fun commits(
@Option(longNames = ["repo_path"], required = false) repoPath: String?,
repoPath: String,
@Option(
longNames = ["branch"],
shortNames = ['b'],
required = true,
) branchName: String,
) @NotNull @NotEmpty branchName: String,
@Option(
longNames = ["project_name"],
shortNames = ['n'],
required = true,
description = "Custom name of the project.",
) projectName: String,
) @NotNull @NotEmpty projectName: String,
) {
val path = repoPath?.let { Paths.get(it).toRealPath() }
val path = repoPath.let { Paths.get(it).toRealPath() }
logger.trace(">>> index($path, $branchName)")
logger.debug("Project '$projectName'")
val project = this.projectService.getOrCreateProject(projectName)
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
package com.inso_world.binocular.cli.config

import org.springframework.boot.context.properties.ConfigurationProperties
import com.inso_world.binocular.core.BinocularConfig
import org.springframework.context.annotation.Configuration

@Configuration
@ConfigurationProperties(prefix = "binocular")
class BinocularCliConfiguration {
lateinit var index: IndexConfig
lateinit var archive: ArchiveConfig
internal class BinocularConfiguration : BinocularConfig() {
lateinit var cli: CliConfig
}

class IndexConfig(
val path: String,
class CliConfig(
val index: IndexConfig
)

class ScmConfig(
val path: String
)

class ArchiveConfig(
val path: String? = null,
class IndexConfig(
val scm: ScmConfig
)

This file was deleted.

This file was deleted.

This file was deleted.

Loading
Loading