Skip to content

Feat/go debug#9

Merged
tosettil-polimi merged 11 commits intomasterfrom
feat/go-debug
Jun 17, 2025
Merged

Feat/go debug#9
tosettil-polimi merged 11 commits intomasterfrom
feat/go-debug

Conversation

@tosettil-polimi
Copy link

@tosettil-polimi tosettil-polimi commented Jun 17, 2025

Feat/go debug

This pull request introduces several improvements to the project, including updates to debugging configurations, dependency management, and infrastructure setup. Key changes are:

  1. .gitignore Update:

    • Added .hack/devnet/sqlite.db** to the .gitignore file to prevent SQLite database files from being tracked in the repository.
  2. VSCode Configuration Files:

    • Added a new README.md in the .vscode folder, providing detailed instructions for configuring and using the VSCode debugger with Assertoor, including dependencies (Go, Docker, Kurtosis CLI, yq, PostgreSQL Client).
    • Added launch.json to configure debugging options for the Go Assertoor project, with configurations for both clean and standard debug sessions.
    • Added tasks.json to define various tasks needed for the development setup, such as stopping and removing Kurtosis enclaves, cleaning databases, and running the devnet setup.
  3. Go Module Dependencies:

    • Added pgx/v5 as a PostgreSQL driver dependency for the Go project.
    • Updated go.mod and go.sum files to include new dependencies related to PostgreSQL, such as pgx, pgpassfile, pgservicefile, and puddle.
  4. Database Support:

    • Added support for PostgreSQL (pgx) in the common.go file, enhancing database interaction with a more robust driver for PostgreSQL databases.

These changes streamline the development and debugging setup, improve database handling, and ensure that temporary files and configurations are not accidentally committed to the repository.

This update introduces a new section detailing how to create and use custom devnet configurations for testing environments. It includes step-by-step instructions and an example configuration for setting up nodes, enabling additional services, and configuring parameters for Assertoor.
Updated task labels and commands in .vscode/tasks.json to improve clarity and functionality. Renamed "kurtosis-cleanup" to "kurtosis-stop" and separated the stop and remove commands into distinct tasks, ensuring that both commands handle errors gracefully with "|| true". This enhances the build process and task management.
Modified the launch configuration in .vscode/launch.json to specify the main Go program file directly. Additionally, removed obsolete parameters from .vscode/README.md to streamline the documentation and focus on relevant configuration details.
This update introduces a comprehensive section on creating and managing custom Assertoor configurations within the devnet setup. It details the configuration process, provides an example YAML file, and outlines common customizations, ensuring users can effectively override or extend default settings for their testing environments.
…or Go assertoor

Renamed the existing debug configuration to "Clean debug Go assertoor" and added a new configuration for debugging the main Go program. This enhances the development experience by providing clearer options for debugging.
…tosis CLI, yq, and PostgreSQL Client. This enhances setup guidance for users by providing detailed platform-specific installation commands.
Modified the database settings in README.md to switch from PostgreSQL to SQLite, reflecting the new default configuration. Updated tasks.json to rename the PostgreSQL cleanup task and added a new SQLite cleanup task, enhancing the development workflow for users working with SQLite databases.
@tosettil-polimi tosettil-polimi merged commit 1090cfc into master Jun 17, 2025
1 check failed
@tosettil-polimi tosettil-polimi deleted the feat/go-debug branch June 17, 2025 10:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant