Skip to content

Commit

Permalink
Merge branch 'main' into dependabot/cargo/clap-4.5.31
Browse files Browse the repository at this point in the history
  • Loading branch information
quodlibetor authored Mar 1, 2025
2 parents 0567ecd + 21589e3 commit eedd128
Show file tree
Hide file tree
Showing 15 changed files with 931 additions and 224 deletions.
30 changes: 22 additions & 8 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ jobs:
- name: Clippy
run: cargo clippy -- -D warnings

test:
name: Test
test-integration:
name: Integration Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -39,17 +39,31 @@ jobs:
with:
toolchain: stable

- name: Login to Docker Hub
uses: docker/login-action@v3
- name: Install cargo-nextest
uses: taiki-e/install-action@nextest

- name: Compile tests
run: cargo nextest run --verbose --no-run

- name: Run integration tests
run: cargo nextest run --no-fail-fast -E 'binary(integration)'

test-unit:
name: Unit Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install Rust toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
username: ${{ vars.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
toolchain: stable

- name: Install cargo-nextest
uses: taiki-e/install-action@nextest

- name: Compile tests
run: cargo nextest run --verbose --no-run

- name: Run tests
run: cargo nextest run --no-fail-fast
- name: Run unit tests
run: cargo nextest run --no-fail-fast -E 'not binary(integration)'
57 changes: 41 additions & 16 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,35 @@
# Changelog

## [0.4.0](https://github.com/quodlibetor/s3glob/compare/v0.3.1..0.4.0) - 2025-02-26
## [0.4.2](https://github.com/quodlibetor/s3glob/compare/v0.4.1...v0.4.2) - 2025-02-28

### 🚀 Features

- Add a --quiet/-q flag to suppress progress messages by [@quodlibetor](https://github.com/quodlibetor) in [1730ef8](https://github.com/quodlibetor/s3glob/commit/1730ef8603695e10e50297982bb129243dc1c495)
- Add a --max-parallelism flag, defaulting to 10,000 by [@quodlibetor](https://github.com/quodlibetor) in [eb86ae4](https://github.com/quodlibetor/s3glob/commit/eb86ae49d71a293a3e9ddff2a92b5633ffc13d4a)

### 📚 Documentation

- Add a gif of s3glob in action to the README by [@quodlibetor](https://github.com/quodlibetor) in [27f8dbe](https://github.com/quodlibetor/s3glob/commit/27f8dbe0d203ec6185ae0dec73d31a17efbbc226)

### ⚙️ Miscellaneous Tasks

- Keep track of the max prefixes seen for better messaging by [@quodlibetor](https://github.com/quodlibetor) in [a7ebb41](https://github.com/quodlibetor/s3glob/commit/a7ebb4158fc3d9f34500dd534cbe7990df6df4b5)

## [0.4.1](https://github.com/quodlibetor/s3glob/compare/v0.4.0...v0.4.1) - 2025-02-26

### 🚀 Features

- **breaking** Prefix prefix display with PRE prefix by [@quodlibetor](https://github.com/quodlibetor) in [f99adf1](https://github.com/quodlibetor/s3glob/commit/f99adf1e2b37fa2a44e33b48de2b21dff668818e)
- Add a "shortest" algorithm for --path-mode by [@quodlibetor](https://github.com/quodlibetor) in [14c1376](https://github.com/quodlibetor/s3glob/commit/14c13762679acba0600be39b74ece515a620aaa0)
- Add a --flatten download arg that replaces / with - by [@quodlibetor](https://github.com/quodlibetor) in [bc9ae52](https://github.com/quodlibetor/s3glob/commit/bc9ae52451f8196df5832ec20958ce2f031bedf6)

### ⚙️ Miscellaneous Tasks

- Fix link in CHANGELOG.md by [@quodlibetor](https://github.com/quodlibetor) in [6813927](https://github.com/quodlibetor/s3glob/commit/6813927f5cdee1a42b44481a060c682fbbacd9e4)
- Split unit and integration test jobs by [@quodlibetor](https://github.com/quodlibetor) in [de6e56f](https://github.com/quodlibetor/s3glob/commit/de6e56feddad0be98d35c40ae7585feab2ffbae5)
- Fix changelog template by [@quodlibetor](https://github.com/quodlibetor) in [09e3e80](https://github.com/quodlibetor/s3glob/commit/09e3e8069b22d4f8ac4b76d139a7109943220bd3)

## [0.4.0](https://github.com/quodlibetor/s3glob/compare/v0.3.1...v0.4.0) - 2025-02-26

### 🚀 Features

Expand All @@ -19,19 +48,19 @@

- Improve changelog generation with github links by [@quodlibetor](https://github.com/quodlibetor) in [9f7f93b](https://github.com/quodlibetor/s3glob/commit/9f7f93bca87d3d74a0f127f1602a6ab4151e688e)

## [0.3.1](https://github.com/quodlibetor/s3glob/compare/v0.3.0..v0.3.1) - 2025-02-22
## [0.3.1](https://github.com/quodlibetor/s3glob/compare/v0.3.0...v0.3.1) - 2025-02-22

### ⚡ Performance

- Download objects in parallel for (potentially) huge speedups by [@quodlibetor](https://github.com/quodlibetor) in [#13](https://github.com/quodlibetor/s3glob/pull/13)

## [0.3.0](https://github.com/quodlibetor/s3glob/compare/v0.2.7..v0.3.0) - 2025-02-20
## [0.3.0](https://github.com/quodlibetor/s3glob/compare/v0.2.7...v0.3.0) - 2025-02-20

### 🚀 Features

- Add --path-mode and change default download behavior to only keep paths after glob patterns by [@quodlibetor](https://github.com/quodlibetor) in [958fc6e](https://github.com/quodlibetor/s3glob/commit/958fc6e26e44755b42d83b07316525250561e1c5)

## [0.2.7](https://github.com/quodlibetor/s3glob/compare/v0.2.6..v0.2.7) - 2025-02-19
## [0.2.7](https://github.com/quodlibetor/s3glob/compare/v0.2.6...v0.2.7) - 2025-02-19

### 🚀 Features

Expand All @@ -51,13 +80,13 @@
- Reduce toomanyrequests Docker Hub errors in CI by [@quodlibetor](https://github.com/quodlibetor) in [#9](https://github.com/quodlibetor/s3glob/pull/9)
- Add github attestations to dist release config by [@quodlibetor](https://github.com/quodlibetor) in [#11](https://github.com/quodlibetor/s3glob/pull/11)

## [0.2.6](https://github.com/quodlibetor/s3glob/compare/v0.2.5..v0.2.6) - 2025-02-17
## [0.2.6](https://github.com/quodlibetor/s3glob/compare/v0.2.5...v0.2.6) - 2025-02-17

### 🐛 Bug Fixes

- Support character ranges [a-c] in prefix generation by [@quodlibetor](https://github.com/quodlibetor) in [f3b1393](https://github.com/quodlibetor/s3glob/commit/f3b139351ce22c3065b4ba804a881147bf7a0bc6)

## [0.2.5](https://github.com/quodlibetor/s3glob/compare/v0.2.4..v0.2.5) - 2025-02-15
## [0.2.5](https://github.com/quodlibetor/s3glob/compare/v0.2.4...v0.2.5) - 2025-02-15

### 🚀 Features

Expand All @@ -68,7 +97,7 @@

- Support actual aws cli option --no-sign-request by [@quodlibetor](https://github.com/quodlibetor) in [04b718a](https://github.com/quodlibetor/s3glob/commit/04b718a54f0170ad7f660d5d70f80e066e10460d)

## [0.2.4](https://github.com/quodlibetor/s3glob/compare/v0.2.3..v0.2.4) - 2025-02-14
## [0.2.4](https://github.com/quodlibetor/s3glob/compare/v0.2.3...v0.2.4) - 2025-02-14

### 🐛 Bug Fixes

Expand All @@ -78,7 +107,7 @@

- Point out the parallelism help when few prefixes are found by [@quodlibetor](https://github.com/quodlibetor) in [f07d3b1](https://github.com/quodlibetor/s3glob/commit/f07d3b129df0b8c20fab9428163b399830ea8ff1)

## [0.2.3](https://github.com/quodlibetor/s3glob/compare/v0.2.2..v0.2.3) - 2025-02-13
## [0.2.3](https://github.com/quodlibetor/s3glob/compare/v0.2.2...v0.2.3) - 2025-02-13

### 🐛 Bug Fixes

Expand All @@ -89,7 +118,7 @@

- Add an s3glob help parallelism command by [@quodlibetor](https://github.com/quodlibetor) in [d0c5a65](https://github.com/quodlibetor/s3glob/commit/d0c5a6590eb419a3961e6fa1502c3c59ebb8e0ac)

## [0.2.2](https://github.com/quodlibetor/s3glob/compare/v0.2.1..v0.2.2) - 2025-02-13
## [0.2.2](https://github.com/quodlibetor/s3glob/compare/v0.2.1...v0.2.2) - 2025-02-13

### 🐛 Bug Fixes

Expand All @@ -105,7 +134,7 @@

- Add cargo nextest test timeouts by [@quodlibetor](https://github.com/quodlibetor) in [626c6c3](https://github.com/quodlibetor/s3glob/commit/626c6c339eefbc2e28a8cf9f04954639e56034ee)

## [0.2.1](https://github.com/quodlibetor/s3glob/compare/v0.2.0..v0.2.1) - 2025-02-12
## [0.2.1](https://github.com/quodlibetor/s3glob/compare/v0.2.0...v0.2.1) - 2025-02-12

### 🚀 Features

Expand All @@ -117,7 +146,7 @@

- Add mise config for dev tools by [@quodlibetor](https://github.com/quodlibetor) in [09115f0](https://github.com/quodlibetor/s3glob/commit/09115f08c0dad7699c5eef5e131218e7b3fb9b92)

## [0.2.0](https://github.com/quodlibetor/s3glob/compare/v0.1.1..v0.2.0) - 2025-02-11
## [0.2.0](https://github.com/quodlibetor/s3glob/compare/v0.1.1...v0.2.0) - 2025-02-11

### 🚀 Features

Expand All @@ -130,7 +159,7 @@
- Recognize more release comments in cliff by [@quodlibetor](https://github.com/quodlibetor) in [179e750](https://github.com/quodlibetor/s3glob/commit/179e7501c38c113b3baf7d024440cda3069c5fd9)
- Use cargo-nextest in CI by [@quodlibetor](https://github.com/quodlibetor) in [13c56b9](https://github.com/quodlibetor/s3glob/commit/13c56b9b89d3ab2677bc9ff13e57e716471c2780)

## [0.1.1](https://github.com/quodlibetor/s3glob/compare/v0.1.0..v0.1.1) - 2025-01-20
## [0.1.1](https://github.com/quodlibetor/s3glob/compare/v0.1.0...v0.1.1) - 2025-01-20

### 🚀 Features

Expand All @@ -140,8 +169,4 @@

- Ensure that globs in the file part still get searched by [@quodlibetor](https://github.com/quodlibetor) in [25179a4](https://github.com/quodlibetor/s3glob/commit/25179a47e84772bf272187b75c4a6a00ca1e42d7)

### New Contributors

- @quodlibetor made their first contribution

<!-- generated by git-cliff -->
6 changes: 3 additions & 3 deletions Cargo.lock

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

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "s3glob"
version = "0.4.0"
edition = "2021"
version = "0.4.2"
edition = "2024"
authors = ["Brandon W Maister <[email protected]>"]
license = "MIT, APACHE-2.0"
repository = "https://github.com/quodlibetor/s3glob"
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ glob patterns.
In my experience (on an ec2 instance) s3glob can list 10s of millions of files
in about 5 seconds, where I gave up on `aws s3 ls` after 5 minutes.

![s3glob in action](./static/s3glob.gif)

## Usage

These two commands are equivalent:
Expand Down
12 changes: 1 addition & 11 deletions cliff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ header = """
body = """
{% if version %}\
{% if previous.version %}\
## [{{ version | trim_start_matches(pat="v") }}](<REPO>/compare/{{ previous.version }}..{{ version }}) - {{ timestamp | date(format="%Y-%m-%d") }}
## [{{ version | trim_start_matches(pat="v") }}](<REPO>/compare/{{ previous.version }}...{{ version }}) - {{ timestamp | date(format="%Y-%m-%d") }}
{% else %}\
## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }}
{% endif %}\
Expand All @@ -38,16 +38,6 @@ body = """
{% endif -%}
{% endfor -%}
{% endfor %}
{% if github.contributors | filter(attribute="is_first_time", value=true) | length != 0 -%}
### New Contributors
{% for contributor in github.contributors | filter(attribute="is_first_time", value=true) %}
- @{{ contributor.username }} made their first contribution
{%- if contributor.pr_number %} in \
[#{{ contributor.pr_number }}](<REPO>/pull/{{ contributor.pr_number }})\
{% endif %}\
{% endfor %}
{% endif -%}
{% macro commit(commit) -%}
{% if commit.scope %}**({{commit.scope}})** {% endif -%}
{% if commit.breaking %}**breaking** {% endif -%}
Expand Down
9 changes: 8 additions & 1 deletion release.toml
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
pre-release-hook = ["git", "cliff", "-o", "CHANGELOG.md", "--tag", "{{version}}"]
pre-release-hook = [
"git",
"cliff",
"-o",
"CHANGELOG.md",
"--tag",
"v{{version}}",
]
Loading

0 comments on commit eedd128

Please sign in to comment.