Skip to content

git-testtools - transparent freeze support #384

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 28 commits into from
Apr 15, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
c23feb6
auto-set commit.gpgsign=false when executing git (#384)
Byron Apr 14, 2022
e141ddb
further partition generated test directories by script name (#384)
Byron Apr 14, 2022
92c7044
frame for extracting and generating archives (#384)
Byron Apr 14, 2022
f744a6c
make sure archives are handled by git-lfs (#384)
Byron Apr 14, 2022
c8d218c
thanks clippy
Byron Apr 14, 2022
f1e107a
simple creation of test-archives (#384)
Byron Apr 14, 2022
5dd3d82
actual compression of archives (#384)
Byron Apr 14, 2022
658862e
thanks clippy
Byron Apr 14, 2022
4f65bf3
for now, check-in archives by hand (#384)
Byron Apr 14, 2022
a240d66
Revert "for now, check-in archives by hand (#384)"
Byron Apr 14, 2022
c30bebf
assure there are no archive file-name clashes across crates (#384)
Byron Apr 14, 2022
07c1f07
extraction of tar archives with identity check (#384)
Byron Apr 14, 2022
9b5a8a2
make sure existing files aren't written into (#384)
Byron Apr 14, 2022
1343448
definitely don't follow symlnks (#384)
Byron Apr 14, 2022
545b2d5
Assure we don't pick up unnecessary files during publishing (#384)
Byron Apr 14, 2022
a981517
fix git-attributes for lfs support (#384)
Byron Apr 14, 2022
1aec924
protect test generation from multi-process races (#384)
Byron Apr 14, 2022
7202a1c
add archive files via git-lfs (#384)
Byron Apr 14, 2022
1f27237
explicitly checkout git-lfs content (#384)
Byron Apr 14, 2022
58d30df
don't use archives on unix (#384)
Byron Apr 14, 2022
4ed1185
see if this works with actually checking out LFS paths (#384)
Byron Apr 14, 2022
4f5b1fd
provide some more information when using archives; debug windows more…
Byron Apr 14, 2022
19d46f3
No need to isolate archives by crate name (#384)
Byron Apr 14, 2022
a789490
feat: export git-tempfile in the root (#384)
Byron Apr 15, 2022
1caf3ae
enforce signal handler setup to cleanup tempfiles on abort (#384)
Byron Apr 15, 2022
bd8ed9c
more debugging on windows - why no archive files ? (#384)
Byron Apr 15, 2022
96bb4d4
prevent line-ending conversions for shell scripts on windows (#384)
Byron Apr 15, 2022
1a35c5e
on macos, let's use caches too for speedup (#384)
Byron Apr 15, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
**/generated-archives/*.tar.xz filter=lfs diff=lfs merge=lfs -text

# assure line feeds don't interfere with our working copy hash
**/tests/fixtures/*.sh text crlf=input eol=lf
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ jobs:
if: startsWith(matrix.os, 'macos')
run:
brew install tree openssl
- run: git lfs fetch && git lfs checkout
if: startsWith(matrix.os, 'macos')
- name: test
env:
CI: true
Expand All @@ -47,6 +49,7 @@ jobs:
with:
command: check
args: --all --bins --tests --examples
- run: git lfs fetch && git lfs checkout
- name: "Test (crossterm)"
uses: actions-rs/cargo@v1
with:
Expand Down
41 changes: 41 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions deny.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ allow = [
"Apache-2.0",
"BSD-3-Clause",
"MIT",
"ISC",
"CC-PDDC",
]
# Lint level for licenses considered copyleft
Expand Down
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
1 change: 0 additions & 1 deletion git-commitgraph/tests/fixtures/octopus_merges.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
set -eu -o pipefail

git init -q
git config commit.gpgsign false

git checkout -q --orphan root
git commit -q --allow-empty -m root
Expand Down
1 change: 0 additions & 1 deletion git-commitgraph/tests/fixtures/single_commit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ set -eu -o pipefail
# The goal with this repo is to have the smallest commit-graph file possible, in the hopes that an

git init -q
git config commit.gpgsign false

git checkout -q -b commit
git commit -q --allow-empty -m commit
Expand Down
1 change: 0 additions & 1 deletion git-commitgraph/tests/fixtures/single_parent.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
set -eu -o pipefail

git init -q
git config commit.gpgsign false

git checkout -q -b parent
git commit -q --allow-empty -m parent
Expand Down
1 change: 0 additions & 1 deletion git-commitgraph/tests/fixtures/split_chain.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
set -eu -o pipefail

git init -q
git config commit.gpgsign false

git checkout -q -b commit1
git commit -q --allow-empty -m commit1
Expand Down
1 change: 0 additions & 1 deletion git-commitgraph/tests/fixtures/two_parents.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
set -eu -o pipefail

git init -q
git config commit.gpgsign false

git checkout -q --orphan parent1
git commit -q --allow-empty -m parent1
Expand Down
Git LFS file not shown
1 change: 0 additions & 1 deletion git-diff/tests/fixtures/make_diff_repo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ set -eu -o pipefail


git init -q
git config commit.gpgsign false
git config core.autocrlf false

git checkout -q -b main
Expand Down
Git LFS file not shown
2 changes: 0 additions & 2 deletions git-glob/tests/fixtures/make_baseline.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
#!/bin/bash
set -eu -o pipefail


git init -q
git config commit.gpgsign false
git config core.autocrlf false
git config core.ignorecase false

Expand Down
1 change: 1 addition & 0 deletions git-index/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ license = "MIT/Apache-2.0"
description = "A work-in-progress crate of the gitoxide project dedicated implementing the git index file"
authors = ["Sebastian Thiel <[email protected]>"]
edition = "2018"
include = ["src/**/*", "README.md", "CHANGELOG.md"]

[lib]
doctest = false
Expand Down
3 changes: 3 additions & 0 deletions git-index/tests/fixtures/generated-archives/V2_empty.tar.xz
Git LFS file not shown
3 changes: 3 additions & 0 deletions git-index/tests/fixtures/generated-archives/v2.tar.xz
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
1 change: 0 additions & 1 deletion git-index/tests/fixtures/make_index/v2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ set -eu -o pipefail

export GIT_INDEX_VERSION=2
git init -q
git config commit.gpgsign false
git config index.threads 2

touch a
Expand Down
1 change: 0 additions & 1 deletion git-index/tests/fixtures/make_index/v2_more_files.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ set -eu -o pipefail

export GIT_INDEX_VERSION=2;
git init -q
git config commit.gpgsign false
git config index.threads 1

touch a b c
Expand Down
1 change: 0 additions & 1 deletion git-index/tests/fixtures/make_index/v2_split_index.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ set -eu -o pipefail

export GIT_INDEX_VERSION=2
git init -q
git config commit.gpgsign false
git config index.threads 1

touch a
Expand Down
1 change: 0 additions & 1 deletion git-index/tests/fixtures/make_index/v4_more_files_IEOT.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ set -eu -o pipefail

export GIT_INDEX_VERSION=4
git init -q
git config commit.gpgsign false
git config index.threads 2

touch a b c
Expand Down
2 changes: 2 additions & 0 deletions git-lock/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ use std::path::PathBuf;

use git_tempfile::handle::{Closed, Writable};

pub use git_tempfile as tempfile;

const DOT_LOCK_SUFFIX: &str = ".lock";

///
Expand Down
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
1 change: 0 additions & 1 deletion git-pack/tests/fixtures/make_pack_gen_repo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
set -eu -o pipefail

git init -q
git config commit.gpgsign false

function write_files() {
local base_dir=${1:?directory to write them into}
Expand Down
1 change: 0 additions & 1 deletion git-pack/tests/fixtures/make_pack_gen_repo_multi_index.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
set -eu -o pipefail

git init -q
git config commit.gpgsign false

function write_files() {
local base_dir=${1:?directory to write them into}
Expand Down
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
set -eu -o pipefail

git init -q
git config commit.gpgsign false

git checkout -q -b main
git commit -q --allow-empty -m c1
Expand Down
1 change: 0 additions & 1 deletion git-ref/tests/fixtures/make_packed_ref_repository.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
set -eu -o pipefail

git init -q
git config commit.gpgsign false

git checkout -q -b main
git commit -q --allow-empty -m c1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
set -eu -o pipefail

git init -q
git config commit.gpgsign false

git checkout -q -b main
git commit -q --allow-empty -m c1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
set -eu -o pipefail

git init -q
git config commit.gpgsign false

git checkout -q -b main
git commit -q --allow-empty -m c1
Expand Down
1 change: 0 additions & 1 deletion git-ref/tests/fixtures/make_ref_repository.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
set -eu -o pipefail

git init -q
git config commit.gpgsign false

git checkout -q -b main
git commit -q --allow-empty -m c1
Expand Down
1 change: 0 additions & 1 deletion git-ref/tests/fixtures/make_repo_for_reflog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
set -eu -o pipefail

git init -q
git config commit.gpgsign false

git checkout -q -b main
git commit -q --allow-empty -m c1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
set -eu -o pipefail

git init -q
git config commit.gpgsign false

git checkout -q -b main
git commit -q --allow-empty -m c1
Expand Down
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
1 change: 0 additions & 1 deletion git-repository/tests/fixtures/make_basic_repo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
set -eu -o pipefail

git init -q
git config commit.gpgsign false

git checkout -b main
touch this
Expand Down
Loading