Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Steinhardt <psteinhardt@gitlab.com>2022-07-18 13:18:18 +0300
committerPatrick Steinhardt <psteinhardt@gitlab.com>2022-07-18 13:18:18 +0300
commitc8e64964f24174f3204d2379e463912a8f110a23 (patch)
treee3bd30aa23b6053750c220de4906d17a0054332a
parent2ba30c8b1b5a428a645faf72881771af9a505ab2 (diff)
parent0af79b0ccfe13d49d4ef4c95bcaf73086f2b1db4 (diff)
Merge branch 'toon-sha256-tags' into 'master'
test: Allow running tests in sha256 mode Closes #4306 and #4305 See merge request gitlab-org/gitaly!4702
-rw-r--r--.gitlab-ci.yml7
-rw-r--r--Makefile5
-rw-r--r--auth/extract_test.go2
-rw-r--r--client/client_test.go2
-rw-r--r--client/dial_test.go2
-rw-r--r--client/pool_test.go2
-rw-r--r--cmd/gitaly-backup/create_test.go2
-rw-r--r--cmd/gitaly-backup/restore_test.go2
-rw-r--r--cmd/gitaly-backup/testhelper_test.go2
-rw-r--r--cmd/gitaly-git2go-v15/apply.go1
-rw-r--r--cmd/gitaly-git2go-v15/cherry_pick.go1
-rw-r--r--cmd/gitaly-git2go-v15/cherry_pick_test.go3
-rw-r--r--cmd/gitaly-git2go-v15/commit.go1
-rw-r--r--cmd/gitaly-git2go-v15/commit/change_file_mode.go1
-rw-r--r--cmd/gitaly-git2go-v15/commit/commit.go1
-rw-r--r--cmd/gitaly-git2go-v15/commit/create_directory.go1
-rw-r--r--cmd/gitaly-git2go-v15/commit/create_file.go1
-rw-r--r--cmd/gitaly-git2go-v15/commit/delete_file.go1
-rw-r--r--cmd/gitaly-git2go-v15/commit/move_file.go1
-rw-r--r--cmd/gitaly-git2go-v15/commit/update_file.go1
-rw-r--r--cmd/gitaly-git2go-v15/commit/validate.go1
-rw-r--r--cmd/gitaly-git2go-v15/conflicts.go1
-rw-r--r--cmd/gitaly-git2go-v15/conflicts_test.go3
-rw-r--r--cmd/gitaly-git2go-v15/featureflags.go1
-rw-r--r--cmd/gitaly-git2go-v15/main.go1
-rw-r--r--cmd/gitaly-git2go-v15/merge.go1
-rw-r--r--cmd/gitaly-git2go-v15/merge_test.go3
-rw-r--r--cmd/gitaly-git2go-v15/rebase.go1
-rw-r--r--cmd/gitaly-git2go-v15/rebase_test.go3
-rw-r--r--cmd/gitaly-git2go-v15/resolve_conflicts.go1
-rw-r--r--cmd/gitaly-git2go-v15/revert.go1
-rw-r--r--cmd/gitaly-git2go-v15/revert_test.go3
-rw-r--r--cmd/gitaly-git2go-v15/submodule.go1
-rw-r--r--cmd/gitaly-git2go-v15/submodule_test.go3
-rw-r--r--cmd/gitaly-git2go-v15/testhelper_test.go3
-rw-r--r--cmd/gitaly-git2go-v15/util.go1
-rw-r--r--cmd/gitaly-hooks/hooks_test.go2
-rw-r--r--cmd/gitaly-lfs-smudge/main_test.go2
-rw-r--r--cmd/gitaly-lfs-smudge/smudge_test.go2
-rw-r--r--cmd/gitaly-lfs-smudge/testhelper_test.go2
-rw-r--r--cmd/gitaly-ssh/auth_test.go2
-rw-r--r--cmd/gitaly-ssh/main_test.go2
-rw-r--r--cmd/gitaly-ssh/testhelper_test.go2
-rw-r--r--cmd/gitaly-ssh/upload_pack_test.go2
-rw-r--r--cmd/gitaly-wrapper/main_test.go2
-rw-r--r--cmd/gitaly-wrapper/testhelper_test.go2
-rw-r--r--cmd/praefect/main_test.go2
-rw-r--r--cmd/praefect/subcmd_accept_dataloss_test.go2
-rw-r--r--cmd/praefect/subcmd_check_test.go2
-rw-r--r--cmd/praefect/subcmd_dataloss_test.go2
-rw-r--r--cmd/praefect/subcmd_dial_nodes_test.go2
-rw-r--r--cmd/praefect/subcmd_list_storages_test.go2
-rw-r--r--cmd/praefect/subcmd_list_untracked_repositories_test.go2
-rw-r--r--cmd/praefect/subcmd_metadata_test.go2
-rw-r--r--cmd/praefect/subcmd_remove_repository_test.go2
-rw-r--r--cmd/praefect/subcmd_set_replication_factor_test.go2
-rw-r--r--cmd/praefect/subcmd_sql_migrate_test.go2
-rw-r--r--cmd/praefect/subcmd_test.go2
-rw-r--r--cmd/praefect/subcmd_track_repository_test.go2
-rw-r--r--cmd/praefect/subcmd_verify_test.go2
-rw-r--r--internal/backchannel/backchannel_example_test.go2
-rw-r--r--internal/backchannel/backchannel_test.go2
-rw-r--r--internal/backup/backup_test.go2
-rw-r--r--internal/backup/filesystem_sink_test.go2
-rw-r--r--internal/backup/lazy_test.go2
-rw-r--r--internal/backup/locator_test.go2
-rw-r--r--internal/backup/pipeline_test.go2
-rw-r--r--internal/backup/storage_service_sink_test.go2
-rw-r--r--internal/backup/testhelper_test.go2
-rw-r--r--internal/blackbox/config_test.go2
-rw-r--r--internal/bootstrap/bootstrap_test.go2
-rw-r--r--internal/bootstrap/starter/starter_test.go2
-rw-r--r--internal/bootstrap/testhelper_test.go2
-rw-r--r--internal/cache/diskcache_test.go2
-rw-r--r--internal/cache/testhelper_test.go2
-rw-r--r--internal/cache/walker_test.go2
-rw-r--r--internal/cgroups/cgroups_linux_test.go2
-rw-r--r--internal/cgroups/mock_linux_test.go2
-rw-r--r--internal/cgroups/v1.go1
-rw-r--r--internal/cgroups/v1_linux_test.go2
-rw-r--r--internal/command/command_test.go2
-rw-r--r--internal/command/stats_test.go2
-rw-r--r--internal/command/stderrbuffer_test.go2
-rw-r--r--internal/command/testhelper_test.go2
-rw-r--r--internal/dontpanic/retry_test.go2
-rw-r--r--internal/dontpanic/testhelper_test.go2
-rw-r--r--internal/git/catfile/cache_test.go2
-rw-r--r--internal/git/catfile/commit_test.go2
-rw-r--r--internal/git/catfile/object_info_reader_fuzz.go1
-rw-r--r--internal/git/catfile/object_info_reader_test.go2
-rw-r--r--internal/git/catfile/object_reader_test.go2
-rw-r--r--internal/git/catfile/parser_test.go2
-rw-r--r--internal/git/catfile/request_queue_test.go2
-rw-r--r--internal/git/catfile/tag_test.go2
-rw-r--r--internal/git/catfile/testhelper_test.go2
-rw-r--r--internal/git/checksum_test.go2
-rw-r--r--internal/git/command_description_test.go2
-rw-r--r--internal/git/command_factory_cgroup_test.go2
-rw-r--r--internal/git/command_factory_test.go2
-rw-r--r--internal/git/command_options_test.go2
-rw-r--r--internal/git/conflict/parser_test.go2
-rw-r--r--internal/git/decoder_test.go2
-rw-r--r--internal/git/dirs_test.go2
-rw-r--r--internal/git/execution_environment_test.go2
-rw-r--r--internal/git/fetch_scanner_test.go2
-rw-r--r--internal/git/gitio/hashfile_test.go2
-rw-r--r--internal/git/gitio/trailer_test.go2
-rw-r--r--internal/git/gitpipe/catfile_info_test.go2
-rw-r--r--internal/git/gitpipe/catfile_object_test.go2
-rw-r--r--internal/git/gitpipe/diff_tree_test.go2
-rw-r--r--internal/git/gitpipe/ls_tree_test.go2
-rw-r--r--internal/git/gitpipe/pipeline_test.go2
-rw-r--r--internal/git/gitpipe/revision_test.go2
-rw-r--r--internal/git/gitpipe/testhelper_test.go2
-rw-r--r--internal/git/gittest/command_test.go2
-rw-r--r--internal/git/gittest/commit.go4
-rw-r--r--internal/git/gittest/commit_test.go2
-rw-r--r--internal/git/gittest/intercepting_command_factory_test.go2
-rw-r--r--internal/git/gittest/ref_test.go2
-rw-r--r--internal/git/gittest/repo.go4
-rw-r--r--internal/git/gittest/sha1.go19
-rw-r--r--internal/git/gittest/sha256.go22
-rw-r--r--internal/git/gittest/testhelper_test.go2
-rw-r--r--internal/git/gittest/tree_test.go2
-rw-r--r--internal/git/helper_test.go2
-rw-r--r--internal/git/hooks_options_test.go2
-rw-r--r--internal/git/hooks_payload_test.go2
-rw-r--r--internal/git/housekeeping/clean_stale_data_test.go2
-rw-r--r--internal/git/housekeeping/objects_test.go2
-rw-r--r--internal/git/housekeeping/optimize_repository_ext_test.go2
-rw-r--r--internal/git/housekeeping/optimize_repository_test.go2
-rw-r--r--internal/git/housekeeping/worktrees_test.go2
-rw-r--r--internal/git/id_test.go2
-rw-r--r--internal/git/localrepo/config_test.go2
-rw-r--r--internal/git/localrepo/objects_test.go2
-rw-r--r--internal/git/localrepo/paths_test.go2
-rw-r--r--internal/git/localrepo/refs_test.go2
-rw-r--r--internal/git/localrepo/remote_extra_test.go2
-rw-r--r--internal/git/localrepo/remote_test.go2
-rw-r--r--internal/git/localrepo/repo_test.go2
-rw-r--r--internal/git/localrepo/testhelper_test.go2
-rw-r--r--internal/git/lstree/list_entries_test.go2
-rw-r--r--internal/git/lstree/parser_test.go2
-rw-r--r--internal/git/lstree/testhelper_test.go2
-rw-r--r--internal/git/objectpool/clone_test.go2
-rw-r--r--internal/git/objectpool/fetch_test.go2
-rw-r--r--internal/git/objectpool/link_test.go2
-rw-r--r--internal/git/objectpool/pool_test.go2
-rw-r--r--internal/git/objectpool/testhelper_test.go2
-rw-r--r--internal/git/packfile/packfile_test.go2
-rw-r--r--internal/git/pktline/pkt_line_test.go2
-rw-r--r--internal/git/pktline/read_monitor_test.go2
-rw-r--r--internal/git/protocol_test.go2
-rw-r--r--internal/git/quarantine/quarantine_test.go2
-rw-r--r--internal/git/quarantine/testhelper_test.go2
-rw-r--r--internal/git/rawdiff/rawdiff_test.go2
-rw-r--r--internal/git/reference_test.go2
-rw-r--r--internal/git/remoterepo/helper_test.go2
-rw-r--r--internal/git/remoterepo/repository_test.go2
-rw-r--r--internal/git/revision_test.go2
-rw-r--r--internal/git/sha256/id.go36
-rw-r--r--internal/git/sha256/id_test.go106
-rw-r--r--internal/git/smudge/config_test.go2
-rw-r--r--internal/git/ssh_test.go2
-rw-r--r--internal/git/stats/commit_graph_test.go2
-rw-r--r--internal/git/stats/git_test.go2
-rw-r--r--internal/git/stats/http_clone_test.go2
-rw-r--r--internal/git/stats/http_push_test.go2
-rw-r--r--internal/git/stats/packfile_negotiation_test.go2
-rw-r--r--internal/git/stats/profile_test.go2
-rw-r--r--internal/git/stats/reference_discovery_test.go2
-rw-r--r--internal/git/stats/send_pack_test.go2
-rw-r--r--internal/git/stats/testhelper_test.go2
-rw-r--r--internal/git/trailerparser/trailerparser_test.go2
-rw-r--r--internal/git/updateref/update_with_hooks_test.go2
-rw-r--r--internal/git/updateref/updateref_test.go2
-rw-r--r--internal/git/version_test.go2
-rw-r--r--internal/git2go/apply_test.go2
-rw-r--r--internal/git2go/commit_test.go2
-rw-r--r--internal/git2go/featureflags_test.go2
-rw-r--r--internal/git2go/serialization_test.go2
-rw-r--r--internal/gitaly/client/address_parser_test.go2
-rw-r--r--internal/gitaly/client/dial_test.go2
-rw-r--r--internal/gitaly/config/cgroups/cgroups_test.go2
-rw-r--r--internal/gitaly/config/config_test.go2
-rw-r--r--internal/gitaly/config/testhelper_test.go2
-rw-r--r--internal/gitaly/diff/diff_test.go2
-rw-r--r--internal/gitaly/diff/numstat_test.go2
-rw-r--r--internal/gitaly/hook/custom_test.go2
-rw-r--r--internal/gitaly/hook/postreceive_test.go2
-rw-r--r--internal/gitaly/hook/prereceive_test.go2
-rw-r--r--internal/gitaly/hook/sidechannel_test.go2
-rw-r--r--internal/gitaly/hook/testhelper_test.go2
-rw-r--r--internal/gitaly/hook/transactions_test.go2
-rw-r--r--internal/gitaly/hook/update_test.go2
-rw-r--r--internal/gitaly/linguist/language_stats_test.go2
-rw-r--r--internal/gitaly/linguist/linguist_test.go2
-rw-r--r--internal/gitaly/maintenance/daily_test.go2
-rw-r--r--internal/gitaly/maintenance/main_test.go2
-rw-r--r--internal/gitaly/maintenance/optimize_test.go2
-rw-r--r--internal/gitaly/maintenance/randomwalker_test.go2
-rw-r--r--internal/gitaly/rubyserver/balancer/balancer_test.go2
-rw-r--r--internal/gitaly/rubyserver/concurrency_test.go2
-rw-r--r--internal/gitaly/rubyserver/health_test.go2
-rw-r--r--internal/gitaly/rubyserver/proxy_test.go2
-rw-r--r--internal/gitaly/rubyserver/rubyserver_test.go2
-rw-r--r--internal/gitaly/rubyserver/testhelper_test.go2
-rw-r--r--internal/gitaly/rubyserver/worker_test.go2
-rw-r--r--internal/gitaly/server/auth_test.go2
-rw-r--r--internal/gitaly/server/server_factory_test.go2
-rw-r--r--internal/gitaly/service/blob/blobs_test.go2
-rw-r--r--internal/gitaly/service/blob/get_blob_test.go2
-rw-r--r--internal/gitaly/service/blob/get_blobs_test.go2
-rw-r--r--internal/gitaly/service/blob/lfs_pointers_test.go2
-rw-r--r--internal/gitaly/service/blob/testhelper_test.go2
-rw-r--r--internal/gitaly/service/cleanup/apply_bfg_object_map_stream_test.go2
-rw-r--r--internal/gitaly/service/cleanup/testhelper_test.go2
-rw-r--r--internal/gitaly/service/commit/check_objects_exist_test.go2
-rw-r--r--internal/gitaly/service/commit/commit_messages_test.go2
-rw-r--r--internal/gitaly/service/commit/commit_signatures_test.go2
-rw-r--r--internal/gitaly/service/commit/commits_by_message_test.go2
-rw-r--r--internal/gitaly/service/commit/count_commits_test.go2
-rw-r--r--internal/gitaly/service/commit/count_diverging_commits_test.go2
-rw-r--r--internal/gitaly/service/commit/filter_shas_with_signatures_test.go2
-rw-r--r--internal/gitaly/service/commit/find_all_commits_test.go2
-rw-r--r--internal/gitaly/service/commit/find_commit_test.go2
-rw-r--r--internal/gitaly/service/commit/find_commits_test.go2
-rw-r--r--internal/gitaly/service/commit/isancestor_test.go2
-rw-r--r--internal/gitaly/service/commit/languages_test.go2
-rw-r--r--internal/gitaly/service/commit/last_commit_for_path_test.go2
-rw-r--r--internal/gitaly/service/commit/list_all_commits_test.go2
-rw-r--r--internal/gitaly/service/commit/list_commits_by_oid_test.go2
-rw-r--r--internal/gitaly/service/commit/list_commits_by_ref_name_test.go2
-rw-r--r--internal/gitaly/service/commit/list_commits_test.go2
-rw-r--r--internal/gitaly/service/commit/list_files_test.go2
-rw-r--r--internal/gitaly/service/commit/list_last_commits_for_tree_test.go2
-rw-r--r--internal/gitaly/service/commit/raw_blame_test.go2
-rw-r--r--internal/gitaly/service/commit/stats_test.go2
-rw-r--r--internal/gitaly/service/commit/testhelper_test.go2
-rw-r--r--internal/gitaly/service/commit/tree_entries_test.go2
-rw-r--r--internal/gitaly/service/commit/tree_entry_test.go2
-rw-r--r--internal/gitaly/service/conflicts/list_conflict_files_test.go2
-rw-r--r--internal/gitaly/service/conflicts/resolve_conflicts_test.go2
-rw-r--r--internal/gitaly/service/conflicts/testhelper_test.go2
-rw-r--r--internal/gitaly/service/diff/commit_test.go2
-rw-r--r--internal/gitaly/service/diff/find_changed_paths_test.go2
-rw-r--r--internal/gitaly/service/diff/numstat_test.go2
-rw-r--r--internal/gitaly/service/diff/raw_test.go2
-rw-r--r--internal/gitaly/service/diff/testhelper_test.go2
-rw-r--r--internal/gitaly/service/hook/pack_objects_test.go2
-rw-r--r--internal/gitaly/service/hook/post_receive_test.go2
-rw-r--r--internal/gitaly/service/hook/pre_receive_test.go2
-rw-r--r--internal/gitaly/service/hook/reference_transaction_test.go2
-rw-r--r--internal/gitaly/service/hook/testhelper_test.go2
-rw-r--r--internal/gitaly/service/hook/update_test.go2
-rw-r--r--internal/gitaly/service/internalgitaly/testhelper_test.go2
-rw-r--r--internal/gitaly/service/internalgitaly/walkrepos_test.go2
-rw-r--r--internal/gitaly/service/namespace/namespace_test.go2
-rw-r--r--internal/gitaly/service/namespace/testhelper_test.go2
-rw-r--r--internal/gitaly/service/objectpool/alternates_test.go2
-rw-r--r--internal/gitaly/service/objectpool/create_test.go2
-rw-r--r--internal/gitaly/service/objectpool/fetch_into_object_pool_test.go2
-rw-r--r--internal/gitaly/service/objectpool/get_test.go2
-rw-r--r--internal/gitaly/service/objectpool/link_test.go2
-rw-r--r--internal/gitaly/service/objectpool/reduplicate_test.go2
-rw-r--r--internal/gitaly/service/objectpool/testhelper_test.go2
-rw-r--r--internal/gitaly/service/operations/apply_patch_test.go2
-rw-r--r--internal/gitaly/service/operations/branches_test.go2
-rw-r--r--internal/gitaly/service/operations/cherry_pick_test.go2
-rw-r--r--internal/gitaly/service/operations/commit_files_test.go2
-rw-r--r--internal/gitaly/service/operations/merge_test.go2
-rw-r--r--internal/gitaly/service/operations/rebase_test.go2
-rw-r--r--internal/gitaly/service/operations/revert_test.go2
-rw-r--r--internal/gitaly/service/operations/squash_test.go2
-rw-r--r--internal/gitaly/service/operations/submodules_test.go2
-rw-r--r--internal/gitaly/service/operations/tags_test.go2
-rw-r--r--internal/gitaly/service/operations/testhelper_test.go2
-rw-r--r--internal/gitaly/service/operations/update_branches_test.go2
-rw-r--r--internal/gitaly/service/operations/utils_test.go2
-rw-r--r--internal/gitaly/service/ref/branches_test.go2
-rw-r--r--internal/gitaly/service/ref/delete_refs_test.go2
-rw-r--r--internal/gitaly/service/ref/find_all_tags_test.go2
-rw-r--r--internal/gitaly/service/ref/find_refs_by_oid_test.go2
-rw-r--r--internal/gitaly/service/ref/list_refs_test.go2
-rw-r--r--internal/gitaly/service/ref/pack_refs_test.go2
-rw-r--r--internal/gitaly/service/ref/refexists_test.go2
-rw-r--r--internal/gitaly/service/ref/refs_test.go2
-rw-r--r--internal/gitaly/service/ref/remote_branches_test.go2
-rw-r--r--internal/gitaly/service/ref/tag_messages_test.go2
-rw-r--r--internal/gitaly/service/ref/tag_signatures_test.go2
-rw-r--r--internal/gitaly/service/ref/testhelper_test.go2
-rw-r--r--internal/gitaly/service/ref/util_test.go2
-rw-r--r--internal/gitaly/service/remote/find_remote_repository_test.go2
-rw-r--r--internal/gitaly/service/remote/find_remote_root_ref_test.go2
-rw-r--r--internal/gitaly/service/remote/testhelper_test.go2
-rw-r--r--internal/gitaly/service/remote/update_remote_mirror_test.go2
-rw-r--r--internal/gitaly/service/repository/apply_gitattributes_test.go2
-rw-r--r--internal/gitaly/service/repository/archive_test.go2
-rw-r--r--internal/gitaly/service/repository/backup_custom_hooks_test.go2
-rw-r--r--internal/gitaly/service/repository/calculate_checksum_test.go2
-rw-r--r--internal/gitaly/service/repository/cleanup_test.go2
-rw-r--r--internal/gitaly/service/repository/commit_graph_test.go2
-rw-r--r--internal/gitaly/service/repository/config_test.go2
-rw-r--r--internal/gitaly/service/repository/create_bundle_from_ref_list_test.go2
-rw-r--r--internal/gitaly/service/repository/create_bundle_test.go2
-rw-r--r--internal/gitaly/service/repository/create_fork_test.go2
-rw-r--r--internal/gitaly/service/repository/create_repository_from_bundle_test.go2
-rw-r--r--internal/gitaly/service/repository/create_repository_from_snapshot_test.go2
-rw-r--r--internal/gitaly/service/repository/create_repository_from_url_test.go2
-rw-r--r--internal/gitaly/service/repository/create_repository_test.go2
-rw-r--r--internal/gitaly/service/repository/fetch_bundle_test.go2
-rw-r--r--internal/gitaly/service/repository/fetch_remote_test.go2
-rw-r--r--internal/gitaly/service/repository/fetch_test.go2
-rw-r--r--internal/gitaly/service/repository/fsck_test.go2
-rw-r--r--internal/gitaly/service/repository/fullpath_test.go2
-rw-r--r--internal/gitaly/service/repository/gc_test.go2
-rw-r--r--internal/gitaly/service/repository/info_attributes_test.go2
-rw-r--r--internal/gitaly/service/repository/license_test.go2
-rw-r--r--internal/gitaly/service/repository/merge_base_test.go2
-rw-r--r--internal/gitaly/service/repository/midx_test.go2
-rw-r--r--internal/gitaly/service/repository/optimize_test.go2
-rw-r--r--internal/gitaly/service/repository/prune_unreachable_objects_test.go2
-rw-r--r--internal/gitaly/service/repository/raw_changes_test.go2
-rw-r--r--internal/gitaly/service/repository/redirecting_test_server_test.go2
-rw-r--r--internal/gitaly/service/repository/remove_test.go2
-rw-r--r--internal/gitaly/service/repository/rename_test.go2
-rw-r--r--internal/gitaly/service/repository/repack_test.go2
-rw-r--r--internal/gitaly/service/repository/replicate_test.go2
-rw-r--r--internal/gitaly/service/repository/repository_test.go2
-rw-r--r--internal/gitaly/service/repository/restore_custom_hooks_test.go2
-rw-r--r--internal/gitaly/service/repository/search_files_test.go2
-rw-r--r--internal/gitaly/service/repository/server_test.go2
-rw-r--r--internal/gitaly/service/repository/size_test.go2
-rw-r--r--internal/gitaly/service/repository/snapshot_test.go2
-rw-r--r--internal/gitaly/service/repository/testhelper_test.go2
-rw-r--r--internal/gitaly/service/repository/util_test.go2
-rw-r--r--internal/gitaly/service/repository/write_ref_test.go2
-rw-r--r--internal/gitaly/service/server/disk_stats_test.go2
-rw-r--r--internal/gitaly/service/server/info_test.go2
-rw-r--r--internal/gitaly/service/server/server_test.go2
-rw-r--r--internal/gitaly/service/server/storage_status_unix.go1
-rw-r--r--internal/gitaly/service/smarthttp/inforefs_test.go2
-rw-r--r--internal/gitaly/service/smarthttp/receive_pack_test.go2
-rw-r--r--internal/gitaly/service/smarthttp/testhelper_test.go2
-rw-r--r--internal/gitaly/service/smarthttp/upload_pack_test.go2
-rw-r--r--internal/gitaly/service/ssh/receive_pack_test.go2
-rw-r--r--internal/gitaly/service/ssh/testhelper_test.go2
-rw-r--r--internal/gitaly/service/ssh/upload_archive_test.go2
-rw-r--r--internal/gitaly/service/ssh/upload_pack_test.go2
-rw-r--r--internal/gitaly/service/wiki/find_page_test.go2
-rw-r--r--internal/gitaly/service/wiki/get_all_pages_test.go2
-rw-r--r--internal/gitaly/service/wiki/list_pages_test.go2
-rw-r--r--internal/gitaly/service/wiki/testhelper_test.go2
-rw-r--r--internal/gitaly/service/wiki/update_page_test.go2
-rw-r--r--internal/gitaly/service/wiki/write_page_test.go2
-rw-r--r--internal/gitaly/storage/locator_test.go2
-rw-r--r--internal/gitaly/storage/metadata_test.go2
-rw-r--r--internal/gitaly/storage/servers_test.go2
-rw-r--r--internal/gitaly/storage/testhelper_test.go2
-rw-r--r--internal/gitaly/transaction/manager_test.go2
-rw-r--r--internal/gitaly/transaction/testhelper_test.go2
-rw-r--r--internal/gitaly/transaction/voting_test.go2
-rw-r--r--internal/gitlab/http_client_test.go2
-rw-r--r--internal/gitlab/testhelper_test.go2
-rw-r--r--internal/grpcstats/stats_test.go2
-rw-r--r--internal/grpcstats/testhelper_test.go2
-rw-r--r--internal/helper/chunk/chunker_test.go2
-rw-r--r--internal/helper/env/env_test.go2
-rw-r--r--internal/helper/env/ruby_test.go2
-rw-r--r--internal/helper/error_test.go2
-rw-r--r--internal/helper/fstype/detect_unix.go1
-rw-r--r--internal/helper/fstype/fstype_test.go2
-rw-r--r--internal/helper/lines/send_test.go2
-rw-r--r--internal/helper/repo_test.go2
-rw-r--r--internal/helper/security_test.go2
-rw-r--r--internal/helper/suppressed_context_test.go2
-rw-r--r--internal/helper/text/chomp_test.go2
-rw-r--r--internal/helper/ticker_test.go2
-rw-r--r--internal/listenmux/mux_test.go2
-rw-r--r--internal/log/log_test.go2
-rw-r--r--internal/logsanitizer/url_test.go2
-rw-r--r--internal/metadata/featureflag/context_test.go2
-rw-r--r--internal/metadata/featureflag/featureflag_test.go2
-rw-r--r--internal/metadata/metadata_test.go2
-rw-r--r--internal/middleware/cache/cache_test.go2
-rw-r--r--internal/middleware/cache/export_test.go2
-rw-r--r--internal/middleware/commandstatshandler/commandstatshandler_test.go2
-rw-r--r--internal/middleware/featureflag/featureflag_handler_test.go2
-rw-r--r--internal/middleware/limithandler/concurrency_limiter_test.go2
-rw-r--r--internal/middleware/limithandler/middleware_test.go2
-rw-r--r--internal/middleware/limithandler/rate_limiter_test.go2
-rw-r--r--internal/middleware/limithandler/testhelper_test.go2
-rw-r--r--internal/middleware/metadatahandler/metadatahandler_test.go2
-rw-r--r--internal/middleware/sentryhandler/sentryhandler_test.go2
-rw-r--r--internal/praefect/auth_test.go2
-rw-r--r--internal/praefect/checks_test.go2
-rw-r--r--internal/praefect/config/config_test.go2
-rw-r--r--internal/praefect/config/node_test.go2
-rw-r--r--internal/praefect/coordinator_pg_test.go2
-rw-r--r--internal/praefect/coordinator_test.go2
-rw-r--r--internal/praefect/datastore/assignment_test.go2
-rw-r--r--internal/praefect/datastore/collector_test.go2
-rw-r--r--internal/praefect/datastore/glsql/postgres_test.go2
-rw-r--r--internal/praefect/datastore/glsql/testhelper_test.go2
-rw-r--r--internal/praefect/datastore/listener_test.go2
-rw-r--r--internal/praefect/datastore/memory_test.go2
-rw-r--r--internal/praefect/datastore/postgres_test.go2
-rw-r--r--internal/praefect/datastore/queue_bm_test.go2
-rw-r--r--internal/praefect/datastore/queue_test.go2
-rw-r--r--internal/praefect/datastore/repository_store_bm_test.go2
-rw-r--r--internal/praefect/datastore/repository_store_test.go2
-rw-r--r--internal/praefect/datastore/storage_cleanup_test.go2
-rw-r--r--internal/praefect/datastore/storage_provider_test.go2
-rw-r--r--internal/praefect/datastore/testhelper_test.go2
-rw-r--r--internal/praefect/delete_object_pool_test.go2
-rw-r--r--internal/praefect/grpc-proxy/proxy/codec_test.go2
-rw-r--r--internal/praefect/grpc-proxy/proxy/examples_test.go2
-rw-r--r--internal/praefect/grpc-proxy/proxy/handler_ext_test.go2
-rw-r--r--internal/praefect/grpc-proxy/proxy/handler_test.go2
-rw-r--r--internal/praefect/grpc-proxy/proxy/helper_test.go2
-rw-r--r--internal/praefect/grpc-proxy/proxy/peeker_test.go2
-rw-r--r--internal/praefect/helper_test.go2
-rw-r--r--internal/praefect/info_service_test.go2
-rw-r--r--internal/praefect/middleware/errorhandler_test.go2
-rw-r--r--internal/praefect/middleware/helper_test.go2
-rw-r--r--internal/praefect/mocksvc_test.go2
-rw-r--r--internal/praefect/node_test.go2
-rw-r--r--internal/praefect/nodes/health_manager_test.go2
-rw-r--r--internal/praefect/nodes/init_test.go2
-rw-r--r--internal/praefect/nodes/local_elector_test.go2
-rw-r--r--internal/praefect/nodes/manager_test.go2
-rw-r--r--internal/praefect/nodes/per_repository_test.go2
-rw-r--r--internal/praefect/nodes/ping_test.go2
-rw-r--r--internal/praefect/nodes/sql_elector_test.go2
-rw-r--r--internal/praefect/nodes/tracker/errors_test.go2
-rw-r--r--internal/praefect/praefectutil/replica_path_test.go2
-rw-r--r--internal/praefect/protoregistry/find_oid_test.go2
-rw-r--r--internal/praefect/protoregistry/protoregistry_test.go2
-rw-r--r--internal/praefect/random_test.go2
-rw-r--r--internal/praefect/reconciler/reconciler_benchmark_test.go2
-rw-r--r--internal/praefect/reconciler/reconciler_test.go2
-rw-r--r--internal/praefect/remove_repository_test.go2
-rw-r--r--internal/praefect/replicator_pg_test.go2
-rw-r--r--internal/praefect/replicator_test.go2
-rw-r--r--internal/praefect/repocleaner/action_log_test.go2
-rw-r--r--internal/praefect/repocleaner/init_test.go2
-rw-r--r--internal/praefect/repocleaner/repository_test.go2
-rw-r--r--internal/praefect/repository_exists_test.go2
-rw-r--r--internal/praefect/router_per_repository_test.go2
-rw-r--r--internal/praefect/server_factory_test.go2
-rw-r--r--internal/praefect/server_test.go2
-rw-r--r--internal/praefect/transaction_test.go2
-rw-r--r--internal/praefect/transactions/subtransaction_test.go2
-rw-r--r--internal/praefect/transactions/transaction_test.go2
-rw-r--r--internal/praefect/verifier_test.go2
-rw-r--r--internal/ps/ps_test.go2
-rw-r--r--internal/ps/rss.go1
-rw-r--r--internal/safe/file_writer_test.go2
-rw-r--r--internal/safe/locking_directory_test.go2
-rw-r--r--internal/safe/locking_file_writer_test.go2
-rw-r--r--internal/safe/main_test.go2
-rw-r--r--internal/sidechannel/conn_test.go2
-rw-r--r--internal/sidechannel/proxy_test.go2
-rw-r--r--internal/sidechannel/registry_test.go2
-rw-r--r--internal/sidechannel/sidechannel_test.go2
-rw-r--r--internal/streamcache/cache_test.go2
-rw-r--r--internal/streamcache/cursor_test.go2
-rw-r--r--internal/streamcache/filestore_test.go2
-rw-r--r--internal/streamcache/pipe_test.go2
-rw-r--r--internal/streamcache/sendfile_test.go3
-rw-r--r--internal/streamcache/testhelper_test.go2
-rw-r--r--internal/supervisor/supervisor_test.go2
-rw-r--r--internal/tempdir/clean_test.go2
-rw-r--r--internal/tempdir/tempdir_test.go2
-rw-r--r--internal/tempdir/testhelper_test.go2
-rw-r--r--internal/testhelper/featureset_test.go2
-rw-r--r--internal/testhelper/grpc_test.go2
-rw-r--r--internal/testhelper/testdb/db_test.go2
-rw-r--r--internal/transaction/voting/testhelper_test.go2
-rw-r--r--internal/transaction/voting/vote_test.go2
-rw-r--r--internal/x509/pool.go1
-rw-r--r--streamio/stream_test.go2
-rw-r--r--tools/protoc-gen-gitaly-lint/lint_test.go2
483 files changed, 1090 insertions, 45 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 10d530d0c..d48ff0a7a 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -256,6 +256,13 @@ test:praefect_smoke:
- ./_build/bin/praefect -config config.praefect.toml sql-ping
- ./_build/bin/praefect -config config.praefect.toml sql-migrate
+test:sha256:
+ <<: *test_definition
+ parallel:
+ matrix:
+ - TEST_TARGET: [ test, test-with-praefect ]
+ GITALY_TESTING_ENABLE_SHA256: "YesPlease"
+
test:fips:
<<: *test_definition
tags:
diff --git a/Makefile b/Makefile
index 3dacc50f2..74f078360 100644
--- a/Makefile
+++ b/Makefile
@@ -91,6 +91,11 @@ ifdef FIPS_MODE
export GITALY_TESTING_ENABLE_FIPS := YesPlease
endif
+ifdef GITALY_TESTING_ENABLE_SHA256
+ SERVER_BUILD_TAGS := ${SERVER_BUILD_TAGS},gitaly_test_sha256
+ GIT2GO_BUILD_TAGS := ${GIT2GO_BUILD_TAGS},gitaly_test_sha256
+endif
+
# Dependency versions
GOLANGCI_LINT_VERSION ?= v1.46.2
PROTOLINT_VERSION ?= v0.38.1
diff --git a/auth/extract_test.go b/auth/extract_test.go
index 4d136fe10..393a5b891 100644
--- a/auth/extract_test.go
+++ b/auth/extract_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package gitalyauth
import (
diff --git a/client/client_test.go b/client/client_test.go
index 8cd8c2c02..b386a0429 100644
--- a/client/client_test.go
+++ b/client/client_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package client
import (
diff --git a/client/dial_test.go b/client/dial_test.go
index f488a3ede..e67b6bea9 100644
--- a/client/dial_test.go
+++ b/client/dial_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package client
import (
diff --git a/client/pool_test.go b/client/pool_test.go
index 37b6b9920..586c75287 100644
--- a/client/pool_test.go
+++ b/client/pool_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package client
import (
diff --git a/cmd/gitaly-backup/create_test.go b/cmd/gitaly-backup/create_test.go
index 8aa9d92ea..324afdaad 100644
--- a/cmd/gitaly-backup/create_test.go
+++ b/cmd/gitaly-backup/create_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package main
import (
diff --git a/cmd/gitaly-backup/restore_test.go b/cmd/gitaly-backup/restore_test.go
index fa39f7672..5e3b0ae0d 100644
--- a/cmd/gitaly-backup/restore_test.go
+++ b/cmd/gitaly-backup/restore_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package main
import (
diff --git a/cmd/gitaly-backup/testhelper_test.go b/cmd/gitaly-backup/testhelper_test.go
index f86d24a5e..6b4c7f0f6 100644
--- a/cmd/gitaly-backup/testhelper_test.go
+++ b/cmd/gitaly-backup/testhelper_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package main
import (
diff --git a/cmd/gitaly-git2go-v15/apply.go b/cmd/gitaly-git2go-v15/apply.go
index 32ee50e72..2bd20b631 100644
--- a/cmd/gitaly-git2go-v15/apply.go
+++ b/cmd/gitaly-git2go-v15/apply.go
@@ -1,5 +1,4 @@
//go:build static && system_libgit2
-// +build static,system_libgit2
package main
diff --git a/cmd/gitaly-git2go-v15/cherry_pick.go b/cmd/gitaly-git2go-v15/cherry_pick.go
index 0b991a812..ada0c3b97 100644
--- a/cmd/gitaly-git2go-v15/cherry_pick.go
+++ b/cmd/gitaly-git2go-v15/cherry_pick.go
@@ -1,5 +1,4 @@
//go:build static && system_libgit2
-// +build static,system_libgit2
package main
diff --git a/cmd/gitaly-git2go-v15/cherry_pick_test.go b/cmd/gitaly-git2go-v15/cherry_pick_test.go
index cb4b3329f..2e3ebe78e 100644
--- a/cmd/gitaly-git2go-v15/cherry_pick_test.go
+++ b/cmd/gitaly-git2go-v15/cherry_pick_test.go
@@ -1,5 +1,4 @@
-//go:build static && system_libgit2
-// +build static,system_libgit2
+//go:build static && system_libgit2 && !gitaly_test_sha256
package main
diff --git a/cmd/gitaly-git2go-v15/commit.go b/cmd/gitaly-git2go-v15/commit.go
index 540135256..e6789e424 100644
--- a/cmd/gitaly-git2go-v15/commit.go
+++ b/cmd/gitaly-git2go-v15/commit.go
@@ -1,5 +1,4 @@
//go:build static && system_libgit2
-// +build static,system_libgit2
package main
diff --git a/cmd/gitaly-git2go-v15/commit/change_file_mode.go b/cmd/gitaly-git2go-v15/commit/change_file_mode.go
index 6e70b0c5a..e07db9ba4 100644
--- a/cmd/gitaly-git2go-v15/commit/change_file_mode.go
+++ b/cmd/gitaly-git2go-v15/commit/change_file_mode.go
@@ -1,5 +1,4 @@
//go:build static && system_libgit2
-// +build static,system_libgit2
package commit
diff --git a/cmd/gitaly-git2go-v15/commit/commit.go b/cmd/gitaly-git2go-v15/commit/commit.go
index 51f6020bc..43a07d012 100644
--- a/cmd/gitaly-git2go-v15/commit/commit.go
+++ b/cmd/gitaly-git2go-v15/commit/commit.go
@@ -1,5 +1,4 @@
//go:build static && system_libgit2
-// +build static,system_libgit2
package commit
diff --git a/cmd/gitaly-git2go-v15/commit/create_directory.go b/cmd/gitaly-git2go-v15/commit/create_directory.go
index fa1ecd742..061666ed3 100644
--- a/cmd/gitaly-git2go-v15/commit/create_directory.go
+++ b/cmd/gitaly-git2go-v15/commit/create_directory.go
@@ -1,5 +1,4 @@
//go:build static && system_libgit2
-// +build static,system_libgit2
package commit
diff --git a/cmd/gitaly-git2go-v15/commit/create_file.go b/cmd/gitaly-git2go-v15/commit/create_file.go
index fe88d45e5..926916561 100644
--- a/cmd/gitaly-git2go-v15/commit/create_file.go
+++ b/cmd/gitaly-git2go-v15/commit/create_file.go
@@ -1,5 +1,4 @@
//go:build static && system_libgit2
-// +build static,system_libgit2
package commit
diff --git a/cmd/gitaly-git2go-v15/commit/delete_file.go b/cmd/gitaly-git2go-v15/commit/delete_file.go
index 62601235d..a5af77b7b 100644
--- a/cmd/gitaly-git2go-v15/commit/delete_file.go
+++ b/cmd/gitaly-git2go-v15/commit/delete_file.go
@@ -1,5 +1,4 @@
//go:build static && system_libgit2
-// +build static,system_libgit2
package commit
diff --git a/cmd/gitaly-git2go-v15/commit/move_file.go b/cmd/gitaly-git2go-v15/commit/move_file.go
index 9a6a290d6..b31853c96 100644
--- a/cmd/gitaly-git2go-v15/commit/move_file.go
+++ b/cmd/gitaly-git2go-v15/commit/move_file.go
@@ -1,5 +1,4 @@
//go:build static && system_libgit2
-// +build static,system_libgit2
package commit
diff --git a/cmd/gitaly-git2go-v15/commit/update_file.go b/cmd/gitaly-git2go-v15/commit/update_file.go
index 6c2ef74a3..cea5d629b 100644
--- a/cmd/gitaly-git2go-v15/commit/update_file.go
+++ b/cmd/gitaly-git2go-v15/commit/update_file.go
@@ -1,5 +1,4 @@
//go:build static && system_libgit2
-// +build static,system_libgit2
package commit
diff --git a/cmd/gitaly-git2go-v15/commit/validate.go b/cmd/gitaly-git2go-v15/commit/validate.go
index 706ae45ce..ab3f972b1 100644
--- a/cmd/gitaly-git2go-v15/commit/validate.go
+++ b/cmd/gitaly-git2go-v15/commit/validate.go
@@ -1,5 +1,4 @@
//go:build static && system_libgit2
-// +build static,system_libgit2
package commit
diff --git a/cmd/gitaly-git2go-v15/conflicts.go b/cmd/gitaly-git2go-v15/conflicts.go
index a569533c1..c29f729df 100644
--- a/cmd/gitaly-git2go-v15/conflicts.go
+++ b/cmd/gitaly-git2go-v15/conflicts.go
@@ -1,5 +1,4 @@
//go:build static && system_libgit2
-// +build static,system_libgit2
package main
diff --git a/cmd/gitaly-git2go-v15/conflicts_test.go b/cmd/gitaly-git2go-v15/conflicts_test.go
index 4551ceb7c..39829c7ae 100644
--- a/cmd/gitaly-git2go-v15/conflicts_test.go
+++ b/cmd/gitaly-git2go-v15/conflicts_test.go
@@ -1,5 +1,4 @@
-//go:build static && system_libgit2
-// +build static,system_libgit2
+//go:build static && system_libgit2 && !gitaly_test_sha256
package main
diff --git a/cmd/gitaly-git2go-v15/featureflags.go b/cmd/gitaly-git2go-v15/featureflags.go
index 669fe0445..720320901 100644
--- a/cmd/gitaly-git2go-v15/featureflags.go
+++ b/cmd/gitaly-git2go-v15/featureflags.go
@@ -1,5 +1,4 @@
//go:build static && system_libgit2 && gitaly_test
-// +build static,system_libgit2,gitaly_test
package main
diff --git a/cmd/gitaly-git2go-v15/main.go b/cmd/gitaly-git2go-v15/main.go
index 2ce2796ae..e8a2c2c7b 100644
--- a/cmd/gitaly-git2go-v15/main.go
+++ b/cmd/gitaly-git2go-v15/main.go
@@ -1,5 +1,4 @@
//go:build static && system_libgit2
-// +build static,system_libgit2
package main
diff --git a/cmd/gitaly-git2go-v15/merge.go b/cmd/gitaly-git2go-v15/merge.go
index 313a22f4e..3a1d8bfb8 100644
--- a/cmd/gitaly-git2go-v15/merge.go
+++ b/cmd/gitaly-git2go-v15/merge.go
@@ -1,5 +1,4 @@
//go:build static && system_libgit2
-// +build static,system_libgit2
package main
diff --git a/cmd/gitaly-git2go-v15/merge_test.go b/cmd/gitaly-git2go-v15/merge_test.go
index 8f1b79968..9f1919464 100644
--- a/cmd/gitaly-git2go-v15/merge_test.go
+++ b/cmd/gitaly-git2go-v15/merge_test.go
@@ -1,5 +1,4 @@
-//go:build static && system_libgit2
-// +build static,system_libgit2
+//go:build static && system_libgit2 && !gitaly_test_sha256
package main
diff --git a/cmd/gitaly-git2go-v15/rebase.go b/cmd/gitaly-git2go-v15/rebase.go
index a385094e9..e2cc3022f 100644
--- a/cmd/gitaly-git2go-v15/rebase.go
+++ b/cmd/gitaly-git2go-v15/rebase.go
@@ -1,5 +1,4 @@
//go:build static && system_libgit2
-// +build static,system_libgit2
package main
diff --git a/cmd/gitaly-git2go-v15/rebase_test.go b/cmd/gitaly-git2go-v15/rebase_test.go
index a7df2a912..d6cce487b 100644
--- a/cmd/gitaly-git2go-v15/rebase_test.go
+++ b/cmd/gitaly-git2go-v15/rebase_test.go
@@ -1,5 +1,4 @@
-//go:build static && system_libgit2
-// +build static,system_libgit2
+//go:build static && system_libgit2 && !gitaly_test_sha256
package main
diff --git a/cmd/gitaly-git2go-v15/resolve_conflicts.go b/cmd/gitaly-git2go-v15/resolve_conflicts.go
index ff73ee749..aa6159262 100644
--- a/cmd/gitaly-git2go-v15/resolve_conflicts.go
+++ b/cmd/gitaly-git2go-v15/resolve_conflicts.go
@@ -1,5 +1,4 @@
//go:build static && system_libgit2
-// +build static,system_libgit2
package main
diff --git a/cmd/gitaly-git2go-v15/revert.go b/cmd/gitaly-git2go-v15/revert.go
index 8c84f909f..9c66c4865 100644
--- a/cmd/gitaly-git2go-v15/revert.go
+++ b/cmd/gitaly-git2go-v15/revert.go
@@ -1,5 +1,4 @@
//go:build static && system_libgit2
-// +build static,system_libgit2
package main
diff --git a/cmd/gitaly-git2go-v15/revert_test.go b/cmd/gitaly-git2go-v15/revert_test.go
index 5cea73d44..4b885c0e8 100644
--- a/cmd/gitaly-git2go-v15/revert_test.go
+++ b/cmd/gitaly-git2go-v15/revert_test.go
@@ -1,5 +1,4 @@
-//go:build static && system_libgit2
-// +build static,system_libgit2
+//go:build static && system_libgit2 && !gitaly_test_sha256
package main
diff --git a/cmd/gitaly-git2go-v15/submodule.go b/cmd/gitaly-git2go-v15/submodule.go
index 08c893cef..3c2f2e0eb 100644
--- a/cmd/gitaly-git2go-v15/submodule.go
+++ b/cmd/gitaly-git2go-v15/submodule.go
@@ -1,5 +1,4 @@
//go:build static && system_libgit2
-// +build static,system_libgit2
package main
diff --git a/cmd/gitaly-git2go-v15/submodule_test.go b/cmd/gitaly-git2go-v15/submodule_test.go
index 3669a1559..7e6c2a5bd 100644
--- a/cmd/gitaly-git2go-v15/submodule_test.go
+++ b/cmd/gitaly-git2go-v15/submodule_test.go
@@ -1,5 +1,4 @@
-//go:build static && system_libgit2
-// +build static,system_libgit2
+//go:build static && system_libgit2 && !gitaly_test_sha256
package main
diff --git a/cmd/gitaly-git2go-v15/testhelper_test.go b/cmd/gitaly-git2go-v15/testhelper_test.go
index 21fc90b13..32f646195 100644
--- a/cmd/gitaly-git2go-v15/testhelper_test.go
+++ b/cmd/gitaly-git2go-v15/testhelper_test.go
@@ -1,5 +1,4 @@
-//go:build static && system_libgit2
-// +build static,system_libgit2
+//go:build static && system_libgit2 && !gitaly_test_sha256
package main
diff --git a/cmd/gitaly-git2go-v15/util.go b/cmd/gitaly-git2go-v15/util.go
index feed724ab..7a94371c3 100644
--- a/cmd/gitaly-git2go-v15/util.go
+++ b/cmd/gitaly-git2go-v15/util.go
@@ -1,5 +1,4 @@
//go:build static && system_libgit2
-// +build static,system_libgit2
package main
diff --git a/cmd/gitaly-hooks/hooks_test.go b/cmd/gitaly-hooks/hooks_test.go
index ef9e0f786..54e4fd026 100644
--- a/cmd/gitaly-hooks/hooks_test.go
+++ b/cmd/gitaly-hooks/hooks_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package main
import (
diff --git a/cmd/gitaly-lfs-smudge/main_test.go b/cmd/gitaly-lfs-smudge/main_test.go
index 6154bcd25..200746414 100644
--- a/cmd/gitaly-lfs-smudge/main_test.go
+++ b/cmd/gitaly-lfs-smudge/main_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package main
import (
diff --git a/cmd/gitaly-lfs-smudge/smudge_test.go b/cmd/gitaly-lfs-smudge/smudge_test.go
index f3d77ba0c..54a8de8ad 100644
--- a/cmd/gitaly-lfs-smudge/smudge_test.go
+++ b/cmd/gitaly-lfs-smudge/smudge_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package main
import (
diff --git a/cmd/gitaly-lfs-smudge/testhelper_test.go b/cmd/gitaly-lfs-smudge/testhelper_test.go
index 3d4d4f31f..282f81e54 100644
--- a/cmd/gitaly-lfs-smudge/testhelper_test.go
+++ b/cmd/gitaly-lfs-smudge/testhelper_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package main
import (
diff --git a/cmd/gitaly-ssh/auth_test.go b/cmd/gitaly-ssh/auth_test.go
index 3dd9eb1b2..6c460471d 100644
--- a/cmd/gitaly-ssh/auth_test.go
+++ b/cmd/gitaly-ssh/auth_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package main
import (
diff --git a/cmd/gitaly-ssh/main_test.go b/cmd/gitaly-ssh/main_test.go
index 221585361..ca402f3f5 100644
--- a/cmd/gitaly-ssh/main_test.go
+++ b/cmd/gitaly-ssh/main_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package main
import (
diff --git a/cmd/gitaly-ssh/testhelper_test.go b/cmd/gitaly-ssh/testhelper_test.go
index f86d24a5e..6b4c7f0f6 100644
--- a/cmd/gitaly-ssh/testhelper_test.go
+++ b/cmd/gitaly-ssh/testhelper_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package main
import (
diff --git a/cmd/gitaly-ssh/upload_pack_test.go b/cmd/gitaly-ssh/upload_pack_test.go
index fc6a99ce3..a95e0c8a1 100644
--- a/cmd/gitaly-ssh/upload_pack_test.go
+++ b/cmd/gitaly-ssh/upload_pack_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package main
import (
diff --git a/cmd/gitaly-wrapper/main_test.go b/cmd/gitaly-wrapper/main_test.go
index dd49d2217..5a78f90a1 100644
--- a/cmd/gitaly-wrapper/main_test.go
+++ b/cmd/gitaly-wrapper/main_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package main
import (
diff --git a/cmd/gitaly-wrapper/testhelper_test.go b/cmd/gitaly-wrapper/testhelper_test.go
index f86d24a5e..6b4c7f0f6 100644
--- a/cmd/gitaly-wrapper/testhelper_test.go
+++ b/cmd/gitaly-wrapper/testhelper_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package main
import (
diff --git a/cmd/praefect/main_test.go b/cmd/praefect/main_test.go
index 74bace9ea..3879a5437 100644
--- a/cmd/praefect/main_test.go
+++ b/cmd/praefect/main_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package main
import (
diff --git a/cmd/praefect/subcmd_accept_dataloss_test.go b/cmd/praefect/subcmd_accept_dataloss_test.go
index 87f5ff984..ea22e19d3 100644
--- a/cmd/praefect/subcmd_accept_dataloss_test.go
+++ b/cmd/praefect/subcmd_accept_dataloss_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package main
import (
diff --git a/cmd/praefect/subcmd_check_test.go b/cmd/praefect/subcmd_check_test.go
index 115c83f44..d076510f9 100644
--- a/cmd/praefect/subcmd_check_test.go
+++ b/cmd/praefect/subcmd_check_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package main
import (
diff --git a/cmd/praefect/subcmd_dataloss_test.go b/cmd/praefect/subcmd_dataloss_test.go
index c52aea103..e9d73b110 100644
--- a/cmd/praefect/subcmd_dataloss_test.go
+++ b/cmd/praefect/subcmd_dataloss_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package main
import (
diff --git a/cmd/praefect/subcmd_dial_nodes_test.go b/cmd/praefect/subcmd_dial_nodes_test.go
index f3ed21ae3..b1a2dc0a3 100644
--- a/cmd/praefect/subcmd_dial_nodes_test.go
+++ b/cmd/praefect/subcmd_dial_nodes_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package main
import (
diff --git a/cmd/praefect/subcmd_list_storages_test.go b/cmd/praefect/subcmd_list_storages_test.go
index fda7446c8..068cd27e6 100644
--- a/cmd/praefect/subcmd_list_storages_test.go
+++ b/cmd/praefect/subcmd_list_storages_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package main
import (
diff --git a/cmd/praefect/subcmd_list_untracked_repositories_test.go b/cmd/praefect/subcmd_list_untracked_repositories_test.go
index 1b8415a3b..399939e87 100644
--- a/cmd/praefect/subcmd_list_untracked_repositories_test.go
+++ b/cmd/praefect/subcmd_list_untracked_repositories_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package main
import (
diff --git a/cmd/praefect/subcmd_metadata_test.go b/cmd/praefect/subcmd_metadata_test.go
index 320b650e8..e70f1cb28 100644
--- a/cmd/praefect/subcmd_metadata_test.go
+++ b/cmd/praefect/subcmd_metadata_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package main
import (
diff --git a/cmd/praefect/subcmd_remove_repository_test.go b/cmd/praefect/subcmd_remove_repository_test.go
index d9b27a645..2f6bbae2a 100644
--- a/cmd/praefect/subcmd_remove_repository_test.go
+++ b/cmd/praefect/subcmd_remove_repository_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package main
import (
diff --git a/cmd/praefect/subcmd_set_replication_factor_test.go b/cmd/praefect/subcmd_set_replication_factor_test.go
index b1ce58930..dd6bc19b2 100644
--- a/cmd/praefect/subcmd_set_replication_factor_test.go
+++ b/cmd/praefect/subcmd_set_replication_factor_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package main
import (
diff --git a/cmd/praefect/subcmd_sql_migrate_test.go b/cmd/praefect/subcmd_sql_migrate_test.go
index 75fd0517f..5fc4f7f63 100644
--- a/cmd/praefect/subcmd_sql_migrate_test.go
+++ b/cmd/praefect/subcmd_sql_migrate_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package main
import (
diff --git a/cmd/praefect/subcmd_test.go b/cmd/praefect/subcmd_test.go
index 14d8058c1..d6d4883e2 100644
--- a/cmd/praefect/subcmd_test.go
+++ b/cmd/praefect/subcmd_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package main
import (
diff --git a/cmd/praefect/subcmd_track_repository_test.go b/cmd/praefect/subcmd_track_repository_test.go
index d58a3dba7..4ef6e7fb2 100644
--- a/cmd/praefect/subcmd_track_repository_test.go
+++ b/cmd/praefect/subcmd_track_repository_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package main
import (
diff --git a/cmd/praefect/subcmd_verify_test.go b/cmd/praefect/subcmd_verify_test.go
index f87167fe5..3731b82e9 100644
--- a/cmd/praefect/subcmd_verify_test.go
+++ b/cmd/praefect/subcmd_verify_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package main
import (
diff --git a/internal/backchannel/backchannel_example_test.go b/internal/backchannel/backchannel_example_test.go
index abc4357bc..32fec8879 100644
--- a/internal/backchannel/backchannel_example_test.go
+++ b/internal/backchannel/backchannel_example_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package backchannel_test
import (
diff --git a/internal/backchannel/backchannel_test.go b/internal/backchannel/backchannel_test.go
index e8fc30636..e8885629a 100644
--- a/internal/backchannel/backchannel_test.go
+++ b/internal/backchannel/backchannel_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package backchannel
import (
diff --git a/internal/backup/backup_test.go b/internal/backup/backup_test.go
index 0ae30291f..0a22beaaf 100644
--- a/internal/backup/backup_test.go
+++ b/internal/backup/backup_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package backup
import (
diff --git a/internal/backup/filesystem_sink_test.go b/internal/backup/filesystem_sink_test.go
index 85f59821e..5ec47c759 100644
--- a/internal/backup/filesystem_sink_test.go
+++ b/internal/backup/filesystem_sink_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package backup
import (
diff --git a/internal/backup/lazy_test.go b/internal/backup/lazy_test.go
index 4d95ecca1..922dffefe 100644
--- a/internal/backup/lazy_test.go
+++ b/internal/backup/lazy_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package backup
import (
diff --git a/internal/backup/locator_test.go b/internal/backup/locator_test.go
index dad19706f..cb19830ae 100644
--- a/internal/backup/locator_test.go
+++ b/internal/backup/locator_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package backup
import (
diff --git a/internal/backup/pipeline_test.go b/internal/backup/pipeline_test.go
index db5e78cc8..0bed08cc1 100644
--- a/internal/backup/pipeline_test.go
+++ b/internal/backup/pipeline_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package backup
import (
diff --git a/internal/backup/storage_service_sink_test.go b/internal/backup/storage_service_sink_test.go
index d96e16c83..ff007b421 100644
--- a/internal/backup/storage_service_sink_test.go
+++ b/internal/backup/storage_service_sink_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package backup
import (
diff --git a/internal/backup/testhelper_test.go b/internal/backup/testhelper_test.go
index b9ea9396d..2f724c44a 100644
--- a/internal/backup/testhelper_test.go
+++ b/internal/backup/testhelper_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package backup
import (
diff --git a/internal/blackbox/config_test.go b/internal/blackbox/config_test.go
index be11c89d5..bdf80e165 100644
--- a/internal/blackbox/config_test.go
+++ b/internal/blackbox/config_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package blackbox
import (
diff --git a/internal/bootstrap/bootstrap_test.go b/internal/bootstrap/bootstrap_test.go
index 0b3eae895..c4e9f17d7 100644
--- a/internal/bootstrap/bootstrap_test.go
+++ b/internal/bootstrap/bootstrap_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package bootstrap
import (
diff --git a/internal/bootstrap/starter/starter_test.go b/internal/bootstrap/starter/starter_test.go
index 9e9198eac..13511a67e 100644
--- a/internal/bootstrap/starter/starter_test.go
+++ b/internal/bootstrap/starter/starter_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package starter
import (
diff --git a/internal/bootstrap/testhelper_test.go b/internal/bootstrap/testhelper_test.go
index 8aeb1ed46..54b19f9c7 100644
--- a/internal/bootstrap/testhelper_test.go
+++ b/internal/bootstrap/testhelper_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package bootstrap
import (
diff --git a/internal/cache/diskcache_test.go b/internal/cache/diskcache_test.go
index fa2fc6637..be58460ba 100644
--- a/internal/cache/diskcache_test.go
+++ b/internal/cache/diskcache_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package cache
import (
diff --git a/internal/cache/testhelper_test.go b/internal/cache/testhelper_test.go
index d11a36ad5..50e91da03 100644
--- a/internal/cache/testhelper_test.go
+++ b/internal/cache/testhelper_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package cache
import (
diff --git a/internal/cache/walker_test.go b/internal/cache/walker_test.go
index 8a984a236..d76dfdba6 100644
--- a/internal/cache/walker_test.go
+++ b/internal/cache/walker_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package cache
import (
diff --git a/internal/cgroups/cgroups_linux_test.go b/internal/cgroups/cgroups_linux_test.go
index f83bafa0d..98d469731 100644
--- a/internal/cgroups/cgroups_linux_test.go
+++ b/internal/cgroups/cgroups_linux_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package cgroups
import (
diff --git a/internal/cgroups/mock_linux_test.go b/internal/cgroups/mock_linux_test.go
index d8642a702..fe57beec1 100644
--- a/internal/cgroups/mock_linux_test.go
+++ b/internal/cgroups/mock_linux_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
/*
Adapted from https://github.com/containerd/cgroups/blob/f1d9380fd3c028194db9582825512fdf3f39ab2a/mock_test.go
diff --git a/internal/cgroups/v1.go b/internal/cgroups/v1.go
index b7048c6c7..545f27bed 100644
--- a/internal/cgroups/v1.go
+++ b/internal/cgroups/v1.go
@@ -1,5 +1,4 @@
//go:build !linux
-// +build !linux
package cgroups
diff --git a/internal/cgroups/v1_linux_test.go b/internal/cgroups/v1_linux_test.go
index f0c898cfd..faf43435a 100644
--- a/internal/cgroups/v1_linux_test.go
+++ b/internal/cgroups/v1_linux_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package cgroups
import (
diff --git a/internal/command/command_test.go b/internal/command/command_test.go
index 98569183f..c3c7b85e9 100644
--- a/internal/command/command_test.go
+++ b/internal/command/command_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package command
import (
diff --git a/internal/command/stats_test.go b/internal/command/stats_test.go
index 71cb35b72..3218cfbf4 100644
--- a/internal/command/stats_test.go
+++ b/internal/command/stats_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package command
import (
diff --git a/internal/command/stderrbuffer_test.go b/internal/command/stderrbuffer_test.go
index 49da19cc3..07bbf95e4 100644
--- a/internal/command/stderrbuffer_test.go
+++ b/internal/command/stderrbuffer_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package command
import (
diff --git a/internal/command/testhelper_test.go b/internal/command/testhelper_test.go
index e0398c2bd..12904aee0 100644
--- a/internal/command/testhelper_test.go
+++ b/internal/command/testhelper_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package command
import (
diff --git a/internal/dontpanic/retry_test.go b/internal/dontpanic/retry_test.go
index ebcfb5dd4..a43293d1d 100644
--- a/internal/dontpanic/retry_test.go
+++ b/internal/dontpanic/retry_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package dontpanic_test
import (
diff --git a/internal/dontpanic/testhelper_test.go b/internal/dontpanic/testhelper_test.go
index 8c30ef84e..bbcf91f74 100644
--- a/internal/dontpanic/testhelper_test.go
+++ b/internal/dontpanic/testhelper_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package dontpanic
import (
diff --git a/internal/git/catfile/cache_test.go b/internal/git/catfile/cache_test.go
index 7fae86dc5..b3c5e08de 100644
--- a/internal/git/catfile/cache_test.go
+++ b/internal/git/catfile/cache_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package catfile
import (
diff --git a/internal/git/catfile/commit_test.go b/internal/git/catfile/commit_test.go
index 1cdfdc161..6fc58b483 100644
--- a/internal/git/catfile/commit_test.go
+++ b/internal/git/catfile/commit_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package catfile
import (
diff --git a/internal/git/catfile/object_info_reader_fuzz.go b/internal/git/catfile/object_info_reader_fuzz.go
index 130abb4e7..f5227668f 100644
--- a/internal/git/catfile/object_info_reader_fuzz.go
+++ b/internal/git/catfile/object_info_reader_fuzz.go
@@ -1,5 +1,4 @@
//go:build gofuzz
-// +build gofuzz
package catfile
diff --git a/internal/git/catfile/object_info_reader_test.go b/internal/git/catfile/object_info_reader_test.go
index c698d62f6..ab7d98a67 100644
--- a/internal/git/catfile/object_info_reader_test.go
+++ b/internal/git/catfile/object_info_reader_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package catfile
import (
diff --git a/internal/git/catfile/object_reader_test.go b/internal/git/catfile/object_reader_test.go
index 2f88a1aed..e4be10818 100644
--- a/internal/git/catfile/object_reader_test.go
+++ b/internal/git/catfile/object_reader_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package catfile
import (
diff --git a/internal/git/catfile/parser_test.go b/internal/git/catfile/parser_test.go
index fa21b97b8..9e8746252 100644
--- a/internal/git/catfile/parser_test.go
+++ b/internal/git/catfile/parser_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package catfile
import (
diff --git a/internal/git/catfile/request_queue_test.go b/internal/git/catfile/request_queue_test.go
index b09ee75ab..78952829d 100644
--- a/internal/git/catfile/request_queue_test.go
+++ b/internal/git/catfile/request_queue_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package catfile
import (
diff --git a/internal/git/catfile/tag_test.go b/internal/git/catfile/tag_test.go
index a3ad5baa1..bcb0ef05b 100644
--- a/internal/git/catfile/tag_test.go
+++ b/internal/git/catfile/tag_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package catfile
import (
diff --git a/internal/git/catfile/testhelper_test.go b/internal/git/catfile/testhelper_test.go
index 7038a9216..4aeb140bb 100644
--- a/internal/git/catfile/testhelper_test.go
+++ b/internal/git/catfile/testhelper_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package catfile
import (
diff --git a/internal/git/checksum_test.go b/internal/git/checksum_test.go
index f750b244b..167a7ec16 100644
--- a/internal/git/checksum_test.go
+++ b/internal/git/checksum_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package git
import (
diff --git a/internal/git/command_description_test.go b/internal/git/command_description_test.go
index 52da034c3..574fa5592 100644
--- a/internal/git/command_description_test.go
+++ b/internal/git/command_description_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package git
import (
diff --git a/internal/git/command_factory_cgroup_test.go b/internal/git/command_factory_cgroup_test.go
index e504880b6..93ce9724f 100644
--- a/internal/git/command_factory_cgroup_test.go
+++ b/internal/git/command_factory_cgroup_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package git
import (
diff --git a/internal/git/command_factory_test.go b/internal/git/command_factory_test.go
index de98c6f97..18467d5fd 100644
--- a/internal/git/command_factory_test.go
+++ b/internal/git/command_factory_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package git_test
import (
diff --git a/internal/git/command_options_test.go b/internal/git/command_options_test.go
index e5616d476..30410909d 100644
--- a/internal/git/command_options_test.go
+++ b/internal/git/command_options_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package git
import (
diff --git a/internal/git/conflict/parser_test.go b/internal/git/conflict/parser_test.go
index 52c308320..5d3ece314 100644
--- a/internal/git/conflict/parser_test.go
+++ b/internal/git/conflict/parser_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package conflict
import (
diff --git a/internal/git/decoder_test.go b/internal/git/decoder_test.go
index ee9149a1f..517a4980c 100644
--- a/internal/git/decoder_test.go
+++ b/internal/git/decoder_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package git_test
import (
diff --git a/internal/git/dirs_test.go b/internal/git/dirs_test.go
index 7bc231df5..4734cae51 100644
--- a/internal/git/dirs_test.go
+++ b/internal/git/dirs_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package git
import (
diff --git a/internal/git/execution_environment_test.go b/internal/git/execution_environment_test.go
index a82910fcb..8432b8724 100644
--- a/internal/git/execution_environment_test.go
+++ b/internal/git/execution_environment_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package git_test
import (
diff --git a/internal/git/fetch_scanner_test.go b/internal/git/fetch_scanner_test.go
index d49feda93..c05d297f0 100644
--- a/internal/git/fetch_scanner_test.go
+++ b/internal/git/fetch_scanner_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package git
import (
diff --git a/internal/git/gitio/hashfile_test.go b/internal/git/gitio/hashfile_test.go
index a18dea7f8..d17d73cb6 100644
--- a/internal/git/gitio/hashfile_test.go
+++ b/internal/git/gitio/hashfile_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package gitio
import (
diff --git a/internal/git/gitio/trailer_test.go b/internal/git/gitio/trailer_test.go
index a8731e331..7ce88a251 100644
--- a/internal/git/gitio/trailer_test.go
+++ b/internal/git/gitio/trailer_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package gitio
import (
diff --git a/internal/git/gitpipe/catfile_info_test.go b/internal/git/gitpipe/catfile_info_test.go
index 93274718e..75882b5d4 100644
--- a/internal/git/gitpipe/catfile_info_test.go
+++ b/internal/git/gitpipe/catfile_info_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package gitpipe
import (
diff --git a/internal/git/gitpipe/catfile_object_test.go b/internal/git/gitpipe/catfile_object_test.go
index 5b6121eac..905ea0895 100644
--- a/internal/git/gitpipe/catfile_object_test.go
+++ b/internal/git/gitpipe/catfile_object_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package gitpipe
import (
diff --git a/internal/git/gitpipe/diff_tree_test.go b/internal/git/gitpipe/diff_tree_test.go
index 700772244..1dad55b78 100644
--- a/internal/git/gitpipe/diff_tree_test.go
+++ b/internal/git/gitpipe/diff_tree_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package gitpipe
import (
diff --git a/internal/git/gitpipe/ls_tree_test.go b/internal/git/gitpipe/ls_tree_test.go
index 7d1133055..04e09dcb1 100644
--- a/internal/git/gitpipe/ls_tree_test.go
+++ b/internal/git/gitpipe/ls_tree_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package gitpipe
import (
diff --git a/internal/git/gitpipe/pipeline_test.go b/internal/git/gitpipe/pipeline_test.go
index 0dfe7dad7..07ec84f65 100644
--- a/internal/git/gitpipe/pipeline_test.go
+++ b/internal/git/gitpipe/pipeline_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package gitpipe
import (
diff --git a/internal/git/gitpipe/revision_test.go b/internal/git/gitpipe/revision_test.go
index 3be1f8126..5fccfd2be 100644
--- a/internal/git/gitpipe/revision_test.go
+++ b/internal/git/gitpipe/revision_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package gitpipe
import (
diff --git a/internal/git/gitpipe/testhelper_test.go b/internal/git/gitpipe/testhelper_test.go
index b82eb4d82..397c270b3 100644
--- a/internal/git/gitpipe/testhelper_test.go
+++ b/internal/git/gitpipe/testhelper_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package gitpipe
import (
diff --git a/internal/git/gittest/command_test.go b/internal/git/gittest/command_test.go
index 2cbe8dae3..1cf52d728 100644
--- a/internal/git/gittest/command_test.go
+++ b/internal/git/gittest/command_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package gittest
import (
diff --git a/internal/git/gittest/commit.go b/internal/git/gittest/commit.go
index d0a3f9a01..7b4b14440 100644
--- a/internal/git/gittest/commit.go
+++ b/internal/git/gittest/commit.go
@@ -150,7 +150,7 @@ func WriteCommit(t testing.TB, cfg config.Cfg, repoPath string, opts ...WriteCom
tree = writeCommitConfig.treeID.String()
} else if len(parents) == 0 {
// If there are no parents, then we set the root tree to the empty tree.
- tree = "4b825dc642cb6eb9a060e54bf8d69288fbee4904"
+ tree = EmptyTreeOID.String()
} else {
tree = parents[0].String() + "^{tree}"
}
@@ -210,7 +210,7 @@ func WriteCommit(t testing.TB, cfg config.Cfg, repoPath string, opts ...WriteCom
Stdin: stdin,
Env: env,
}, commitArgs...)
- oid, err := git.NewObjectIDFromHex(text.ChompBytes(stdout))
+ oid, err := NewObjectIDFromHex(text.ChompBytes(stdout))
require.NoError(t, err)
if writeCommitConfig.branch != "" {
diff --git a/internal/git/gittest/commit_test.go b/internal/git/gittest/commit_test.go
index c88d2af45..e970079d2 100644
--- a/internal/git/gittest/commit_test.go
+++ b/internal/git/gittest/commit_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package gittest
import (
diff --git a/internal/git/gittest/intercepting_command_factory_test.go b/internal/git/gittest/intercepting_command_factory_test.go
index d93f68afc..1dc2070b9 100644
--- a/internal/git/gittest/intercepting_command_factory_test.go
+++ b/internal/git/gittest/intercepting_command_factory_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package gittest
import (
diff --git a/internal/git/gittest/ref_test.go b/internal/git/gittest/ref_test.go
index eed9287ee..0753ef00f 100644
--- a/internal/git/gittest/ref_test.go
+++ b/internal/git/gittest/ref_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package gittest
import (
diff --git a/internal/git/gittest/repo.go b/internal/git/gittest/repo.go
index ff833b5ed..a9ff1e75e 100644
--- a/internal/git/gittest/repo.go
+++ b/internal/git/gittest/repo.go
@@ -258,8 +258,10 @@ func InitRepo(t testing.TB, cfg config.Cfg, storage config.Storage, opts ...Init
repoPath := filepath.Join(storage.Path, relativePath)
args := []string{"init", "--bare"}
+ args = append(args, initRepoExtraArgs...)
+ args = append(args, repoPath)
- Exec(t, cfg, append(args, repoPath)...)
+ Exec(t, cfg, args...)
repo := InitRepoDir(t, storage.Path, relativePath)
repo.StorageName = storage.Name
diff --git a/internal/git/gittest/sha1.go b/internal/git/gittest/sha1.go
new file mode 100644
index 000000000..631560e63
--- /dev/null
+++ b/internal/git/gittest/sha1.go
@@ -0,0 +1,19 @@
+//go:build !gitaly_test_sha256
+
+package gittest
+
+import "gitlab.com/gitlab-org/gitaly/v15/internal/git"
+
+const (
+ // EmptyTreeOID is the Git tree object hash that corresponds to an empty tree (directory)
+ EmptyTreeOID = git.EmptyTreeOID
+)
+
+var initRepoExtraArgs = []string{}
+
+// NewObjectIDFromHex constructs a new ObjectID from the given hex
+// representation of the object ID. Returns ErrInvalidObjectID if the given
+// OID is not valid.
+func NewObjectIDFromHex(hex string) (git.ObjectID, error) {
+ return git.NewObjectIDFromHex(hex)
+}
diff --git a/internal/git/gittest/sha256.go b/internal/git/gittest/sha256.go
new file mode 100644
index 000000000..ad69cd981
--- /dev/null
+++ b/internal/git/gittest/sha256.go
@@ -0,0 +1,22 @@
+//go:build gitaly_test_sha256
+
+package gittest
+
+import (
+ "gitlab.com/gitlab-org/gitaly/v15/internal/git"
+ "gitlab.com/gitlab-org/gitaly/v15/internal/git/sha256"
+)
+
+const (
+ // EmptyTreeOID is the Git tree object hash that corresponds to an empty tree (directory)
+ EmptyTreeOID = sha256.EmptyTreeOID
+)
+
+var initRepoExtraArgs = []string{"--object-format=sha256"}
+
+// NewObjectIDFromHex constructs a new ObjectID from the given hex
+// representation of the object ID. Returns ErrInvalidObjectID if the given
+// OID is not valid.
+func NewObjectIDFromHex(hex string) (git.ObjectID, error) {
+ return sha256.NewObjectIDFromHex(hex)
+}
diff --git a/internal/git/gittest/testhelper_test.go b/internal/git/gittest/testhelper_test.go
index 2eebc49be..42e7bf48c 100644
--- a/internal/git/gittest/testhelper_test.go
+++ b/internal/git/gittest/testhelper_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package gittest
import (
diff --git a/internal/git/gittest/tree_test.go b/internal/git/gittest/tree_test.go
index cdbd7ec2c..09ce729d7 100644
--- a/internal/git/gittest/tree_test.go
+++ b/internal/git/gittest/tree_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package gittest
import (
diff --git a/internal/git/helper_test.go b/internal/git/helper_test.go
index 6035b49e7..21a27883e 100644
--- a/internal/git/helper_test.go
+++ b/internal/git/helper_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package git
import (
diff --git a/internal/git/hooks_options_test.go b/internal/git/hooks_options_test.go
index bf6da080e..25595dff9 100644
--- a/internal/git/hooks_options_test.go
+++ b/internal/git/hooks_options_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package git_test
import (
diff --git a/internal/git/hooks_payload_test.go b/internal/git/hooks_payload_test.go
index 361e68a7f..0707dbb21 100644
--- a/internal/git/hooks_payload_test.go
+++ b/internal/git/hooks_payload_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package git_test
import (
diff --git a/internal/git/housekeeping/clean_stale_data_test.go b/internal/git/housekeeping/clean_stale_data_test.go
index 3e7f9908f..b39565cbd 100644
--- a/internal/git/housekeeping/clean_stale_data_test.go
+++ b/internal/git/housekeeping/clean_stale_data_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package housekeeping
import (
diff --git a/internal/git/housekeeping/objects_test.go b/internal/git/housekeeping/objects_test.go
index f6b079198..7d56e1d4b 100644
--- a/internal/git/housekeeping/objects_test.go
+++ b/internal/git/housekeeping/objects_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package housekeeping
import (
diff --git a/internal/git/housekeeping/optimize_repository_ext_test.go b/internal/git/housekeeping/optimize_repository_ext_test.go
index 13940b9b6..fa51834ae 100644
--- a/internal/git/housekeeping/optimize_repository_ext_test.go
+++ b/internal/git/housekeeping/optimize_repository_ext_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package housekeeping_test
import (
diff --git a/internal/git/housekeeping/optimize_repository_test.go b/internal/git/housekeeping/optimize_repository_test.go
index 8a890674c..c99125018 100644
--- a/internal/git/housekeeping/optimize_repository_test.go
+++ b/internal/git/housekeeping/optimize_repository_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package housekeeping
import (
diff --git a/internal/git/housekeeping/worktrees_test.go b/internal/git/housekeeping/worktrees_test.go
index 4e2b938e9..8ee923d2d 100644
--- a/internal/git/housekeeping/worktrees_test.go
+++ b/internal/git/housekeeping/worktrees_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package housekeeping
import (
diff --git a/internal/git/id_test.go b/internal/git/id_test.go
index 734726cd7..3d4374134 100644
--- a/internal/git/id_test.go
+++ b/internal/git/id_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package git
import (
diff --git a/internal/git/localrepo/config_test.go b/internal/git/localrepo/config_test.go
index 717a95f17..a29d8f4eb 100644
--- a/internal/git/localrepo/config_test.go
+++ b/internal/git/localrepo/config_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package localrepo
import (
diff --git a/internal/git/localrepo/objects_test.go b/internal/git/localrepo/objects_test.go
index 07035ac37..ff7d5982b 100644
--- a/internal/git/localrepo/objects_test.go
+++ b/internal/git/localrepo/objects_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package localrepo
import (
diff --git a/internal/git/localrepo/paths_test.go b/internal/git/localrepo/paths_test.go
index dd219031d..cd33ec032 100644
--- a/internal/git/localrepo/paths_test.go
+++ b/internal/git/localrepo/paths_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package localrepo_test
import (
diff --git a/internal/git/localrepo/refs_test.go b/internal/git/localrepo/refs_test.go
index 9eca39153..bbb782b9c 100644
--- a/internal/git/localrepo/refs_test.go
+++ b/internal/git/localrepo/refs_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package localrepo
import (
diff --git a/internal/git/localrepo/remote_extra_test.go b/internal/git/localrepo/remote_extra_test.go
index 34f9ea556..d0676b0eb 100644
--- a/internal/git/localrepo/remote_extra_test.go
+++ b/internal/git/localrepo/remote_extra_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package localrepo_test
import (
diff --git a/internal/git/localrepo/remote_test.go b/internal/git/localrepo/remote_test.go
index 0c622431e..24bb0f879 100644
--- a/internal/git/localrepo/remote_test.go
+++ b/internal/git/localrepo/remote_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package localrepo
import (
diff --git a/internal/git/localrepo/repo_test.go b/internal/git/localrepo/repo_test.go
index f90e5377e..7b433083a 100644
--- a/internal/git/localrepo/repo_test.go
+++ b/internal/git/localrepo/repo_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package localrepo
import (
diff --git a/internal/git/localrepo/testhelper_test.go b/internal/git/localrepo/testhelper_test.go
index 0aead068b..8fb0bd4f7 100644
--- a/internal/git/localrepo/testhelper_test.go
+++ b/internal/git/localrepo/testhelper_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package localrepo
import (
diff --git a/internal/git/lstree/list_entries_test.go b/internal/git/lstree/list_entries_test.go
index d17197368..939c72b81 100644
--- a/internal/git/lstree/list_entries_test.go
+++ b/internal/git/lstree/list_entries_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package lstree
import (
diff --git a/internal/git/lstree/parser_test.go b/internal/git/lstree/parser_test.go
index f1a4dfab8..6f8bb1912 100644
--- a/internal/git/lstree/parser_test.go
+++ b/internal/git/lstree/parser_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package lstree
import (
diff --git a/internal/git/lstree/testhelper_test.go b/internal/git/lstree/testhelper_test.go
index 619a98800..9136297e2 100644
--- a/internal/git/lstree/testhelper_test.go
+++ b/internal/git/lstree/testhelper_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package lstree
import (
diff --git a/internal/git/objectpool/clone_test.go b/internal/git/objectpool/clone_test.go
index 37d72726a..97e9a26ff 100644
--- a/internal/git/objectpool/clone_test.go
+++ b/internal/git/objectpool/clone_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package objectpool
import (
diff --git a/internal/git/objectpool/fetch_test.go b/internal/git/objectpool/fetch_test.go
index 92f741bc5..880fa2dd3 100644
--- a/internal/git/objectpool/fetch_test.go
+++ b/internal/git/objectpool/fetch_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package objectpool
import (
diff --git a/internal/git/objectpool/link_test.go b/internal/git/objectpool/link_test.go
index cdae8600f..146ff8f06 100644
--- a/internal/git/objectpool/link_test.go
+++ b/internal/git/objectpool/link_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package objectpool
import (
diff --git a/internal/git/objectpool/pool_test.go b/internal/git/objectpool/pool_test.go
index 3ceaa96a1..f257feb6a 100644
--- a/internal/git/objectpool/pool_test.go
+++ b/internal/git/objectpool/pool_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package objectpool
import (
diff --git a/internal/git/objectpool/testhelper_test.go b/internal/git/objectpool/testhelper_test.go
index 6254ce2c1..1fb791db9 100644
--- a/internal/git/objectpool/testhelper_test.go
+++ b/internal/git/objectpool/testhelper_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package objectpool
import (
diff --git a/internal/git/packfile/packfile_test.go b/internal/git/packfile/packfile_test.go
index 97a53e49b..7f5cfdd31 100644
--- a/internal/git/packfile/packfile_test.go
+++ b/internal/git/packfile/packfile_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package packfile_test
import (
diff --git a/internal/git/pktline/pkt_line_test.go b/internal/git/pktline/pkt_line_test.go
index ef9daaf78..1c9b56aaa 100644
--- a/internal/git/pktline/pkt_line_test.go
+++ b/internal/git/pktline/pkt_line_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package pktline
import (
diff --git a/internal/git/pktline/read_monitor_test.go b/internal/git/pktline/read_monitor_test.go
index 65a0ec3ab..12f94d00c 100644
--- a/internal/git/pktline/read_monitor_test.go
+++ b/internal/git/pktline/read_monitor_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package pktline
import (
diff --git a/internal/git/protocol_test.go b/internal/git/protocol_test.go
index 38f26d30d..140b998ec 100644
--- a/internal/git/protocol_test.go
+++ b/internal/git/protocol_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package git
import (
diff --git a/internal/git/quarantine/quarantine_test.go b/internal/git/quarantine/quarantine_test.go
index 97bef980d..90034b56b 100644
--- a/internal/git/quarantine/quarantine_test.go
+++ b/internal/git/quarantine/quarantine_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package quarantine
import (
diff --git a/internal/git/quarantine/testhelper_test.go b/internal/git/quarantine/testhelper_test.go
index b3301648b..6bd4836d7 100644
--- a/internal/git/quarantine/testhelper_test.go
+++ b/internal/git/quarantine/testhelper_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package quarantine
import (
diff --git a/internal/git/rawdiff/rawdiff_test.go b/internal/git/rawdiff/rawdiff_test.go
index 4b984d858..33ce6422d 100644
--- a/internal/git/rawdiff/rawdiff_test.go
+++ b/internal/git/rawdiff/rawdiff_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package rawdiff
import (
diff --git a/internal/git/reference_test.go b/internal/git/reference_test.go
index 9131a19c9..f17493bf3 100644
--- a/internal/git/reference_test.go
+++ b/internal/git/reference_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package git_test
import (
diff --git a/internal/git/remoterepo/helper_test.go b/internal/git/remoterepo/helper_test.go
index 5abe2a104..b34495daf 100644
--- a/internal/git/remoterepo/helper_test.go
+++ b/internal/git/remoterepo/helper_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package remoterepo
import (
diff --git a/internal/git/remoterepo/repository_test.go b/internal/git/remoterepo/repository_test.go
index 23569a2f7..d99af35f3 100644
--- a/internal/git/remoterepo/repository_test.go
+++ b/internal/git/remoterepo/repository_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package remoterepo_test
import (
diff --git a/internal/git/revision_test.go b/internal/git/revision_test.go
index 62751690a..edd574d5c 100644
--- a/internal/git/revision_test.go
+++ b/internal/git/revision_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package git
import (
diff --git a/internal/git/sha256/id.go b/internal/git/sha256/id.go
new file mode 100644
index 000000000..42a4a7c5f
--- /dev/null
+++ b/internal/git/sha256/id.go
@@ -0,0 +1,36 @@
+package sha256
+
+import (
+ "fmt"
+ "regexp"
+
+ "gitlab.com/gitlab-org/gitaly/v15/internal/git"
+)
+
+const (
+ // EmptyTreeOID is the Git tree object sha256 hash that corresponds to an empty tree (directory)
+ EmptyTreeOID = git.ObjectID("6ef19b41225c5369f1c104d45d8d85efa9b057b53b14b4b9b939dd74decc5321")
+)
+
+var objectIDRegex = regexp.MustCompile(`\A[0-9a-f]{64}\z`)
+
+// NewObjectIDFromHex constructs a new ObjectID from the given hex
+// representation of the object ID. Returns ErrInvalidObjectID if the given
+// OID is not valid.
+func NewObjectIDFromHex(hex string) (git.ObjectID, error) {
+ if err := ValidateObjectID(hex); err != nil {
+ return "", err
+ }
+ return git.ObjectID(hex), nil
+}
+
+// ValidateObjectID checks if id is a syntactically correct object ID. Abbreviated
+// object IDs are not deemed to be valid. Returns an ErrInvalidObjectID if the
+// id is not valid.
+func ValidateObjectID(id string) error {
+ if objectIDRegex.MatchString(id) {
+ return nil
+ }
+
+ return fmt.Errorf("%w: %q", git.ErrInvalidObjectID, id)
+}
diff --git a/internal/git/sha256/id_test.go b/internal/git/sha256/id_test.go
new file mode 100644
index 000000000..1be75e98f
--- /dev/null
+++ b/internal/git/sha256/id_test.go
@@ -0,0 +1,106 @@
+package sha256
+
+import (
+ "fmt"
+ "testing"
+
+ "github.com/stretchr/testify/require"
+)
+
+func TestValidateObjectID(t *testing.T) {
+ for _, tc := range []struct {
+ desc string
+ oid string
+ valid bool
+ }{
+ {
+ desc: "valid object ID",
+ oid: "cff96308c1b0c36602ca031013b563074edddb203efa61c4f01be1bd2482d92e",
+ valid: true,
+ },
+ {
+ desc: "object ID with non-hex characters fails",
+ oid: "xff96308c1b0c36602ca031013b563074edddb203efa61c4f01be1bd2482d92e",
+ valid: false,
+ },
+ {
+ desc: "object ID with upper-case letters fails",
+ oid: "CFF96308C1B0C36602CA031013B563074EDDDB203EFA61C4F01BE1BD2482D92E",
+ valid: false,
+ },
+ {
+ desc: "too short object ID fails",
+ oid: "cff96308c1b0c36602ca031013b563074edddb203efa61c4f01be1bd2482d92",
+ valid: false,
+ },
+ {
+ desc: "too long object ID fails",
+ oid: "cff96308c1b0c36602ca031013b563074edddb203efa61c4f01be1bd2482d92eb",
+ valid: false,
+ },
+ {
+ desc: "empty string fails",
+ oid: "",
+ valid: false,
+ },
+ } {
+ t.Run(tc.desc, func(t *testing.T) {
+ err := ValidateObjectID(tc.oid)
+ if tc.valid {
+ require.NoError(t, err)
+ } else {
+ require.Error(t, err)
+ require.EqualError(t, err, fmt.Sprintf("invalid object ID: %q", tc.oid))
+ }
+ })
+ }
+}
+
+func TestNewObjectIDFromHex(t *testing.T) {
+ for _, tc := range []struct {
+ desc string
+ oid string
+ valid bool
+ }{
+ {
+ desc: "valid object ID",
+ oid: "cff96308c1b0c36602ca031013b563074edddb203efa61c4f01be1bd2482d92e",
+ valid: true,
+ },
+ {
+ desc: "object ID with non-hex characters fails",
+ oid: "xff96308c1b0c36602ca031013b563074edddb203efa61c4f01be1bd2482d92e",
+ valid: false,
+ },
+ {
+ desc: "object ID with upper-case letters fails",
+ oid: "CFF96308C1B0C36602CA031013B563074EDDDB203EFA61C4F01BE1BD2482D92E",
+ valid: false,
+ },
+ {
+ desc: "too short object ID fails",
+ oid: "cff96308c1b0c36602ca031013b563074edddb203efa61c4f01be1bd2482d92",
+ valid: false,
+ },
+ {
+ desc: "too long object ID fails",
+ oid: "cff96308c1b0c36602ca031013b563074edddb203efa61c4f01be1bd2482d92eb",
+ valid: false,
+ },
+ {
+ desc: "empty string fails",
+ oid: "",
+ valid: false,
+ },
+ } {
+ t.Run(tc.desc, func(t *testing.T) {
+ oid, err := NewObjectIDFromHex(tc.oid)
+ if tc.valid {
+ require.NoError(t, err)
+ require.Equal(t, tc.oid, oid.String())
+ } else {
+ require.Error(t, err)
+ }
+ })
+ }
+}
diff --git a/internal/git/smudge/config_test.go b/internal/git/smudge/config_test.go
index 0266066ff..1a146959f 100644
--- a/internal/git/smudge/config_test.go
+++ b/internal/git/smudge/config_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package smudge
import (
diff --git a/internal/git/ssh_test.go b/internal/git/ssh_test.go
index 5b066a14f..c7e7d6aa1 100644
--- a/internal/git/ssh_test.go
+++ b/internal/git/ssh_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package git
import (
diff --git a/internal/git/stats/commit_graph_test.go b/internal/git/stats/commit_graph_test.go
index c51328d7f..029ff158a 100644
--- a/internal/git/stats/commit_graph_test.go
+++ b/internal/git/stats/commit_graph_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package stats
import (
diff --git a/internal/git/stats/git_test.go b/internal/git/stats/git_test.go
index b984b18e3..fc7050118 100644
--- a/internal/git/stats/git_test.go
+++ b/internal/git/stats/git_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package stats
import (
diff --git a/internal/git/stats/http_clone_test.go b/internal/git/stats/http_clone_test.go
index ad948bbdb..4e9886b77 100644
--- a/internal/git/stats/http_clone_test.go
+++ b/internal/git/stats/http_clone_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package stats
import (
diff --git a/internal/git/stats/http_push_test.go b/internal/git/stats/http_push_test.go
index 7811b1968..aa4999ad6 100644
--- a/internal/git/stats/http_push_test.go
+++ b/internal/git/stats/http_push_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package stats
import (
diff --git a/internal/git/stats/packfile_negotiation_test.go b/internal/git/stats/packfile_negotiation_test.go
index 7f939fe7c..a08e16472 100644
--- a/internal/git/stats/packfile_negotiation_test.go
+++ b/internal/git/stats/packfile_negotiation_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package stats
import (
diff --git a/internal/git/stats/profile_test.go b/internal/git/stats/profile_test.go
index 34433fe0b..5a2b5bd1f 100644
--- a/internal/git/stats/profile_test.go
+++ b/internal/git/stats/profile_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package stats
import (
diff --git a/internal/git/stats/reference_discovery_test.go b/internal/git/stats/reference_discovery_test.go
index 77020719d..5b529249a 100644
--- a/internal/git/stats/reference_discovery_test.go
+++ b/internal/git/stats/reference_discovery_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package stats
import (
diff --git a/internal/git/stats/send_pack_test.go b/internal/git/stats/send_pack_test.go
index d8f3c5ae3..eda2d06cc 100644
--- a/internal/git/stats/send_pack_test.go
+++ b/internal/git/stats/send_pack_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package stats
import (
diff --git a/internal/git/stats/testhelper_test.go b/internal/git/stats/testhelper_test.go
index 63be25e66..06a792645 100644
--- a/internal/git/stats/testhelper_test.go
+++ b/internal/git/stats/testhelper_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package stats
import (
diff --git a/internal/git/trailerparser/trailerparser_test.go b/internal/git/trailerparser/trailerparser_test.go
index 092b65caf..b7c0a2226 100644
--- a/internal/git/trailerparser/trailerparser_test.go
+++ b/internal/git/trailerparser/trailerparser_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package trailerparser
import (
diff --git a/internal/git/updateref/update_with_hooks_test.go b/internal/git/updateref/update_with_hooks_test.go
index f952f3505..592f1526b 100644
--- a/internal/git/updateref/update_with_hooks_test.go
+++ b/internal/git/updateref/update_with_hooks_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package updateref_test
import (
diff --git a/internal/git/updateref/updateref_test.go b/internal/git/updateref/updateref_test.go
index 743e215a8..cdaf0e9e9 100644
--- a/internal/git/updateref/updateref_test.go
+++ b/internal/git/updateref/updateref_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package updateref
import (
diff --git a/internal/git/version_test.go b/internal/git/version_test.go
index 6fe8c89b8..49bc56af7 100644
--- a/internal/git/version_test.go
+++ b/internal/git/version_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package git
import (
diff --git a/internal/git2go/apply_test.go b/internal/git2go/apply_test.go
index fac6cae1e..146a487f8 100644
--- a/internal/git2go/apply_test.go
+++ b/internal/git2go/apply_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package git2go
import (
diff --git a/internal/git2go/commit_test.go b/internal/git2go/commit_test.go
index 5ef7e1fa3..ee4cddb4e 100644
--- a/internal/git2go/commit_test.go
+++ b/internal/git2go/commit_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package git2go
import (
diff --git a/internal/git2go/featureflags_test.go b/internal/git2go/featureflags_test.go
index 61ebd6d31..59026624c 100644
--- a/internal/git2go/featureflags_test.go
+++ b/internal/git2go/featureflags_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package git2go
import (
diff --git a/internal/git2go/serialization_test.go b/internal/git2go/serialization_test.go
index e18a10961..b9a1c3670 100644
--- a/internal/git2go/serialization_test.go
+++ b/internal/git2go/serialization_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package git2go
import (
diff --git a/internal/gitaly/client/address_parser_test.go b/internal/gitaly/client/address_parser_test.go
index f5dc2f31b..3069d7e96 100644
--- a/internal/gitaly/client/address_parser_test.go
+++ b/internal/gitaly/client/address_parser_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package client
import (
diff --git a/internal/gitaly/client/dial_test.go b/internal/gitaly/client/dial_test.go
index 686fdeaf3..9c9f72f17 100644
--- a/internal/gitaly/client/dial_test.go
+++ b/internal/gitaly/client/dial_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package client
import (
diff --git a/internal/gitaly/config/cgroups/cgroups_test.go b/internal/gitaly/config/cgroups/cgroups_test.go
index 8b8bdf8cb..34b39dcc4 100644
--- a/internal/gitaly/config/cgroups/cgroups_test.go
+++ b/internal/gitaly/config/cgroups/cgroups_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package cgroups
import (
diff --git a/internal/gitaly/config/config_test.go b/internal/gitaly/config/config_test.go
index b5690bf98..a1ab0fa56 100644
--- a/internal/gitaly/config/config_test.go
+++ b/internal/gitaly/config/config_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package config
import (
diff --git a/internal/gitaly/config/testhelper_test.go b/internal/gitaly/config/testhelper_test.go
index 94a8084b7..8700c4947 100644
--- a/internal/gitaly/config/testhelper_test.go
+++ b/internal/gitaly/config/testhelper_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package config
import (
diff --git a/internal/gitaly/diff/diff_test.go b/internal/gitaly/diff/diff_test.go
index 22a17f8c4..172c0f6df 100644
--- a/internal/gitaly/diff/diff_test.go
+++ b/internal/gitaly/diff/diff_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package diff
import (
diff --git a/internal/gitaly/diff/numstat_test.go b/internal/gitaly/diff/numstat_test.go
index 5f35a234a..cecd0ff6c 100644
--- a/internal/gitaly/diff/numstat_test.go
+++ b/internal/gitaly/diff/numstat_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package diff
import (
diff --git a/internal/gitaly/hook/custom_test.go b/internal/gitaly/hook/custom_test.go
index 4ca8f96e8..494088fd6 100644
--- a/internal/gitaly/hook/custom_test.go
+++ b/internal/gitaly/hook/custom_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package hook
import (
diff --git a/internal/gitaly/hook/postreceive_test.go b/internal/gitaly/hook/postreceive_test.go
index f78265d9f..7dcc9c32b 100644
--- a/internal/gitaly/hook/postreceive_test.go
+++ b/internal/gitaly/hook/postreceive_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package hook
import (
diff --git a/internal/gitaly/hook/prereceive_test.go b/internal/gitaly/hook/prereceive_test.go
index 7dfc05cee..e1f48171e 100644
--- a/internal/gitaly/hook/prereceive_test.go
+++ b/internal/gitaly/hook/prereceive_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package hook
import (
diff --git a/internal/gitaly/hook/sidechannel_test.go b/internal/gitaly/hook/sidechannel_test.go
index 741575752..243e0de09 100644
--- a/internal/gitaly/hook/sidechannel_test.go
+++ b/internal/gitaly/hook/sidechannel_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package hook
import (
diff --git a/internal/gitaly/hook/testhelper_test.go b/internal/gitaly/hook/testhelper_test.go
index d303318c8..0a1a4210d 100644
--- a/internal/gitaly/hook/testhelper_test.go
+++ b/internal/gitaly/hook/testhelper_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package hook
import (
diff --git a/internal/gitaly/hook/transactions_test.go b/internal/gitaly/hook/transactions_test.go
index 727485fd9..4172243b8 100644
--- a/internal/gitaly/hook/transactions_test.go
+++ b/internal/gitaly/hook/transactions_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package hook
import (
diff --git a/internal/gitaly/hook/update_test.go b/internal/gitaly/hook/update_test.go
index 326f2dca1..4a1652ad8 100644
--- a/internal/gitaly/hook/update_test.go
+++ b/internal/gitaly/hook/update_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package hook
import (
diff --git a/internal/gitaly/linguist/language_stats_test.go b/internal/gitaly/linguist/language_stats_test.go
index 56f03bce7..a17ceeb78 100644
--- a/internal/gitaly/linguist/language_stats_test.go
+++ b/internal/gitaly/linguist/language_stats_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package linguist
import (
diff --git a/internal/gitaly/linguist/linguist_test.go b/internal/gitaly/linguist/linguist_test.go
index b42168b41..68335d78a 100644
--- a/internal/gitaly/linguist/linguist_test.go
+++ b/internal/gitaly/linguist/linguist_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package linguist
import (
diff --git a/internal/gitaly/maintenance/daily_test.go b/internal/gitaly/maintenance/daily_test.go
index cb268529c..98283176a 100644
--- a/internal/gitaly/maintenance/daily_test.go
+++ b/internal/gitaly/maintenance/daily_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package maintenance
import (
diff --git a/internal/gitaly/maintenance/main_test.go b/internal/gitaly/maintenance/main_test.go
index ca345df2b..c3fa08ae7 100644
--- a/internal/gitaly/maintenance/main_test.go
+++ b/internal/gitaly/maintenance/main_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package maintenance
import (
diff --git a/internal/gitaly/maintenance/optimize_test.go b/internal/gitaly/maintenance/optimize_test.go
index 5a5ba3a0f..754c94f46 100644
--- a/internal/gitaly/maintenance/optimize_test.go
+++ b/internal/gitaly/maintenance/optimize_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package maintenance
import (
diff --git a/internal/gitaly/maintenance/randomwalker_test.go b/internal/gitaly/maintenance/randomwalker_test.go
index b360c62c2..7e3dc8c0a 100644
--- a/internal/gitaly/maintenance/randomwalker_test.go
+++ b/internal/gitaly/maintenance/randomwalker_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package maintenance
import (
diff --git a/internal/gitaly/rubyserver/balancer/balancer_test.go b/internal/gitaly/rubyserver/balancer/balancer_test.go
index baf7b9286..239e9502e 100644
--- a/internal/gitaly/rubyserver/balancer/balancer_test.go
+++ b/internal/gitaly/rubyserver/balancer/balancer_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package balancer
import (
diff --git a/internal/gitaly/rubyserver/concurrency_test.go b/internal/gitaly/rubyserver/concurrency_test.go
index 7fd6b4f28..21ba5496c 100644
--- a/internal/gitaly/rubyserver/concurrency_test.go
+++ b/internal/gitaly/rubyserver/concurrency_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package rubyserver
import (
diff --git a/internal/gitaly/rubyserver/health_test.go b/internal/gitaly/rubyserver/health_test.go
index 538c62842..4d887c877 100644
--- a/internal/gitaly/rubyserver/health_test.go
+++ b/internal/gitaly/rubyserver/health_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package rubyserver
import (
diff --git a/internal/gitaly/rubyserver/proxy_test.go b/internal/gitaly/rubyserver/proxy_test.go
index cf37a419a..0c11f56c6 100644
--- a/internal/gitaly/rubyserver/proxy_test.go
+++ b/internal/gitaly/rubyserver/proxy_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package rubyserver
import (
diff --git a/internal/gitaly/rubyserver/rubyserver_test.go b/internal/gitaly/rubyserver/rubyserver_test.go
index b12b09d24..7f7aa4a40 100644
--- a/internal/gitaly/rubyserver/rubyserver_test.go
+++ b/internal/gitaly/rubyserver/rubyserver_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package rubyserver
import (
diff --git a/internal/gitaly/rubyserver/testhelper_test.go b/internal/gitaly/rubyserver/testhelper_test.go
index 45202d6b7..0e7918cc3 100644
--- a/internal/gitaly/rubyserver/testhelper_test.go
+++ b/internal/gitaly/rubyserver/testhelper_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package rubyserver
import (
diff --git a/internal/gitaly/rubyserver/worker_test.go b/internal/gitaly/rubyserver/worker_test.go
index b7c03d1b9..6c7c730ec 100644
--- a/internal/gitaly/rubyserver/worker_test.go
+++ b/internal/gitaly/rubyserver/worker_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package rubyserver
import (
diff --git a/internal/gitaly/server/auth_test.go b/internal/gitaly/server/auth_test.go
index e650fbd10..5a128a8f9 100644
--- a/internal/gitaly/server/auth_test.go
+++ b/internal/gitaly/server/auth_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package server
import (
diff --git a/internal/gitaly/server/server_factory_test.go b/internal/gitaly/server/server_factory_test.go
index 8053b5a1e..5959a6910 100644
--- a/internal/gitaly/server/server_factory_test.go
+++ b/internal/gitaly/server/server_factory_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package server
import (
diff --git a/internal/gitaly/service/blob/blobs_test.go b/internal/gitaly/service/blob/blobs_test.go
index b5564f5d4..7fd40fb1f 100644
--- a/internal/gitaly/service/blob/blobs_test.go
+++ b/internal/gitaly/service/blob/blobs_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package blob
import (
diff --git a/internal/gitaly/service/blob/get_blob_test.go b/internal/gitaly/service/blob/get_blob_test.go
index c5fc44879..635553f9c 100644
--- a/internal/gitaly/service/blob/get_blob_test.go
+++ b/internal/gitaly/service/blob/get_blob_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package blob
import (
diff --git a/internal/gitaly/service/blob/get_blobs_test.go b/internal/gitaly/service/blob/get_blobs_test.go
index 0c2e6690b..d363a01c4 100644
--- a/internal/gitaly/service/blob/get_blobs_test.go
+++ b/internal/gitaly/service/blob/get_blobs_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package blob
import (
diff --git a/internal/gitaly/service/blob/lfs_pointers_test.go b/internal/gitaly/service/blob/lfs_pointers_test.go
index 8bb76da32..ec127bd12 100644
--- a/internal/gitaly/service/blob/lfs_pointers_test.go
+++ b/internal/gitaly/service/blob/lfs_pointers_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package blob
import (
diff --git a/internal/gitaly/service/blob/testhelper_test.go b/internal/gitaly/service/blob/testhelper_test.go
index 8a1c0fb65..4554cfc55 100644
--- a/internal/gitaly/service/blob/testhelper_test.go
+++ b/internal/gitaly/service/blob/testhelper_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package blob
import (
diff --git a/internal/gitaly/service/cleanup/apply_bfg_object_map_stream_test.go b/internal/gitaly/service/cleanup/apply_bfg_object_map_stream_test.go
index 87963c553..5f498e99f 100644
--- a/internal/gitaly/service/cleanup/apply_bfg_object_map_stream_test.go
+++ b/internal/gitaly/service/cleanup/apply_bfg_object_map_stream_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package cleanup
import (
diff --git a/internal/gitaly/service/cleanup/testhelper_test.go b/internal/gitaly/service/cleanup/testhelper_test.go
index 867973e07..6909d67da 100644
--- a/internal/gitaly/service/cleanup/testhelper_test.go
+++ b/internal/gitaly/service/cleanup/testhelper_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package cleanup
import (
diff --git a/internal/gitaly/service/commit/check_objects_exist_test.go b/internal/gitaly/service/commit/check_objects_exist_test.go
index d904b0c69..5873ca776 100644
--- a/internal/gitaly/service/commit/check_objects_exist_test.go
+++ b/internal/gitaly/service/commit/check_objects_exist_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package commit
import (
diff --git a/internal/gitaly/service/commit/commit_messages_test.go b/internal/gitaly/service/commit/commit_messages_test.go
index e0fed5e40..8a8534426 100644
--- a/internal/gitaly/service/commit/commit_messages_test.go
+++ b/internal/gitaly/service/commit/commit_messages_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package commit
import (
diff --git a/internal/gitaly/service/commit/commit_signatures_test.go b/internal/gitaly/service/commit/commit_signatures_test.go
index 936c211d2..d88573dfd 100644
--- a/internal/gitaly/service/commit/commit_signatures_test.go
+++ b/internal/gitaly/service/commit/commit_signatures_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package commit
import (
diff --git a/internal/gitaly/service/commit/commits_by_message_test.go b/internal/gitaly/service/commit/commits_by_message_test.go
index 9907340fc..b064259d3 100644
--- a/internal/gitaly/service/commit/commits_by_message_test.go
+++ b/internal/gitaly/service/commit/commits_by_message_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package commit
import (
diff --git a/internal/gitaly/service/commit/count_commits_test.go b/internal/gitaly/service/commit/count_commits_test.go
index 47625f828..301faa742 100644
--- a/internal/gitaly/service/commit/count_commits_test.go
+++ b/internal/gitaly/service/commit/count_commits_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package commit
import (
diff --git a/internal/gitaly/service/commit/count_diverging_commits_test.go b/internal/gitaly/service/commit/count_diverging_commits_test.go
index 1cf06be84..25ca341f9 100644
--- a/internal/gitaly/service/commit/count_diverging_commits_test.go
+++ b/internal/gitaly/service/commit/count_diverging_commits_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package commit
import (
diff --git a/internal/gitaly/service/commit/filter_shas_with_signatures_test.go b/internal/gitaly/service/commit/filter_shas_with_signatures_test.go
index a13760a68..ddd59f018 100644
--- a/internal/gitaly/service/commit/filter_shas_with_signatures_test.go
+++ b/internal/gitaly/service/commit/filter_shas_with_signatures_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package commit
import (
diff --git a/internal/gitaly/service/commit/find_all_commits_test.go b/internal/gitaly/service/commit/find_all_commits_test.go
index fccef63a9..aadbb305b 100644
--- a/internal/gitaly/service/commit/find_all_commits_test.go
+++ b/internal/gitaly/service/commit/find_all_commits_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package commit
import (
diff --git a/internal/gitaly/service/commit/find_commit_test.go b/internal/gitaly/service/commit/find_commit_test.go
index 831f30258..e1b9fcd23 100644
--- a/internal/gitaly/service/commit/find_commit_test.go
+++ b/internal/gitaly/service/commit/find_commit_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package commit
import (
diff --git a/internal/gitaly/service/commit/find_commits_test.go b/internal/gitaly/service/commit/find_commits_test.go
index 742986afb..226dc3b33 100644
--- a/internal/gitaly/service/commit/find_commits_test.go
+++ b/internal/gitaly/service/commit/find_commits_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package commit
import (
diff --git a/internal/gitaly/service/commit/isancestor_test.go b/internal/gitaly/service/commit/isancestor_test.go
index 8be191496..f1d522d33 100644
--- a/internal/gitaly/service/commit/isancestor_test.go
+++ b/internal/gitaly/service/commit/isancestor_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package commit
import (
diff --git a/internal/gitaly/service/commit/languages_test.go b/internal/gitaly/service/commit/languages_test.go
index 731f950cd..fed295ff7 100644
--- a/internal/gitaly/service/commit/languages_test.go
+++ b/internal/gitaly/service/commit/languages_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package commit
import (
diff --git a/internal/gitaly/service/commit/last_commit_for_path_test.go b/internal/gitaly/service/commit/last_commit_for_path_test.go
index 2aae486a9..4fccef5f3 100644
--- a/internal/gitaly/service/commit/last_commit_for_path_test.go
+++ b/internal/gitaly/service/commit/last_commit_for_path_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package commit
import (
diff --git a/internal/gitaly/service/commit/list_all_commits_test.go b/internal/gitaly/service/commit/list_all_commits_test.go
index aa1458039..4efa1b383 100644
--- a/internal/gitaly/service/commit/list_all_commits_test.go
+++ b/internal/gitaly/service/commit/list_all_commits_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package commit
import (
diff --git a/internal/gitaly/service/commit/list_commits_by_oid_test.go b/internal/gitaly/service/commit/list_commits_by_oid_test.go
index f322407d4..583224673 100644
--- a/internal/gitaly/service/commit/list_commits_by_oid_test.go
+++ b/internal/gitaly/service/commit/list_commits_by_oid_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package commit
import (
diff --git a/internal/gitaly/service/commit/list_commits_by_ref_name_test.go b/internal/gitaly/service/commit/list_commits_by_ref_name_test.go
index ffdcfa79f..73ce4a9ef 100644
--- a/internal/gitaly/service/commit/list_commits_by_ref_name_test.go
+++ b/internal/gitaly/service/commit/list_commits_by_ref_name_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package commit
import (
diff --git a/internal/gitaly/service/commit/list_commits_test.go b/internal/gitaly/service/commit/list_commits_test.go
index d7a212b4f..9a22fb07a 100644
--- a/internal/gitaly/service/commit/list_commits_test.go
+++ b/internal/gitaly/service/commit/list_commits_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package commit
import (
diff --git a/internal/gitaly/service/commit/list_files_test.go b/internal/gitaly/service/commit/list_files_test.go
index d4d4aecf4..628cccc28 100644
--- a/internal/gitaly/service/commit/list_files_test.go
+++ b/internal/gitaly/service/commit/list_files_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package commit
import (
diff --git a/internal/gitaly/service/commit/list_last_commits_for_tree_test.go b/internal/gitaly/service/commit/list_last_commits_for_tree_test.go
index 3192bfa57..122af5123 100644
--- a/internal/gitaly/service/commit/list_last_commits_for_tree_test.go
+++ b/internal/gitaly/service/commit/list_last_commits_for_tree_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package commit
import (
diff --git a/internal/gitaly/service/commit/raw_blame_test.go b/internal/gitaly/service/commit/raw_blame_test.go
index 5be7ff2f6..caaf0fba1 100644
--- a/internal/gitaly/service/commit/raw_blame_test.go
+++ b/internal/gitaly/service/commit/raw_blame_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package commit
import (
diff --git a/internal/gitaly/service/commit/stats_test.go b/internal/gitaly/service/commit/stats_test.go
index 735957319..747f0349b 100644
--- a/internal/gitaly/service/commit/stats_test.go
+++ b/internal/gitaly/service/commit/stats_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package commit
import (
diff --git a/internal/gitaly/service/commit/testhelper_test.go b/internal/gitaly/service/commit/testhelper_test.go
index ad93dcedf..9a33d8645 100644
--- a/internal/gitaly/service/commit/testhelper_test.go
+++ b/internal/gitaly/service/commit/testhelper_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package commit
import (
diff --git a/internal/gitaly/service/commit/tree_entries_test.go b/internal/gitaly/service/commit/tree_entries_test.go
index b94ec8cc9..af2c64ca2 100644
--- a/internal/gitaly/service/commit/tree_entries_test.go
+++ b/internal/gitaly/service/commit/tree_entries_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package commit
import (
diff --git a/internal/gitaly/service/commit/tree_entry_test.go b/internal/gitaly/service/commit/tree_entry_test.go
index dd50b4ac8..1396e64c4 100644
--- a/internal/gitaly/service/commit/tree_entry_test.go
+++ b/internal/gitaly/service/commit/tree_entry_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package commit
import (
diff --git a/internal/gitaly/service/conflicts/list_conflict_files_test.go b/internal/gitaly/service/conflicts/list_conflict_files_test.go
index 3e74cb980..6052ccd01 100644
--- a/internal/gitaly/service/conflicts/list_conflict_files_test.go
+++ b/internal/gitaly/service/conflicts/list_conflict_files_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package conflicts
import (
diff --git a/internal/gitaly/service/conflicts/resolve_conflicts_test.go b/internal/gitaly/service/conflicts/resolve_conflicts_test.go
index 1103b78dc..83ccc258e 100644
--- a/internal/gitaly/service/conflicts/resolve_conflicts_test.go
+++ b/internal/gitaly/service/conflicts/resolve_conflicts_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package conflicts
import (
diff --git a/internal/gitaly/service/conflicts/testhelper_test.go b/internal/gitaly/service/conflicts/testhelper_test.go
index 49dac5af2..fcfafc55b 100644
--- a/internal/gitaly/service/conflicts/testhelper_test.go
+++ b/internal/gitaly/service/conflicts/testhelper_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package conflicts
import (
diff --git a/internal/gitaly/service/diff/commit_test.go b/internal/gitaly/service/diff/commit_test.go
index 7f4afac41..4d9a50ceb 100644
--- a/internal/gitaly/service/diff/commit_test.go
+++ b/internal/gitaly/service/diff/commit_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package diff
import (
diff --git a/internal/gitaly/service/diff/find_changed_paths_test.go b/internal/gitaly/service/diff/find_changed_paths_test.go
index 3873e2abf..1d771d9bd 100644
--- a/internal/gitaly/service/diff/find_changed_paths_test.go
+++ b/internal/gitaly/service/diff/find_changed_paths_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package diff
import (
diff --git a/internal/gitaly/service/diff/numstat_test.go b/internal/gitaly/service/diff/numstat_test.go
index aa8d058c8..730e63259 100644
--- a/internal/gitaly/service/diff/numstat_test.go
+++ b/internal/gitaly/service/diff/numstat_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package diff
import (
diff --git a/internal/gitaly/service/diff/raw_test.go b/internal/gitaly/service/diff/raw_test.go
index eda44e902..5183ebfad 100644
--- a/internal/gitaly/service/diff/raw_test.go
+++ b/internal/gitaly/service/diff/raw_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package diff
import (
diff --git a/internal/gitaly/service/diff/testhelper_test.go b/internal/gitaly/service/diff/testhelper_test.go
index c5094df10..25570c4ae 100644
--- a/internal/gitaly/service/diff/testhelper_test.go
+++ b/internal/gitaly/service/diff/testhelper_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package diff
import (
diff --git a/internal/gitaly/service/hook/pack_objects_test.go b/internal/gitaly/service/hook/pack_objects_test.go
index c11092806..164ba95ad 100644
--- a/internal/gitaly/service/hook/pack_objects_test.go
+++ b/internal/gitaly/service/hook/pack_objects_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package hook
import (
diff --git a/internal/gitaly/service/hook/post_receive_test.go b/internal/gitaly/service/hook/post_receive_test.go
index 96b3d221f..90a84a1b8 100644
--- a/internal/gitaly/service/hook/post_receive_test.go
+++ b/internal/gitaly/service/hook/post_receive_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package hook
import (
diff --git a/internal/gitaly/service/hook/pre_receive_test.go b/internal/gitaly/service/hook/pre_receive_test.go
index 12fed62be..a8b8ed6d6 100644
--- a/internal/gitaly/service/hook/pre_receive_test.go
+++ b/internal/gitaly/service/hook/pre_receive_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package hook
import (
diff --git a/internal/gitaly/service/hook/reference_transaction_test.go b/internal/gitaly/service/hook/reference_transaction_test.go
index 5a1c2c9eb..f8e32ed24 100644
--- a/internal/gitaly/service/hook/reference_transaction_test.go
+++ b/internal/gitaly/service/hook/reference_transaction_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package hook
import (
diff --git a/internal/gitaly/service/hook/testhelper_test.go b/internal/gitaly/service/hook/testhelper_test.go
index 7bd07dfa1..33e3debe2 100644
--- a/internal/gitaly/service/hook/testhelper_test.go
+++ b/internal/gitaly/service/hook/testhelper_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package hook
import (
diff --git a/internal/gitaly/service/hook/update_test.go b/internal/gitaly/service/hook/update_test.go
index 233745f6c..0152dae4f 100644
--- a/internal/gitaly/service/hook/update_test.go
+++ b/internal/gitaly/service/hook/update_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package hook
import (
diff --git a/internal/gitaly/service/internalgitaly/testhelper_test.go b/internal/gitaly/service/internalgitaly/testhelper_test.go
index 62e8c8dc3..aa6270d19 100644
--- a/internal/gitaly/service/internalgitaly/testhelper_test.go
+++ b/internal/gitaly/service/internalgitaly/testhelper_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package internalgitaly
import (
diff --git a/internal/gitaly/service/internalgitaly/walkrepos_test.go b/internal/gitaly/service/internalgitaly/walkrepos_test.go
index 1ef8fbde1..c9bda9922 100644
--- a/internal/gitaly/service/internalgitaly/walkrepos_test.go
+++ b/internal/gitaly/service/internalgitaly/walkrepos_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package internalgitaly
import (
diff --git a/internal/gitaly/service/namespace/namespace_test.go b/internal/gitaly/service/namespace/namespace_test.go
index 3b93ecefa..51b4b64a9 100644
--- a/internal/gitaly/service/namespace/namespace_test.go
+++ b/internal/gitaly/service/namespace/namespace_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package namespace
import (
diff --git a/internal/gitaly/service/namespace/testhelper_test.go b/internal/gitaly/service/namespace/testhelper_test.go
index bc7c9e90c..6323a164b 100644
--- a/internal/gitaly/service/namespace/testhelper_test.go
+++ b/internal/gitaly/service/namespace/testhelper_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package namespace
import (
diff --git a/internal/gitaly/service/objectpool/alternates_test.go b/internal/gitaly/service/objectpool/alternates_test.go
index 340cc688e..b1129d81c 100644
--- a/internal/gitaly/service/objectpool/alternates_test.go
+++ b/internal/gitaly/service/objectpool/alternates_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package objectpool
import (
diff --git a/internal/gitaly/service/objectpool/create_test.go b/internal/gitaly/service/objectpool/create_test.go
index 7e7b66759..f040d6f8f 100644
--- a/internal/gitaly/service/objectpool/create_test.go
+++ b/internal/gitaly/service/objectpool/create_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package objectpool
import (
diff --git a/internal/gitaly/service/objectpool/fetch_into_object_pool_test.go b/internal/gitaly/service/objectpool/fetch_into_object_pool_test.go
index df1951dba..e9a4320b0 100644
--- a/internal/gitaly/service/objectpool/fetch_into_object_pool_test.go
+++ b/internal/gitaly/service/objectpool/fetch_into_object_pool_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package objectpool
import (
diff --git a/internal/gitaly/service/objectpool/get_test.go b/internal/gitaly/service/objectpool/get_test.go
index c902597a1..138da8070 100644
--- a/internal/gitaly/service/objectpool/get_test.go
+++ b/internal/gitaly/service/objectpool/get_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package objectpool
import (
diff --git a/internal/gitaly/service/objectpool/link_test.go b/internal/gitaly/service/objectpool/link_test.go
index 719aa5461..0ccae96a6 100644
--- a/internal/gitaly/service/objectpool/link_test.go
+++ b/internal/gitaly/service/objectpool/link_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package objectpool
import (
diff --git a/internal/gitaly/service/objectpool/reduplicate_test.go b/internal/gitaly/service/objectpool/reduplicate_test.go
index 4a0215494..e05a86309 100644
--- a/internal/gitaly/service/objectpool/reduplicate_test.go
+++ b/internal/gitaly/service/objectpool/reduplicate_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package objectpool
import (
diff --git a/internal/gitaly/service/objectpool/testhelper_test.go b/internal/gitaly/service/objectpool/testhelper_test.go
index 09c116974..39bbfbb78 100644
--- a/internal/gitaly/service/objectpool/testhelper_test.go
+++ b/internal/gitaly/service/objectpool/testhelper_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package objectpool
import (
diff --git a/internal/gitaly/service/operations/apply_patch_test.go b/internal/gitaly/service/operations/apply_patch_test.go
index 3caa506b6..e3c959218 100644
--- a/internal/gitaly/service/operations/apply_patch_test.go
+++ b/internal/gitaly/service/operations/apply_patch_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package operations
import (
diff --git a/internal/gitaly/service/operations/branches_test.go b/internal/gitaly/service/operations/branches_test.go
index 35e9e5fd8..98444630c 100644
--- a/internal/gitaly/service/operations/branches_test.go
+++ b/internal/gitaly/service/operations/branches_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package operations
import (
diff --git a/internal/gitaly/service/operations/cherry_pick_test.go b/internal/gitaly/service/operations/cherry_pick_test.go
index a24711f78..923fdd23a 100644
--- a/internal/gitaly/service/operations/cherry_pick_test.go
+++ b/internal/gitaly/service/operations/cherry_pick_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package operations
import (
diff --git a/internal/gitaly/service/operations/commit_files_test.go b/internal/gitaly/service/operations/commit_files_test.go
index ad904a642..b1643333e 100644
--- a/internal/gitaly/service/operations/commit_files_test.go
+++ b/internal/gitaly/service/operations/commit_files_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package operations
import (
diff --git a/internal/gitaly/service/operations/merge_test.go b/internal/gitaly/service/operations/merge_test.go
index fabf76446..8eebfbce6 100644
--- a/internal/gitaly/service/operations/merge_test.go
+++ b/internal/gitaly/service/operations/merge_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package operations
import (
diff --git a/internal/gitaly/service/operations/rebase_test.go b/internal/gitaly/service/operations/rebase_test.go
index 25f813af0..0455bee51 100644
--- a/internal/gitaly/service/operations/rebase_test.go
+++ b/internal/gitaly/service/operations/rebase_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package operations
import (
diff --git a/internal/gitaly/service/operations/revert_test.go b/internal/gitaly/service/operations/revert_test.go
index 2520d462f..bb1242bc6 100644
--- a/internal/gitaly/service/operations/revert_test.go
+++ b/internal/gitaly/service/operations/revert_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package operations
import (
diff --git a/internal/gitaly/service/operations/squash_test.go b/internal/gitaly/service/operations/squash_test.go
index 387099e9a..f79af65dd 100644
--- a/internal/gitaly/service/operations/squash_test.go
+++ b/internal/gitaly/service/operations/squash_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package operations
import (
diff --git a/internal/gitaly/service/operations/submodules_test.go b/internal/gitaly/service/operations/submodules_test.go
index e2d39e1be..009186512 100644
--- a/internal/gitaly/service/operations/submodules_test.go
+++ b/internal/gitaly/service/operations/submodules_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package operations
import (
diff --git a/internal/gitaly/service/operations/tags_test.go b/internal/gitaly/service/operations/tags_test.go
index 37e30c5c8..ca2c38b77 100644
--- a/internal/gitaly/service/operations/tags_test.go
+++ b/internal/gitaly/service/operations/tags_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package operations
import (
diff --git a/internal/gitaly/service/operations/testhelper_test.go b/internal/gitaly/service/operations/testhelper_test.go
index 1eda70801..9d5be410f 100644
--- a/internal/gitaly/service/operations/testhelper_test.go
+++ b/internal/gitaly/service/operations/testhelper_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package operations
import (
diff --git a/internal/gitaly/service/operations/update_branches_test.go b/internal/gitaly/service/operations/update_branches_test.go
index 2cb1d9d97..7a717ccf1 100644
--- a/internal/gitaly/service/operations/update_branches_test.go
+++ b/internal/gitaly/service/operations/update_branches_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package operations
import (
diff --git a/internal/gitaly/service/operations/utils_test.go b/internal/gitaly/service/operations/utils_test.go
index a6541a648..488981428 100644
--- a/internal/gitaly/service/operations/utils_test.go
+++ b/internal/gitaly/service/operations/utils_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package operations
import (
diff --git a/internal/gitaly/service/ref/branches_test.go b/internal/gitaly/service/ref/branches_test.go
index d4b3011e4..f96fea503 100644
--- a/internal/gitaly/service/ref/branches_test.go
+++ b/internal/gitaly/service/ref/branches_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package ref
import (
diff --git a/internal/gitaly/service/ref/delete_refs_test.go b/internal/gitaly/service/ref/delete_refs_test.go
index f179298a7..d756ec2ff 100644
--- a/internal/gitaly/service/ref/delete_refs_test.go
+++ b/internal/gitaly/service/ref/delete_refs_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package ref
import (
diff --git a/internal/gitaly/service/ref/find_all_tags_test.go b/internal/gitaly/service/ref/find_all_tags_test.go
index 023bb02cc..4396c8a99 100644
--- a/internal/gitaly/service/ref/find_all_tags_test.go
+++ b/internal/gitaly/service/ref/find_all_tags_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package ref
import (
diff --git a/internal/gitaly/service/ref/find_refs_by_oid_test.go b/internal/gitaly/service/ref/find_refs_by_oid_test.go
index b26528394..cf50884a6 100644
--- a/internal/gitaly/service/ref/find_refs_by_oid_test.go
+++ b/internal/gitaly/service/ref/find_refs_by_oid_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package ref
import (
diff --git a/internal/gitaly/service/ref/list_refs_test.go b/internal/gitaly/service/ref/list_refs_test.go
index b9df9c5a1..813668ae7 100644
--- a/internal/gitaly/service/ref/list_refs_test.go
+++ b/internal/gitaly/service/ref/list_refs_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package ref
import (
diff --git a/internal/gitaly/service/ref/pack_refs_test.go b/internal/gitaly/service/ref/pack_refs_test.go
index 0d15bcf0b..bb8d276bd 100644
--- a/internal/gitaly/service/ref/pack_refs_test.go
+++ b/internal/gitaly/service/ref/pack_refs_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package ref
import (
diff --git a/internal/gitaly/service/ref/refexists_test.go b/internal/gitaly/service/ref/refexists_test.go
index 9cdca75ff..c30e2e814 100644
--- a/internal/gitaly/service/ref/refexists_test.go
+++ b/internal/gitaly/service/ref/refexists_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package ref
import (
diff --git a/internal/gitaly/service/ref/refs_test.go b/internal/gitaly/service/ref/refs_test.go
index c9122a142..aa4e0faff 100644
--- a/internal/gitaly/service/ref/refs_test.go
+++ b/internal/gitaly/service/ref/refs_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package ref
import (
diff --git a/internal/gitaly/service/ref/remote_branches_test.go b/internal/gitaly/service/ref/remote_branches_test.go
index 8d6a71568..a3ec8843d 100644
--- a/internal/gitaly/service/ref/remote_branches_test.go
+++ b/internal/gitaly/service/ref/remote_branches_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package ref
import (
diff --git a/internal/gitaly/service/ref/tag_messages_test.go b/internal/gitaly/service/ref/tag_messages_test.go
index 0791f83b4..68199f401 100644
--- a/internal/gitaly/service/ref/tag_messages_test.go
+++ b/internal/gitaly/service/ref/tag_messages_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package ref
import (
diff --git a/internal/gitaly/service/ref/tag_signatures_test.go b/internal/gitaly/service/ref/tag_signatures_test.go
index fed80123b..6a9986758 100644
--- a/internal/gitaly/service/ref/tag_signatures_test.go
+++ b/internal/gitaly/service/ref/tag_signatures_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package ref
import (
diff --git a/internal/gitaly/service/ref/testhelper_test.go b/internal/gitaly/service/ref/testhelper_test.go
index 0157c40e9..3c2fe0181 100644
--- a/internal/gitaly/service/ref/testhelper_test.go
+++ b/internal/gitaly/service/ref/testhelper_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package ref
import (
diff --git a/internal/gitaly/service/ref/util_test.go b/internal/gitaly/service/ref/util_test.go
index 3350668cc..9c17825d1 100644
--- a/internal/gitaly/service/ref/util_test.go
+++ b/internal/gitaly/service/ref/util_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package ref
import (
diff --git a/internal/gitaly/service/remote/find_remote_repository_test.go b/internal/gitaly/service/remote/find_remote_repository_test.go
index 6f82f66f5..2cd1b2263 100644
--- a/internal/gitaly/service/remote/find_remote_repository_test.go
+++ b/internal/gitaly/service/remote/find_remote_repository_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package remote
import (
diff --git a/internal/gitaly/service/remote/find_remote_root_ref_test.go b/internal/gitaly/service/remote/find_remote_root_ref_test.go
index 76f815050..f0690ca01 100644
--- a/internal/gitaly/service/remote/find_remote_root_ref_test.go
+++ b/internal/gitaly/service/remote/find_remote_root_ref_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package remote
import (
diff --git a/internal/gitaly/service/remote/testhelper_test.go b/internal/gitaly/service/remote/testhelper_test.go
index 5edddfec1..f0a84b358 100644
--- a/internal/gitaly/service/remote/testhelper_test.go
+++ b/internal/gitaly/service/remote/testhelper_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package remote
import (
diff --git a/internal/gitaly/service/remote/update_remote_mirror_test.go b/internal/gitaly/service/remote/update_remote_mirror_test.go
index 0dcbf078a..b3a3ff0cc 100644
--- a/internal/gitaly/service/remote/update_remote_mirror_test.go
+++ b/internal/gitaly/service/remote/update_remote_mirror_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package remote
import (
diff --git a/internal/gitaly/service/repository/apply_gitattributes_test.go b/internal/gitaly/service/repository/apply_gitattributes_test.go
index 4a684421f..ddfc888fc 100644
--- a/internal/gitaly/service/repository/apply_gitattributes_test.go
+++ b/internal/gitaly/service/repository/apply_gitattributes_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package repository
import (
diff --git a/internal/gitaly/service/repository/archive_test.go b/internal/gitaly/service/repository/archive_test.go
index 41c2cc8dd..5f18f8679 100644
--- a/internal/gitaly/service/repository/archive_test.go
+++ b/internal/gitaly/service/repository/archive_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package repository
import (
diff --git a/internal/gitaly/service/repository/backup_custom_hooks_test.go b/internal/gitaly/service/repository/backup_custom_hooks_test.go
index 9e6e62d19..25e898cda 100644
--- a/internal/gitaly/service/repository/backup_custom_hooks_test.go
+++ b/internal/gitaly/service/repository/backup_custom_hooks_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package repository
import (
diff --git a/internal/gitaly/service/repository/calculate_checksum_test.go b/internal/gitaly/service/repository/calculate_checksum_test.go
index fedadcee2..fd0ee09e4 100644
--- a/internal/gitaly/service/repository/calculate_checksum_test.go
+++ b/internal/gitaly/service/repository/calculate_checksum_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package repository
import (
diff --git a/internal/gitaly/service/repository/cleanup_test.go b/internal/gitaly/service/repository/cleanup_test.go
index a76a8f877..3f8901a5a 100644
--- a/internal/gitaly/service/repository/cleanup_test.go
+++ b/internal/gitaly/service/repository/cleanup_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package repository
import (
diff --git a/internal/gitaly/service/repository/commit_graph_test.go b/internal/gitaly/service/repository/commit_graph_test.go
index ef29b9dcf..2da765bf2 100644
--- a/internal/gitaly/service/repository/commit_graph_test.go
+++ b/internal/gitaly/service/repository/commit_graph_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package repository
import (
diff --git a/internal/gitaly/service/repository/config_test.go b/internal/gitaly/service/repository/config_test.go
index 494105041..b07de01f5 100644
--- a/internal/gitaly/service/repository/config_test.go
+++ b/internal/gitaly/service/repository/config_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package repository
import (
diff --git a/internal/gitaly/service/repository/create_bundle_from_ref_list_test.go b/internal/gitaly/service/repository/create_bundle_from_ref_list_test.go
index 4cf1c6883..ad101c775 100644
--- a/internal/gitaly/service/repository/create_bundle_from_ref_list_test.go
+++ b/internal/gitaly/service/repository/create_bundle_from_ref_list_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package repository
import (
diff --git a/internal/gitaly/service/repository/create_bundle_test.go b/internal/gitaly/service/repository/create_bundle_test.go
index a7ab8190e..5af46df83 100644
--- a/internal/gitaly/service/repository/create_bundle_test.go
+++ b/internal/gitaly/service/repository/create_bundle_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package repository
import (
diff --git a/internal/gitaly/service/repository/create_fork_test.go b/internal/gitaly/service/repository/create_fork_test.go
index a25c83aa5..5b1c0cb86 100644
--- a/internal/gitaly/service/repository/create_fork_test.go
+++ b/internal/gitaly/service/repository/create_fork_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package repository
import (
diff --git a/internal/gitaly/service/repository/create_repository_from_bundle_test.go b/internal/gitaly/service/repository/create_repository_from_bundle_test.go
index aac420c3a..4a3e4a602 100644
--- a/internal/gitaly/service/repository/create_repository_from_bundle_test.go
+++ b/internal/gitaly/service/repository/create_repository_from_bundle_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package repository
import (
diff --git a/internal/gitaly/service/repository/create_repository_from_snapshot_test.go b/internal/gitaly/service/repository/create_repository_from_snapshot_test.go
index cf605fc39..c7269d370 100644
--- a/internal/gitaly/service/repository/create_repository_from_snapshot_test.go
+++ b/internal/gitaly/service/repository/create_repository_from_snapshot_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package repository
import (
diff --git a/internal/gitaly/service/repository/create_repository_from_url_test.go b/internal/gitaly/service/repository/create_repository_from_url_test.go
index 5fdd93ccb..cc2e46338 100644
--- a/internal/gitaly/service/repository/create_repository_from_url_test.go
+++ b/internal/gitaly/service/repository/create_repository_from_url_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package repository
import (
diff --git a/internal/gitaly/service/repository/create_repository_test.go b/internal/gitaly/service/repository/create_repository_test.go
index 61a75db3a..52e95d467 100644
--- a/internal/gitaly/service/repository/create_repository_test.go
+++ b/internal/gitaly/service/repository/create_repository_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package repository
import (
diff --git a/internal/gitaly/service/repository/fetch_bundle_test.go b/internal/gitaly/service/repository/fetch_bundle_test.go
index 03a2bd0b8..993c1aab3 100644
--- a/internal/gitaly/service/repository/fetch_bundle_test.go
+++ b/internal/gitaly/service/repository/fetch_bundle_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package repository
import (
diff --git a/internal/gitaly/service/repository/fetch_remote_test.go b/internal/gitaly/service/repository/fetch_remote_test.go
index c5e164ff1..a8ede341c 100644
--- a/internal/gitaly/service/repository/fetch_remote_test.go
+++ b/internal/gitaly/service/repository/fetch_remote_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package repository
import (
diff --git a/internal/gitaly/service/repository/fetch_test.go b/internal/gitaly/service/repository/fetch_test.go
index 571a4b228..b97d3259e 100644
--- a/internal/gitaly/service/repository/fetch_test.go
+++ b/internal/gitaly/service/repository/fetch_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package repository
import (
diff --git a/internal/gitaly/service/repository/fsck_test.go b/internal/gitaly/service/repository/fsck_test.go
index a848bc66d..b6b27a8c7 100644
--- a/internal/gitaly/service/repository/fsck_test.go
+++ b/internal/gitaly/service/repository/fsck_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package repository
import (
diff --git a/internal/gitaly/service/repository/fullpath_test.go b/internal/gitaly/service/repository/fullpath_test.go
index cbe89f8f7..ad7be92dc 100644
--- a/internal/gitaly/service/repository/fullpath_test.go
+++ b/internal/gitaly/service/repository/fullpath_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package repository
import (
diff --git a/internal/gitaly/service/repository/gc_test.go b/internal/gitaly/service/repository/gc_test.go
index 6d14c49f5..c12754412 100644
--- a/internal/gitaly/service/repository/gc_test.go
+++ b/internal/gitaly/service/repository/gc_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package repository
import (
diff --git a/internal/gitaly/service/repository/info_attributes_test.go b/internal/gitaly/service/repository/info_attributes_test.go
index afdd5233a..108322507 100644
--- a/internal/gitaly/service/repository/info_attributes_test.go
+++ b/internal/gitaly/service/repository/info_attributes_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package repository
import (
diff --git a/internal/gitaly/service/repository/license_test.go b/internal/gitaly/service/repository/license_test.go
index 0cd09ba71..7fe42580b 100644
--- a/internal/gitaly/service/repository/license_test.go
+++ b/internal/gitaly/service/repository/license_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package repository
import (
diff --git a/internal/gitaly/service/repository/merge_base_test.go b/internal/gitaly/service/repository/merge_base_test.go
index 3fd939af9..5079cd954 100644
--- a/internal/gitaly/service/repository/merge_base_test.go
+++ b/internal/gitaly/service/repository/merge_base_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package repository
import (
diff --git a/internal/gitaly/service/repository/midx_test.go b/internal/gitaly/service/repository/midx_test.go
index 842a04d52..ea358bf36 100644
--- a/internal/gitaly/service/repository/midx_test.go
+++ b/internal/gitaly/service/repository/midx_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package repository
import (
diff --git a/internal/gitaly/service/repository/optimize_test.go b/internal/gitaly/service/repository/optimize_test.go
index 84762d7b6..92f9bddfe 100644
--- a/internal/gitaly/service/repository/optimize_test.go
+++ b/internal/gitaly/service/repository/optimize_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package repository
import (
diff --git a/internal/gitaly/service/repository/prune_unreachable_objects_test.go b/internal/gitaly/service/repository/prune_unreachable_objects_test.go
index 440bb45dd..d5ba20e87 100644
--- a/internal/gitaly/service/repository/prune_unreachable_objects_test.go
+++ b/internal/gitaly/service/repository/prune_unreachable_objects_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package repository
import (
diff --git a/internal/gitaly/service/repository/raw_changes_test.go b/internal/gitaly/service/repository/raw_changes_test.go
index d857cbb70..aeb4a96c2 100644
--- a/internal/gitaly/service/repository/raw_changes_test.go
+++ b/internal/gitaly/service/repository/raw_changes_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package repository
import (
diff --git a/internal/gitaly/service/repository/redirecting_test_server_test.go b/internal/gitaly/service/repository/redirecting_test_server_test.go
index 65aa014d9..2b3fe9e95 100644
--- a/internal/gitaly/service/repository/redirecting_test_server_test.go
+++ b/internal/gitaly/service/repository/redirecting_test_server_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package repository
import (
diff --git a/internal/gitaly/service/repository/remove_test.go b/internal/gitaly/service/repository/remove_test.go
index 94d8c1a9f..5b8ab01b1 100644
--- a/internal/gitaly/service/repository/remove_test.go
+++ b/internal/gitaly/service/repository/remove_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package repository
import (
diff --git a/internal/gitaly/service/repository/rename_test.go b/internal/gitaly/service/repository/rename_test.go
index 71edbc680..a394f0798 100644
--- a/internal/gitaly/service/repository/rename_test.go
+++ b/internal/gitaly/service/repository/rename_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package repository
import (
diff --git a/internal/gitaly/service/repository/repack_test.go b/internal/gitaly/service/repository/repack_test.go
index 9de79dba3..e89f25cb9 100644
--- a/internal/gitaly/service/repository/repack_test.go
+++ b/internal/gitaly/service/repository/repack_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package repository
import (
diff --git a/internal/gitaly/service/repository/replicate_test.go b/internal/gitaly/service/repository/replicate_test.go
index 1b6d17954..d11706ee8 100644
--- a/internal/gitaly/service/repository/replicate_test.go
+++ b/internal/gitaly/service/repository/replicate_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package repository
import (
diff --git a/internal/gitaly/service/repository/repository_test.go b/internal/gitaly/service/repository/repository_test.go
index a834f19dc..7cc3226cc 100644
--- a/internal/gitaly/service/repository/repository_test.go
+++ b/internal/gitaly/service/repository/repository_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package repository
import (
diff --git a/internal/gitaly/service/repository/restore_custom_hooks_test.go b/internal/gitaly/service/repository/restore_custom_hooks_test.go
index caa6d0290..e05e74a2d 100644
--- a/internal/gitaly/service/repository/restore_custom_hooks_test.go
+++ b/internal/gitaly/service/repository/restore_custom_hooks_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package repository
import (
diff --git a/internal/gitaly/service/repository/search_files_test.go b/internal/gitaly/service/repository/search_files_test.go
index b314f50ae..ff4f20f13 100644
--- a/internal/gitaly/service/repository/search_files_test.go
+++ b/internal/gitaly/service/repository/search_files_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package repository
import (
diff --git a/internal/gitaly/service/repository/server_test.go b/internal/gitaly/service/repository/server_test.go
index 861aa3674..fd2165a2c 100644
--- a/internal/gitaly/service/repository/server_test.go
+++ b/internal/gitaly/service/repository/server_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package repository
import (
diff --git a/internal/gitaly/service/repository/size_test.go b/internal/gitaly/service/repository/size_test.go
index be9459f2f..e4bc784d3 100644
--- a/internal/gitaly/service/repository/size_test.go
+++ b/internal/gitaly/service/repository/size_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package repository
import (
diff --git a/internal/gitaly/service/repository/snapshot_test.go b/internal/gitaly/service/repository/snapshot_test.go
index 76f7c8afe..4dce4e410 100644
--- a/internal/gitaly/service/repository/snapshot_test.go
+++ b/internal/gitaly/service/repository/snapshot_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package repository
import (
diff --git a/internal/gitaly/service/repository/testhelper_test.go b/internal/gitaly/service/repository/testhelper_test.go
index 2ab8d552a..47845092c 100644
--- a/internal/gitaly/service/repository/testhelper_test.go
+++ b/internal/gitaly/service/repository/testhelper_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package repository
import (
diff --git a/internal/gitaly/service/repository/util_test.go b/internal/gitaly/service/repository/util_test.go
index 10c5606ee..8991ecad8 100644
--- a/internal/gitaly/service/repository/util_test.go
+++ b/internal/gitaly/service/repository/util_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package repository
import (
diff --git a/internal/gitaly/service/repository/write_ref_test.go b/internal/gitaly/service/repository/write_ref_test.go
index 350784912..b61586603 100644
--- a/internal/gitaly/service/repository/write_ref_test.go
+++ b/internal/gitaly/service/repository/write_ref_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package repository
import (
diff --git a/internal/gitaly/service/server/disk_stats_test.go b/internal/gitaly/service/server/disk_stats_test.go
index 566dbe085..f0e5f34f4 100644
--- a/internal/gitaly/service/server/disk_stats_test.go
+++ b/internal/gitaly/service/server/disk_stats_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package server
import (
diff --git a/internal/gitaly/service/server/info_test.go b/internal/gitaly/service/server/info_test.go
index 018806c0e..8f31fdb25 100644
--- a/internal/gitaly/service/server/info_test.go
+++ b/internal/gitaly/service/server/info_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package server
import (
diff --git a/internal/gitaly/service/server/server_test.go b/internal/gitaly/service/server/server_test.go
index 7e5f4800d..d7e3b9c3e 100644
--- a/internal/gitaly/service/server/server_test.go
+++ b/internal/gitaly/service/server/server_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package server
import (
diff --git a/internal/gitaly/service/server/storage_status_unix.go b/internal/gitaly/service/server/storage_status_unix.go
index f129e4a34..aae1836bd 100644
--- a/internal/gitaly/service/server/storage_status_unix.go
+++ b/internal/gitaly/service/server/storage_status_unix.go
@@ -1,5 +1,4 @@
//go:build !openbsd
-// +build !openbsd
package server
diff --git a/internal/gitaly/service/smarthttp/inforefs_test.go b/internal/gitaly/service/smarthttp/inforefs_test.go
index ca0e6e4cc..2ffe65c39 100644
--- a/internal/gitaly/service/smarthttp/inforefs_test.go
+++ b/internal/gitaly/service/smarthttp/inforefs_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package smarthttp
import (
diff --git a/internal/gitaly/service/smarthttp/receive_pack_test.go b/internal/gitaly/service/smarthttp/receive_pack_test.go
index 21237a4a1..89c0acc2d 100644
--- a/internal/gitaly/service/smarthttp/receive_pack_test.go
+++ b/internal/gitaly/service/smarthttp/receive_pack_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package smarthttp
import (
diff --git a/internal/gitaly/service/smarthttp/testhelper_test.go b/internal/gitaly/service/smarthttp/testhelper_test.go
index 19312bd98..db0d9a1b3 100644
--- a/internal/gitaly/service/smarthttp/testhelper_test.go
+++ b/internal/gitaly/service/smarthttp/testhelper_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package smarthttp
import (
diff --git a/internal/gitaly/service/smarthttp/upload_pack_test.go b/internal/gitaly/service/smarthttp/upload_pack_test.go
index a9dfad29c..cf6590bd2 100644
--- a/internal/gitaly/service/smarthttp/upload_pack_test.go
+++ b/internal/gitaly/service/smarthttp/upload_pack_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package smarthttp
import (
diff --git a/internal/gitaly/service/ssh/receive_pack_test.go b/internal/gitaly/service/ssh/receive_pack_test.go
index 342285ccc..92e7c6146 100644
--- a/internal/gitaly/service/ssh/receive_pack_test.go
+++ b/internal/gitaly/service/ssh/receive_pack_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package ssh
import (
diff --git a/internal/gitaly/service/ssh/testhelper_test.go b/internal/gitaly/service/ssh/testhelper_test.go
index 2361af04a..407c6dbe4 100644
--- a/internal/gitaly/service/ssh/testhelper_test.go
+++ b/internal/gitaly/service/ssh/testhelper_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package ssh
import (
diff --git a/internal/gitaly/service/ssh/upload_archive_test.go b/internal/gitaly/service/ssh/upload_archive_test.go
index 1e1a95b83..11b328567 100644
--- a/internal/gitaly/service/ssh/upload_archive_test.go
+++ b/internal/gitaly/service/ssh/upload_archive_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package ssh
import (
diff --git a/internal/gitaly/service/ssh/upload_pack_test.go b/internal/gitaly/service/ssh/upload_pack_test.go
index 811517e84..3739d2617 100644
--- a/internal/gitaly/service/ssh/upload_pack_test.go
+++ b/internal/gitaly/service/ssh/upload_pack_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package ssh
import (
diff --git a/internal/gitaly/service/wiki/find_page_test.go b/internal/gitaly/service/wiki/find_page_test.go
index 06f67a186..482337281 100644
--- a/internal/gitaly/service/wiki/find_page_test.go
+++ b/internal/gitaly/service/wiki/find_page_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package wiki
import (
diff --git a/internal/gitaly/service/wiki/get_all_pages_test.go b/internal/gitaly/service/wiki/get_all_pages_test.go
index 8fbee9550..d2a376c41 100644
--- a/internal/gitaly/service/wiki/get_all_pages_test.go
+++ b/internal/gitaly/service/wiki/get_all_pages_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package wiki
import (
diff --git a/internal/gitaly/service/wiki/list_pages_test.go b/internal/gitaly/service/wiki/list_pages_test.go
index 6502c6cc1..cbe827772 100644
--- a/internal/gitaly/service/wiki/list_pages_test.go
+++ b/internal/gitaly/service/wiki/list_pages_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package wiki
import (
diff --git a/internal/gitaly/service/wiki/testhelper_test.go b/internal/gitaly/service/wiki/testhelper_test.go
index db4207ffd..3d024241f 100644
--- a/internal/gitaly/service/wiki/testhelper_test.go
+++ b/internal/gitaly/service/wiki/testhelper_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package wiki
import (
diff --git a/internal/gitaly/service/wiki/update_page_test.go b/internal/gitaly/service/wiki/update_page_test.go
index a05c0139e..d3a64350f 100644
--- a/internal/gitaly/service/wiki/update_page_test.go
+++ b/internal/gitaly/service/wiki/update_page_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package wiki
import (
diff --git a/internal/gitaly/service/wiki/write_page_test.go b/internal/gitaly/service/wiki/write_page_test.go
index 8e1ca4186..c7ebd049c 100644
--- a/internal/gitaly/service/wiki/write_page_test.go
+++ b/internal/gitaly/service/wiki/write_page_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package wiki
import (
diff --git a/internal/gitaly/storage/locator_test.go b/internal/gitaly/storage/locator_test.go
index e80b5f27b..1f53770e3 100644
--- a/internal/gitaly/storage/locator_test.go
+++ b/internal/gitaly/storage/locator_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package storage
import (
diff --git a/internal/gitaly/storage/metadata_test.go b/internal/gitaly/storage/metadata_test.go
index 6c9df8d65..52f4ea8d4 100644
--- a/internal/gitaly/storage/metadata_test.go
+++ b/internal/gitaly/storage/metadata_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package storage
import (
diff --git a/internal/gitaly/storage/servers_test.go b/internal/gitaly/storage/servers_test.go
index ba5412791..6aa003447 100644
--- a/internal/gitaly/storage/servers_test.go
+++ b/internal/gitaly/storage/servers_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package storage_test
import (
diff --git a/internal/gitaly/storage/testhelper_test.go b/internal/gitaly/storage/testhelper_test.go
index 28da53d29..c4cb43fbe 100644
--- a/internal/gitaly/storage/testhelper_test.go
+++ b/internal/gitaly/storage/testhelper_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package storage
import (
diff --git a/internal/gitaly/transaction/manager_test.go b/internal/gitaly/transaction/manager_test.go
index 4dff12fd7..8bc366137 100644
--- a/internal/gitaly/transaction/manager_test.go
+++ b/internal/gitaly/transaction/manager_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package transaction_test
import (
diff --git a/internal/gitaly/transaction/testhelper_test.go b/internal/gitaly/transaction/testhelper_test.go
index 8b7d07a6e..df233a9dc 100644
--- a/internal/gitaly/transaction/testhelper_test.go
+++ b/internal/gitaly/transaction/testhelper_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package transaction
import (
diff --git a/internal/gitaly/transaction/voting_test.go b/internal/gitaly/transaction/voting_test.go
index 33a8ddccb..20b1f6f81 100644
--- a/internal/gitaly/transaction/voting_test.go
+++ b/internal/gitaly/transaction/voting_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package transaction
import (
diff --git a/internal/gitlab/http_client_test.go b/internal/gitlab/http_client_test.go
index 1c3108a20..4f6bf150a 100644
--- a/internal/gitlab/http_client_test.go
+++ b/internal/gitlab/http_client_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package gitlab
import (
diff --git a/internal/gitlab/testhelper_test.go b/internal/gitlab/testhelper_test.go
index 49143fb81..ed1035952 100644
--- a/internal/gitlab/testhelper_test.go
+++ b/internal/gitlab/testhelper_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package gitlab
import (
diff --git a/internal/grpcstats/stats_test.go b/internal/grpcstats/stats_test.go
index 34d7cef34..d86dbb038 100644
--- a/internal/grpcstats/stats_test.go
+++ b/internal/grpcstats/stats_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package grpcstats
import (
diff --git a/internal/grpcstats/testhelper_test.go b/internal/grpcstats/testhelper_test.go
index b522606a7..bd4058b0b 100644
--- a/internal/grpcstats/testhelper_test.go
+++ b/internal/grpcstats/testhelper_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package grpcstats_test
import (
diff --git a/internal/helper/chunk/chunker_test.go b/internal/helper/chunk/chunker_test.go
index a4b9f75ca..ea759312e 100644
--- a/internal/helper/chunk/chunker_test.go
+++ b/internal/helper/chunk/chunker_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package chunk
import (
diff --git a/internal/helper/env/env_test.go b/internal/helper/env/env_test.go
index 5a83ebbe4..f272ea935 100644
--- a/internal/helper/env/env_test.go
+++ b/internal/helper/env/env_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package env_test
import (
diff --git a/internal/helper/env/ruby_test.go b/internal/helper/env/ruby_test.go
index bfc8d8f6f..a0ecc1035 100644
--- a/internal/helper/env/ruby_test.go
+++ b/internal/helper/env/ruby_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package env
import (
diff --git a/internal/helper/error_test.go b/internal/helper/error_test.go
index f57befb50..047aa6853 100644
--- a/internal/helper/error_test.go
+++ b/internal/helper/error_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package helper
import (
diff --git a/internal/helper/fstype/detect_unix.go b/internal/helper/fstype/detect_unix.go
index d82985789..a7e39bf17 100644
--- a/internal/helper/fstype/detect_unix.go
+++ b/internal/helper/fstype/detect_unix.go
@@ -1,5 +1,4 @@
//go:build darwin || dragonfly || freebsd
-// +build darwin dragonfly freebsd
package fstype
diff --git a/internal/helper/fstype/fstype_test.go b/internal/helper/fstype/fstype_test.go
index 9ac8b43d3..3a28d38ca 100644
--- a/internal/helper/fstype/fstype_test.go
+++ b/internal/helper/fstype/fstype_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package fstype
import (
diff --git a/internal/helper/lines/send_test.go b/internal/helper/lines/send_test.go
index 282419873..cb17eca4a 100644
--- a/internal/helper/lines/send_test.go
+++ b/internal/helper/lines/send_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package lines
import (
diff --git a/internal/helper/repo_test.go b/internal/helper/repo_test.go
index 34638960c..16534e84a 100644
--- a/internal/helper/repo_test.go
+++ b/internal/helper/repo_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package helper
import (
diff --git a/internal/helper/security_test.go b/internal/helper/security_test.go
index 640e36b3b..7c8b99850 100644
--- a/internal/helper/security_test.go
+++ b/internal/helper/security_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package helper
import (
diff --git a/internal/helper/suppressed_context_test.go b/internal/helper/suppressed_context_test.go
index 70c45ce4e..fece555e4 100644
--- a/internal/helper/suppressed_context_test.go
+++ b/internal/helper/suppressed_context_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package helper
import (
diff --git a/internal/helper/text/chomp_test.go b/internal/helper/text/chomp_test.go
index fbdb1ecbc..04daf1e8b 100644
--- a/internal/helper/text/chomp_test.go
+++ b/internal/helper/text/chomp_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package text
import (
diff --git a/internal/helper/ticker_test.go b/internal/helper/ticker_test.go
index 8fcdb9c68..dcd752cda 100644
--- a/internal/helper/ticker_test.go
+++ b/internal/helper/ticker_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package helper
import (
diff --git a/internal/listenmux/mux_test.go b/internal/listenmux/mux_test.go
index bbd7b82d2..8b9db2242 100644
--- a/internal/listenmux/mux_test.go
+++ b/internal/listenmux/mux_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package listenmux
import (
diff --git a/internal/log/log_test.go b/internal/log/log_test.go
index 1d0a70122..7c72064fb 100644
--- a/internal/log/log_test.go
+++ b/internal/log/log_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package log
import (
diff --git a/internal/logsanitizer/url_test.go b/internal/logsanitizer/url_test.go
index 602760f2f..fd2e264ff 100644
--- a/internal/logsanitizer/url_test.go
+++ b/internal/logsanitizer/url_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package logsanitizer
import (
diff --git a/internal/metadata/featureflag/context_test.go b/internal/metadata/featureflag/context_test.go
index 8e4e222da..934a3abfa 100644
--- a/internal/metadata/featureflag/context_test.go
+++ b/internal/metadata/featureflag/context_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package featureflag
import (
diff --git a/internal/metadata/featureflag/featureflag_test.go b/internal/metadata/featureflag/featureflag_test.go
index 7a5d5915b..f34abfabf 100644
--- a/internal/metadata/featureflag/featureflag_test.go
+++ b/internal/metadata/featureflag/featureflag_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package featureflag
import (
diff --git a/internal/metadata/metadata_test.go b/internal/metadata/metadata_test.go
index dc7f96b36..f84febc6c 100644
--- a/internal/metadata/metadata_test.go
+++ b/internal/metadata/metadata_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package metadata
import (
diff --git a/internal/middleware/cache/cache_test.go b/internal/middleware/cache/cache_test.go
index 8156d4b8f..38d8cad01 100644
--- a/internal/middleware/cache/cache_test.go
+++ b/internal/middleware/cache/cache_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package cache
import (
diff --git a/internal/middleware/cache/export_test.go b/internal/middleware/cache/export_test.go
index 48c1dab84..bc8a2378a 100644
--- a/internal/middleware/cache/export_test.go
+++ b/internal/middleware/cache/export_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package cache
import "sync"
diff --git a/internal/middleware/commandstatshandler/commandstatshandler_test.go b/internal/middleware/commandstatshandler/commandstatshandler_test.go
index 12d507bb0..da599f082 100644
--- a/internal/middleware/commandstatshandler/commandstatshandler_test.go
+++ b/internal/middleware/commandstatshandler/commandstatshandler_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package commandstatshandler
import (
diff --git a/internal/middleware/featureflag/featureflag_handler_test.go b/internal/middleware/featureflag/featureflag_handler_test.go
index f685c04ca..55e8f774a 100644
--- a/internal/middleware/featureflag/featureflag_handler_test.go
+++ b/internal/middleware/featureflag/featureflag_handler_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package featureflag
import (
diff --git a/internal/middleware/limithandler/concurrency_limiter_test.go b/internal/middleware/limithandler/concurrency_limiter_test.go
index 417926907..01bced2bd 100644
--- a/internal/middleware/limithandler/concurrency_limiter_test.go
+++ b/internal/middleware/limithandler/concurrency_limiter_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package limithandler
import (
diff --git a/internal/middleware/limithandler/middleware_test.go b/internal/middleware/limithandler/middleware_test.go
index 9e5d1c892..c929d19ea 100644
--- a/internal/middleware/limithandler/middleware_test.go
+++ b/internal/middleware/limithandler/middleware_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package limithandler_test
import (
diff --git a/internal/middleware/limithandler/rate_limiter_test.go b/internal/middleware/limithandler/rate_limiter_test.go
index e60650582..3cb90431d 100644
--- a/internal/middleware/limithandler/rate_limiter_test.go
+++ b/internal/middleware/limithandler/rate_limiter_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package limithandler
import (
diff --git a/internal/middleware/limithandler/testhelper_test.go b/internal/middleware/limithandler/testhelper_test.go
index 6495c87ba..5c5a54b68 100644
--- a/internal/middleware/limithandler/testhelper_test.go
+++ b/internal/middleware/limithandler/testhelper_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package limithandler_test
import (
diff --git a/internal/middleware/metadatahandler/metadatahandler_test.go b/internal/middleware/metadatahandler/metadatahandler_test.go
index 879bdd38a..48dc2daed 100644
--- a/internal/middleware/metadatahandler/metadatahandler_test.go
+++ b/internal/middleware/metadatahandler/metadatahandler_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package metadatahandler
import (
diff --git a/internal/middleware/sentryhandler/sentryhandler_test.go b/internal/middleware/sentryhandler/sentryhandler_test.go
index 2513d7fb0..342709a6e 100644
--- a/internal/middleware/sentryhandler/sentryhandler_test.go
+++ b/internal/middleware/sentryhandler/sentryhandler_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package sentryhandler
import (
diff --git a/internal/praefect/auth_test.go b/internal/praefect/auth_test.go
index 0c398fac1..ba62e0326 100644
--- a/internal/praefect/auth_test.go
+++ b/internal/praefect/auth_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package praefect
import (
diff --git a/internal/praefect/checks_test.go b/internal/praefect/checks_test.go
index 2c1c3c147..b2e4e96e9 100644
--- a/internal/praefect/checks_test.go
+++ b/internal/praefect/checks_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package praefect
import (
diff --git a/internal/praefect/config/config_test.go b/internal/praefect/config/config_test.go
index f7673c41f..8e6585f94 100644
--- a/internal/praefect/config/config_test.go
+++ b/internal/praefect/config/config_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package config
import (
diff --git a/internal/praefect/config/node_test.go b/internal/praefect/config/node_test.go
index 31756fa09..56bac085c 100644
--- a/internal/praefect/config/node_test.go
+++ b/internal/praefect/config/node_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package config
import (
diff --git a/internal/praefect/coordinator_pg_test.go b/internal/praefect/coordinator_pg_test.go
index ada879475..a1bc77094 100644
--- a/internal/praefect/coordinator_pg_test.go
+++ b/internal/praefect/coordinator_pg_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package praefect
import (
diff --git a/internal/praefect/coordinator_test.go b/internal/praefect/coordinator_test.go
index 38e26a9f0..caf2ad28f 100644
--- a/internal/praefect/coordinator_test.go
+++ b/internal/praefect/coordinator_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package praefect
import (
diff --git a/internal/praefect/datastore/assignment_test.go b/internal/praefect/datastore/assignment_test.go
index 130fb2023..56a771e2d 100644
--- a/internal/praefect/datastore/assignment_test.go
+++ b/internal/praefect/datastore/assignment_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package datastore
import (
diff --git a/internal/praefect/datastore/collector_test.go b/internal/praefect/datastore/collector_test.go
index 028fc119d..09b2a0fa9 100644
--- a/internal/praefect/datastore/collector_test.go
+++ b/internal/praefect/datastore/collector_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package datastore
import (
diff --git a/internal/praefect/datastore/glsql/postgres_test.go b/internal/praefect/datastore/glsql/postgres_test.go
index 9eb867a8b..0a8ee7004 100644
--- a/internal/praefect/datastore/glsql/postgres_test.go
+++ b/internal/praefect/datastore/glsql/postgres_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package glsql_test
import (
diff --git a/internal/praefect/datastore/glsql/testhelper_test.go b/internal/praefect/datastore/glsql/testhelper_test.go
index 68f3584ce..27e247e46 100644
--- a/internal/praefect/datastore/glsql/testhelper_test.go
+++ b/internal/praefect/datastore/glsql/testhelper_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package glsql
import (
diff --git a/internal/praefect/datastore/listener_test.go b/internal/praefect/datastore/listener_test.go
index 7811953de..92e914d62 100644
--- a/internal/praefect/datastore/listener_test.go
+++ b/internal/praefect/datastore/listener_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package datastore
import (
diff --git a/internal/praefect/datastore/memory_test.go b/internal/praefect/datastore/memory_test.go
index b6fabf5ea..af41889f0 100644
--- a/internal/praefect/datastore/memory_test.go
+++ b/internal/praefect/datastore/memory_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package datastore
import (
diff --git a/internal/praefect/datastore/postgres_test.go b/internal/praefect/datastore/postgres_test.go
index 8d34fa05c..614731589 100644
--- a/internal/praefect/datastore/postgres_test.go
+++ b/internal/praefect/datastore/postgres_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package datastore
import (
diff --git a/internal/praefect/datastore/queue_bm_test.go b/internal/praefect/datastore/queue_bm_test.go
index 6dbb75875..7c8bee2fc 100644
--- a/internal/praefect/datastore/queue_bm_test.go
+++ b/internal/praefect/datastore/queue_bm_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package datastore
import (
diff --git a/internal/praefect/datastore/queue_test.go b/internal/praefect/datastore/queue_test.go
index 1d2f45d36..6aac7ca4d 100644
--- a/internal/praefect/datastore/queue_test.go
+++ b/internal/praefect/datastore/queue_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package datastore
import (
diff --git a/internal/praefect/datastore/repository_store_bm_test.go b/internal/praefect/datastore/repository_store_bm_test.go
index 3b7326d1d..3f982e417 100644
--- a/internal/praefect/datastore/repository_store_bm_test.go
+++ b/internal/praefect/datastore/repository_store_bm_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package datastore
import (
diff --git a/internal/praefect/datastore/repository_store_test.go b/internal/praefect/datastore/repository_store_test.go
index 6aaaea216..3b6ba6709 100644
--- a/internal/praefect/datastore/repository_store_test.go
+++ b/internal/praefect/datastore/repository_store_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package datastore
import (
diff --git a/internal/praefect/datastore/storage_cleanup_test.go b/internal/praefect/datastore/storage_cleanup_test.go
index 91de4f072..88666e801 100644
--- a/internal/praefect/datastore/storage_cleanup_test.go
+++ b/internal/praefect/datastore/storage_cleanup_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package datastore
import (
diff --git a/internal/praefect/datastore/storage_provider_test.go b/internal/praefect/datastore/storage_provider_test.go
index 2b86cb213..399ecc48a 100644
--- a/internal/praefect/datastore/storage_provider_test.go
+++ b/internal/praefect/datastore/storage_provider_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package datastore
import (
diff --git a/internal/praefect/datastore/testhelper_test.go b/internal/praefect/datastore/testhelper_test.go
index 0ac3dbe97..e282cff1b 100644
--- a/internal/praefect/datastore/testhelper_test.go
+++ b/internal/praefect/datastore/testhelper_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package datastore
import (
diff --git a/internal/praefect/delete_object_pool_test.go b/internal/praefect/delete_object_pool_test.go
index 0295a6877..db63edddf 100644
--- a/internal/praefect/delete_object_pool_test.go
+++ b/internal/praefect/delete_object_pool_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package praefect
import (
diff --git a/internal/praefect/grpc-proxy/proxy/codec_test.go b/internal/praefect/grpc-proxy/proxy/codec_test.go
index 99569ac0d..959d4203d 100644
--- a/internal/praefect/grpc-proxy/proxy/codec_test.go
+++ b/internal/praefect/grpc-proxy/proxy/codec_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package proxy
import (
diff --git a/internal/praefect/grpc-proxy/proxy/examples_test.go b/internal/praefect/grpc-proxy/proxy/examples_test.go
index 03fe5cac4..b8d5759bd 100644
--- a/internal/praefect/grpc-proxy/proxy/examples_test.go
+++ b/internal/praefect/grpc-proxy/proxy/examples_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
// Copyright 2017 Michal Witkowski. All Rights Reserved.
// See LICENSE for licensing terms.
diff --git a/internal/praefect/grpc-proxy/proxy/handler_ext_test.go b/internal/praefect/grpc-proxy/proxy/handler_ext_test.go
index 09b74c47a..2610a6132 100644
--- a/internal/praefect/grpc-proxy/proxy/handler_ext_test.go
+++ b/internal/praefect/grpc-proxy/proxy/handler_ext_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
// Copyright 2017 Michal Witkowski. All Rights Reserved.
// See LICENSE for licensing terms.
diff --git a/internal/praefect/grpc-proxy/proxy/handler_test.go b/internal/praefect/grpc-proxy/proxy/handler_test.go
index b33fcba43..8810bd7fc 100644
--- a/internal/praefect/grpc-proxy/proxy/handler_test.go
+++ b/internal/praefect/grpc-proxy/proxy/handler_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package proxy
import (
diff --git a/internal/praefect/grpc-proxy/proxy/helper_test.go b/internal/praefect/grpc-proxy/proxy/helper_test.go
index 01d83c043..d025c9c3a 100644
--- a/internal/praefect/grpc-proxy/proxy/helper_test.go
+++ b/internal/praefect/grpc-proxy/proxy/helper_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package proxy_test
import (
diff --git a/internal/praefect/grpc-proxy/proxy/peeker_test.go b/internal/praefect/grpc-proxy/proxy/peeker_test.go
index ebbed5172..276f175d9 100644
--- a/internal/praefect/grpc-proxy/proxy/peeker_test.go
+++ b/internal/praefect/grpc-proxy/proxy/peeker_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package proxy_test
import (
diff --git a/internal/praefect/helper_test.go b/internal/praefect/helper_test.go
index ec3caa0c7..8b654b97a 100644
--- a/internal/praefect/helper_test.go
+++ b/internal/praefect/helper_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package praefect
import (
diff --git a/internal/praefect/info_service_test.go b/internal/praefect/info_service_test.go
index 61d7e5729..6e860a3c6 100644
--- a/internal/praefect/info_service_test.go
+++ b/internal/praefect/info_service_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package praefect
import (
diff --git a/internal/praefect/middleware/errorhandler_test.go b/internal/praefect/middleware/errorhandler_test.go
index cdc4079e1..9e221e741 100644
--- a/internal/praefect/middleware/errorhandler_test.go
+++ b/internal/praefect/middleware/errorhandler_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package middleware
import (
diff --git a/internal/praefect/middleware/helper_test.go b/internal/praefect/middleware/helper_test.go
index eadba7e44..191dfe749 100644
--- a/internal/praefect/middleware/helper_test.go
+++ b/internal/praefect/middleware/helper_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package middleware
import (
diff --git a/internal/praefect/mocksvc_test.go b/internal/praefect/mocksvc_test.go
index ec61d45f0..de6caff2e 100644
--- a/internal/praefect/mocksvc_test.go
+++ b/internal/praefect/mocksvc_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package praefect
import (
diff --git a/internal/praefect/node_test.go b/internal/praefect/node_test.go
index ce7926cb6..b9a4bfecc 100644
--- a/internal/praefect/node_test.go
+++ b/internal/praefect/node_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package praefect
import (
diff --git a/internal/praefect/nodes/health_manager_test.go b/internal/praefect/nodes/health_manager_test.go
index 2f24bc6e0..c31903de9 100644
--- a/internal/praefect/nodes/health_manager_test.go
+++ b/internal/praefect/nodes/health_manager_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package nodes
import (
diff --git a/internal/praefect/nodes/init_test.go b/internal/praefect/nodes/init_test.go
index c326f1840..7109a39d5 100644
--- a/internal/praefect/nodes/init_test.go
+++ b/internal/praefect/nodes/init_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package nodes
import (
diff --git a/internal/praefect/nodes/local_elector_test.go b/internal/praefect/nodes/local_elector_test.go
index 6063ee15b..abb0768d8 100644
--- a/internal/praefect/nodes/local_elector_test.go
+++ b/internal/praefect/nodes/local_elector_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package nodes
import (
diff --git a/internal/praefect/nodes/manager_test.go b/internal/praefect/nodes/manager_test.go
index 5c0303a27..d59193d8b 100644
--- a/internal/praefect/nodes/manager_test.go
+++ b/internal/praefect/nodes/manager_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package nodes
import (
diff --git a/internal/praefect/nodes/per_repository_test.go b/internal/praefect/nodes/per_repository_test.go
index 8b7e270a7..e361b3ff1 100644
--- a/internal/praefect/nodes/per_repository_test.go
+++ b/internal/praefect/nodes/per_repository_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package nodes
import (
diff --git a/internal/praefect/nodes/ping_test.go b/internal/praefect/nodes/ping_test.go
index 62c43c7ba..72ac78a43 100644
--- a/internal/praefect/nodes/ping_test.go
+++ b/internal/praefect/nodes/ping_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package nodes
import (
diff --git a/internal/praefect/nodes/sql_elector_test.go b/internal/praefect/nodes/sql_elector_test.go
index a4f3c277c..df5af8eaa 100644
--- a/internal/praefect/nodes/sql_elector_test.go
+++ b/internal/praefect/nodes/sql_elector_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package nodes
import (
diff --git a/internal/praefect/nodes/tracker/errors_test.go b/internal/praefect/nodes/tracker/errors_test.go
index f36818683..d27fdc8a9 100644
--- a/internal/praefect/nodes/tracker/errors_test.go
+++ b/internal/praefect/nodes/tracker/errors_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package tracker
import (
diff --git a/internal/praefect/praefectutil/replica_path_test.go b/internal/praefect/praefectutil/replica_path_test.go
index d168778c1..c68002262 100644
--- a/internal/praefect/praefectutil/replica_path_test.go
+++ b/internal/praefect/praefectutil/replica_path_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package praefectutil
import (
diff --git a/internal/praefect/protoregistry/find_oid_test.go b/internal/praefect/protoregistry/find_oid_test.go
index 385e6ec05..a6dbcf745 100644
--- a/internal/praefect/protoregistry/find_oid_test.go
+++ b/internal/praefect/protoregistry/find_oid_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package protoregistry_test
import (
diff --git a/internal/praefect/protoregistry/protoregistry_test.go b/internal/praefect/protoregistry/protoregistry_test.go
index 333def1b6..eb42330df 100644
--- a/internal/praefect/protoregistry/protoregistry_test.go
+++ b/internal/praefect/protoregistry/protoregistry_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package protoregistry_test
import (
diff --git a/internal/praefect/random_test.go b/internal/praefect/random_test.go
index d24fe56c4..4aa3aa8d7 100644
--- a/internal/praefect/random_test.go
+++ b/internal/praefect/random_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package praefect
import (
diff --git a/internal/praefect/reconciler/reconciler_benchmark_test.go b/internal/praefect/reconciler/reconciler_benchmark_test.go
index aa2aad06e..e5038515a 100644
--- a/internal/praefect/reconciler/reconciler_benchmark_test.go
+++ b/internal/praefect/reconciler/reconciler_benchmark_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package reconciler
import (
diff --git a/internal/praefect/reconciler/reconciler_test.go b/internal/praefect/reconciler/reconciler_test.go
index a9c8e196a..4ba7ea238 100644
--- a/internal/praefect/reconciler/reconciler_test.go
+++ b/internal/praefect/reconciler/reconciler_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package reconciler
import (
diff --git a/internal/praefect/remove_repository_test.go b/internal/praefect/remove_repository_test.go
index 1ab05d5c4..4a1b24251 100644
--- a/internal/praefect/remove_repository_test.go
+++ b/internal/praefect/remove_repository_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package praefect
import (
diff --git a/internal/praefect/replicator_pg_test.go b/internal/praefect/replicator_pg_test.go
index 65ca60866..4bd66365e 100644
--- a/internal/praefect/replicator_pg_test.go
+++ b/internal/praefect/replicator_pg_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package praefect
import (
diff --git a/internal/praefect/replicator_test.go b/internal/praefect/replicator_test.go
index 79c6fb559..8ae2bdc8e 100644
--- a/internal/praefect/replicator_test.go
+++ b/internal/praefect/replicator_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package praefect
import (
diff --git a/internal/praefect/repocleaner/action_log_test.go b/internal/praefect/repocleaner/action_log_test.go
index 322a2f3e3..ea481922b 100644
--- a/internal/praefect/repocleaner/action_log_test.go
+++ b/internal/praefect/repocleaner/action_log_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package repocleaner
import (
diff --git a/internal/praefect/repocleaner/init_test.go b/internal/praefect/repocleaner/init_test.go
index 889ffee62..5e446c055 100644
--- a/internal/praefect/repocleaner/init_test.go
+++ b/internal/praefect/repocleaner/init_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package repocleaner
import (
diff --git a/internal/praefect/repocleaner/repository_test.go b/internal/praefect/repocleaner/repository_test.go
index b0690f490..0066ce747 100644
--- a/internal/praefect/repocleaner/repository_test.go
+++ b/internal/praefect/repocleaner/repository_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package repocleaner
import (
diff --git a/internal/praefect/repository_exists_test.go b/internal/praefect/repository_exists_test.go
index 38c3822ab..87f38d85a 100644
--- a/internal/praefect/repository_exists_test.go
+++ b/internal/praefect/repository_exists_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package praefect
import (
diff --git a/internal/praefect/router_per_repository_test.go b/internal/praefect/router_per_repository_test.go
index 472aa14da..c4c8eb5d0 100644
--- a/internal/praefect/router_per_repository_test.go
+++ b/internal/praefect/router_per_repository_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package praefect
import (
diff --git a/internal/praefect/server_factory_test.go b/internal/praefect/server_factory_test.go
index 40064854d..f9bbdd16a 100644
--- a/internal/praefect/server_factory_test.go
+++ b/internal/praefect/server_factory_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package praefect
import (
diff --git a/internal/praefect/server_test.go b/internal/praefect/server_test.go
index 903b65e28..efecddbab 100644
--- a/internal/praefect/server_test.go
+++ b/internal/praefect/server_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package praefect
import (
diff --git a/internal/praefect/transaction_test.go b/internal/praefect/transaction_test.go
index 3814c5faf..c76959c76 100644
--- a/internal/praefect/transaction_test.go
+++ b/internal/praefect/transaction_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package praefect
import (
diff --git a/internal/praefect/transactions/subtransaction_test.go b/internal/praefect/transactions/subtransaction_test.go
index d6c48adfe..d7b2eee42 100644
--- a/internal/praefect/transactions/subtransaction_test.go
+++ b/internal/praefect/transactions/subtransaction_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package transactions
import (
diff --git a/internal/praefect/transactions/transaction_test.go b/internal/praefect/transactions/transaction_test.go
index 23a208142..b3648ed62 100644
--- a/internal/praefect/transactions/transaction_test.go
+++ b/internal/praefect/transactions/transaction_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package transactions
import (
diff --git a/internal/praefect/verifier_test.go b/internal/praefect/verifier_test.go
index 39c46ca45..ccf470116 100644
--- a/internal/praefect/verifier_test.go
+++ b/internal/praefect/verifier_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package praefect
import (
diff --git a/internal/ps/ps_test.go b/internal/ps/ps_test.go
index e752d146c..31f657541 100644
--- a/internal/ps/ps_test.go
+++ b/internal/ps/ps_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package ps
import (
diff --git a/internal/ps/rss.go b/internal/ps/rss.go
index 3bee36771..4b7c33059 100644
--- a/internal/ps/rss.go
+++ b/internal/ps/rss.go
@@ -1,5 +1,4 @@
//go:build !linux
-// +build !linux
package ps
diff --git a/internal/safe/file_writer_test.go b/internal/safe/file_writer_test.go
index dea062613..f5d035bce 100644
--- a/internal/safe/file_writer_test.go
+++ b/internal/safe/file_writer_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package safe_test
import (
diff --git a/internal/safe/locking_directory_test.go b/internal/safe/locking_directory_test.go
index 98ab2d8fd..d58b96388 100644
--- a/internal/safe/locking_directory_test.go
+++ b/internal/safe/locking_directory_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package safe_test
import (
diff --git a/internal/safe/locking_file_writer_test.go b/internal/safe/locking_file_writer_test.go
index ee75eb76d..83af8c691 100644
--- a/internal/safe/locking_file_writer_test.go
+++ b/internal/safe/locking_file_writer_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package safe_test
import (
diff --git a/internal/safe/main_test.go b/internal/safe/main_test.go
index cdfecce3d..823e2365d 100644
--- a/internal/safe/main_test.go
+++ b/internal/safe/main_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package safe_test
import (
diff --git a/internal/sidechannel/conn_test.go b/internal/sidechannel/conn_test.go
index 257fd4273..22d8f07d5 100644
--- a/internal/sidechannel/conn_test.go
+++ b/internal/sidechannel/conn_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package sidechannel
import (
diff --git a/internal/sidechannel/proxy_test.go b/internal/sidechannel/proxy_test.go
index 5796a62e4..ed2f3e2a8 100644
--- a/internal/sidechannel/proxy_test.go
+++ b/internal/sidechannel/proxy_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package sidechannel
import (
diff --git a/internal/sidechannel/registry_test.go b/internal/sidechannel/registry_test.go
index 032534a81..8a286b617 100644
--- a/internal/sidechannel/registry_test.go
+++ b/internal/sidechannel/registry_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package sidechannel
import (
diff --git a/internal/sidechannel/sidechannel_test.go b/internal/sidechannel/sidechannel_test.go
index e93d6e5da..7043e1642 100644
--- a/internal/sidechannel/sidechannel_test.go
+++ b/internal/sidechannel/sidechannel_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package sidechannel
import (
diff --git a/internal/streamcache/cache_test.go b/internal/streamcache/cache_test.go
index fa7f1da46..650b87fa2 100644
--- a/internal/streamcache/cache_test.go
+++ b/internal/streamcache/cache_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package streamcache
import (
diff --git a/internal/streamcache/cursor_test.go b/internal/streamcache/cursor_test.go
index a0cf12b0d..d4d66489a 100644
--- a/internal/streamcache/cursor_test.go
+++ b/internal/streamcache/cursor_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package streamcache
import (
diff --git a/internal/streamcache/filestore_test.go b/internal/streamcache/filestore_test.go
index dd9353334..9606ad3a6 100644
--- a/internal/streamcache/filestore_test.go
+++ b/internal/streamcache/filestore_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package streamcache
import (
diff --git a/internal/streamcache/pipe_test.go b/internal/streamcache/pipe_test.go
index 6161e595b..3917c717c 100644
--- a/internal/streamcache/pipe_test.go
+++ b/internal/streamcache/pipe_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package streamcache
import (
diff --git a/internal/streamcache/sendfile_test.go b/internal/streamcache/sendfile_test.go
index 3f1329087..67f1257b1 100644
--- a/internal/streamcache/sendfile_test.go
+++ b/internal/streamcache/sendfile_test.go
@@ -1,5 +1,4 @@
-//go:build linux
-// +build linux
+//go:build linux && !gitaly_test_sha256
package streamcache
diff --git a/internal/streamcache/testhelper_test.go b/internal/streamcache/testhelper_test.go
index 4b19498d4..ae86518bb 100644
--- a/internal/streamcache/testhelper_test.go
+++ b/internal/streamcache/testhelper_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package streamcache
import (
diff --git a/internal/supervisor/supervisor_test.go b/internal/supervisor/supervisor_test.go
index 0dd3d3658..40b54ba20 100644
--- a/internal/supervisor/supervisor_test.go
+++ b/internal/supervisor/supervisor_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package supervisor
import (
diff --git a/internal/tempdir/clean_test.go b/internal/tempdir/clean_test.go
index d435394a6..04bb6825e 100644
--- a/internal/tempdir/clean_test.go
+++ b/internal/tempdir/clean_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package tempdir
import (
diff --git a/internal/tempdir/tempdir_test.go b/internal/tempdir/tempdir_test.go
index c0e499584..86e706327 100644
--- a/internal/tempdir/tempdir_test.go
+++ b/internal/tempdir/tempdir_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package tempdir
import (
diff --git a/internal/tempdir/testhelper_test.go b/internal/tempdir/testhelper_test.go
index 1bd19e1d3..a51a8905e 100644
--- a/internal/tempdir/testhelper_test.go
+++ b/internal/tempdir/testhelper_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package tempdir
import (
diff --git a/internal/testhelper/featureset_test.go b/internal/testhelper/featureset_test.go
index f3311b7d2..2443c3d04 100644
--- a/internal/testhelper/featureset_test.go
+++ b/internal/testhelper/featureset_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package testhelper
import (
diff --git a/internal/testhelper/grpc_test.go b/internal/testhelper/grpc_test.go
index c963f0d76..ad2a70a71 100644
--- a/internal/testhelper/grpc_test.go
+++ b/internal/testhelper/grpc_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package testhelper_test
import (
diff --git a/internal/testhelper/testdb/db_test.go b/internal/testhelper/testdb/db_test.go
index a3687d977..d19f0ccdb 100644
--- a/internal/testhelper/testdb/db_test.go
+++ b/internal/testhelper/testdb/db_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package testdb
import (
diff --git a/internal/transaction/voting/testhelper_test.go b/internal/transaction/voting/testhelper_test.go
index e69ae9caf..eecb0caaa 100644
--- a/internal/transaction/voting/testhelper_test.go
+++ b/internal/transaction/voting/testhelper_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package voting
import (
diff --git a/internal/transaction/voting/vote_test.go b/internal/transaction/voting/vote_test.go
index 98acfd509..d49add84b 100644
--- a/internal/transaction/voting/vote_test.go
+++ b/internal/transaction/voting/vote_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package voting
import (
diff --git a/internal/x509/pool.go b/internal/x509/pool.go
index c96a9db67..7030fb638 100644
--- a/internal/x509/pool.go
+++ b/internal/x509/pool.go
@@ -1,5 +1,4 @@
//go:build !darwin
-// +build !darwin
package x509
diff --git a/streamio/stream_test.go b/streamio/stream_test.go
index 8f7c841fd..296039142 100644
--- a/streamio/stream_test.go
+++ b/streamio/stream_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package streamio
import (
diff --git a/tools/protoc-gen-gitaly-lint/lint_test.go b/tools/protoc-gen-gitaly-lint/lint_test.go
index 02b18241c..8ab86c3f5 100644
--- a/tools/protoc-gen-gitaly-lint/lint_test.go
+++ b/tools/protoc-gen-gitaly-lint/lint_test.go
@@ -1,3 +1,5 @@
+//go:build !gitaly_test_sha256
+
package main
import (