Skip to content

Commit

Permalink
fix(acceptance): use a more standard git commit time format
Browse files Browse the repository at this point in the history
i think this might be an issue with the sha256 of the tile
I would think it would also change the source_revision but maybe not
  • Loading branch information
crhntr committed Mar 9, 2024
1 parent 28a2574 commit df1e96b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion internal/acceptance/workflows/baking_a_tile.feature
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Feature: As a developer, I want to bake a tile
| releases/bpm-1.2.12.tgz |
| releases/hello-release-0.2.3.tgz |
And "bake_records/0.2.0-dev.json" contains substring: "version": "0.2.0-dev"
And "bake_records/0.2.0-dev.json" contains substring: "source_revision": "bc3ac24e192ba06a2eca19381ad785ec7069e0d0"
And "bake_records/0.2.0-dev.json" contains substring: "source_revision": "2f6476731809a10208d9cb6f7612b907a29f66c9"
And "bake_records/0.2.0-dev.json" contains substring: "tile_directory": "."
And "bake_records/0.2.0-dev.json" contains substring: "kiln_version": "0.0.0+acceptance-tests"
And "bake_records/0.2.0-dev.json" contains substring: "file_checksum": "3ac44ecc0215677ddde5e3d12df7c8ea7ac6e9ade0bf3c957bbed6645edf6811"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ func copyTileDirectory(dir, tileDirectory string) (string, error) {
if err := executeAndWrapError(testTileDir, env, "git", "add", "."); err != nil {
return "", fmt.Errorf("tile path is not a repository: adding initial files failed: %w", err)
}
env = updateEnvVar(env, "GIT_AUTHOR_DATE", "1112937193 -0700")
env = updateEnvVar(env, "GIT_COMMITTER_DATE", "1112937193 -0700")
env = updateEnvVar(env, "GIT_AUTHOR_DATE", "Thu, 07 Apr 2005 22:13:13")
env = updateEnvVar(env, "GIT_COMMITTER_DATE", "Thu, 07 Apr 2005 22:13:13")
if err := executeAndWrapError(testTileDir, env, "git", "commit", "-m", "initial commit"); err != nil {
return "", fmt.Errorf("tile path is not a repository: adding initial files failed: %w", err)
}
Expand Down

0 comments on commit df1e96b

Please sign in to comment.