Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
141 commits
Select commit Hold shift + click to select a range
c6ee337
docs: document all config options, includes a unit test for verification
drahnr May 30, 2020
13cb2b5
chore: add a localhost dummy config
drahnr Nov 12, 2020
0ad1360
feat/deps: update dependencies
drahnr Nov 16, 2020
ef5071d
feat/rustls: replace openssl with rustls, rsa, ring, picky
drahnr Nov 16, 2020
51a3a39
chore/dist/http: simplify a bit
drahnr Nov 16, 2020
4b62c1e
fix/dist: reduce warnings
drahnr Nov 17, 2020
5fe0954
Initial ci (#8)
TriplEight Nov 17, 2020
a072fc7
fix (fmt): make fmt green; remove unneded CI var
TriplEight Nov 17, 2020
13706db
fix: blip due to missing CI
drahnr Nov 17, 2020
860fec3
better includes
drahnr Nov 17, 2020
df988ef
fix (CI): fix nightly build
TriplEight Nov 17, 2020
2d7636b
bump rsa-export dependency
drahnr Nov 18, 2020
2303db4
make sure ring uses std::error::Error
drahnr Nov 18, 2020
594f135
port 3000 is overused
drahnr Nov 18, 2020
6bad55a
assure s3 prefix is used
drahnr Nov 18, 2020
e5ab7de
fix: cargo clippy happyness
TriplEight Nov 19, 2020
30746f0
chore/ci: remove legacy, add autorebase [skip ci]
TriplEight Nov 19, 2020
d5653b0
better assert messages
drahnr Apr 2, 2020
4f565d8
chore/cleanup: use alias of compiler proxy map
drahnr Apr 3, 2020
1ef4bf4
chore/clippy: I am clippy, how can I help you today?
drahnr Apr 2, 2020
dc1fc93
chore: qed -> Q.E.D.
drahnr Nov 19, 2020
b1ece14
test: fixup fallout
drahnr Nov 19, 2020
4ae46a6
fix/ci: remove EXTRA_FEATURES again
drahnr Nov 19, 2020
e04803f
fix/test: assure more caching than anticipated, use a regex
drahnr Nov 19, 2020
f10ab0a
fix/ci: feature flag sanity, rely on default features
drahnr Nov 19, 2020
06cc173
fix/cargo: all feature is now deprecated
drahnr Nov 19, 2020
a9b3d9b
chore: clippy
drahnr Nov 19, 2020
82e77d4
chore/deps: update cc to 1.0.63
drahnr Nov 19, 2020
f1718d4
chore: cargo fmt
drahnr Nov 19, 2020
6ed43d6
fix: re-use harness
drahnr Nov 19, 2020
ac6baf0
test/gcc/pgo: adjust integration test for pgo usage
drahnr Nov 19, 2020
bbe2b87
chore/deps: bump env_logger for is_test(bool) sake, + others
drahnr Nov 20, 2020
a33747f
chore: use the pkg name for test binary name
drahnr Nov 20, 2020
87deda7
fix/test: after preproc, it's still the same file
drahnr Nov 20, 2020
bda7270
chore/ci: always show the gcc/clang version used in ci
drahnr Nov 20, 2020
16f827e
chore: show rustc version explicitly
drahnr Nov 20, 2020
759693d
ci: differing results between CI and local test execution
drahnr Nov 20, 2020
a4f0a8f
refactor: Convert server.rs to use async await
Apr 29, 2020
4b70f5a
make the shutdown period a const, lower to 25secs
drahnr Nov 20, 2020
666d95e
chore: remove unnecessary explicit default impl
drahnr Nov 20, 2020
b940b56
Use rusoto for S3 cache
Hugal31 Aug 11, 2020
5422a4b
Remove simples3 module, migrate backends to v0.3 futures
drahnr Nov 23, 2020
a5efa98
funkster
drahnr Nov 27, 2020
acdcb47
yaaaay!
drahnr Dec 2, 2020
2db3177
fooo
drahnr Dec 2, 2020
be4db84
remove cleanupn
drahnr Dec 2, 2020
a91a2a9
not compiling
drahnr Dec 2, 2020
fba68cd
compiling
drahnr Dec 2, 2020
3d5aa6f
Re-add the possibility to specify region and endpoint for S3 cache
Hugal31 Aug 14, 2020
88b02c2
Update README to document S3 configuration
Hugal31 Sep 2, 2020
2124aae
[s3] support anonymous reads from public buckets
rexhoffman Oct 18, 2020
e5b6ef7
chore cargo manifest alphabetical order
drahnr Dec 3, 2020
30d5b20
gcs fixes
drahnr Dec 3, 2020
4afa5eb
chore format
drahnr Dec 3, 2020
484c3ac
error handling
drahnr Dec 4, 2020
43efc02
fix gcs compilation
drahnr Dec 4, 2020
1d2d464
add comment about how to improve gcs creds locking
drahnr Dec 4, 2020
7baf9de
fixup redis
drahnr Dec 4, 2020
35cc21f
fixup redis, remove commented code
drahnr Dec 4, 2020
bb1dd75
migrate to futures 0.3 step by step
drahnr Dec 4, 2020
76b3fc4
migrate to async/await
drahnr Dec 4, 2020
00fd51a
more futures 0.3 migration steplets
drahnr Dec 15, 2020
3c1da98
fixup compiler.rs
drahnr Dec 16, 2020
5a5d03b
many many scatter migration items
drahnr Dec 16, 2020
064d39d
chores
drahnr Dec 17, 2020
b899b1b
migrate utils partially
drahnr Dec 17, 2020
374f09e
misc
drahnr Dec 17, 2020
6bf08cc
foo
drahnr Jan 5, 2021
0b68bf3
remove custom SpawnExt and spawn_fn
drahnr Jan 5, 2021
f4ab62e
fmt + more fixes
drahnr Jan 5, 2021
35c4214
more future migration data points
drahnr Jan 5, 2021
ce67f00
update deps, remove tokio_uds, remove badges
drahnr Jan 7, 2021
63558ce
another one bites the dust
drahnr Jan 7, 2021
11aab14
minor chores
drahnr Jan 7, 2021
ba27248
match dance changing location
drahnr Jan 7, 2021
5abb384
rename future 0.1 with legacy_ prefix, use futures_03 by default
drahnr Jan 7, 2021
c69ece5
another 2 gone for good
drahnr Jan 9, 2021
f41ac40
remove remaining compat
drahnr Jan 9, 2021
3696668
exit status
drahnr Jan 9, 2021
b81901b
silly jobserver mistake
drahnr Jan 9, 2021
ade3fa3
make Service::bind async
drahnr Jan 9, 2021
f77e007
use explicit type aliases
drahnr Jan 19, 2021
c63b655
some more types
drahnr Jan 19, 2021
d1f99e8
hack
drahnr Jan 19, 2021
1a58c3d
bump base64 to 0.13
drahnr Jan 21, 2021
a99ca31
fix command type error with jobserver
drahnr Jan 21, 2021
56a862f
make error messages human
drahnr Jan 21, 2021
476c694
pass by value, to avoid
drahnr Jan 26, 2021
3139483
more changes
drahnr Jan 26, 2021
fd84524
fix the last server.rs error
drahnr Jan 27, 2021
de05b1b
async fn has imperfections
drahnr Jan 27, 2021
2868abf
more fixes
drahnr Jan 27, 2021
6a44f02
make it compile
drahnr Jan 27, 2021
6eaeb21
removing warnings and compiler errors (#29)
gww-parity Jan 31, 2021
16c70f1
Squashed commit of the following:
drahnr Jan 31, 2021
c563854
remove sync bound from Storage trait
drahnr Jan 31, 2021
94c574d
test fixes
drahnr Jan 31, 2021
97b8b82
gcs test service fix
drahnr Jan 31, 2021
fce23ca
just wrong, but better error msgs
drahnr Jan 31, 2021
3ed56aa
use type aliases in tests too
drahnr Jan 31, 2021
b5805cd
introduce test mock helper fut_wrap
drahnr Jan 31, 2021
62cf00f
config member fixes
drahnr Jan 31, 2021
2bfaee3
use mock test Waiter trait
drahnr Jan 31, 2021
f3b5a8d
use the bytes reader
drahnr Jan 31, 2021
31d659e
use dist server test hyper client http forgiving mehtod instead of ba…
drahnr Jan 31, 2021
a99644f
fix/test: mock code adjustments
drahnr Feb 10, 2021
937c90e
fix/config: s3 is always with ssl, now has public option
drahnr Feb 10, 2021
01abc2d
fix/test: make another test pass
drahnr Feb 10, 2021
51edc0b
fix/test: make sure to test all output lines for the C compiler check
drahnr Feb 11, 2021
1f1cc9c
chores
drahnr Feb 19, 2021
afec449
fix unknown compiler test
drahnr Feb 19, 2021
3455953
restore behaviour of fn get_cached_or_compile
drahnr Feb 19, 2021
9e76107
cleanup/legacy: remove obsolete futures 0.1 aliases
drahnr Feb 19, 2021
4179502
fix/test: split fn dist_or_local_compile in a combined and a unfailab…
drahnr Feb 19, 2021
567cd73
fix: Call stuff in Tokio context in test_server_port_in_use
Xanewok Mar 15, 2021
42d1901
fix: Wait for either server completion of shutdown signal/idleness
Xanewok Mar 15, 2021
48d11e9
fix: Use runtime-agnostic timeout when fetching from cache storage
Xanewok Mar 15, 2021
6837633
Prefer using Tokio as the main task runtime (#33)
Xanewok Mar 27, 2021
0711f50
Fix compilation in futures branch when not using default features (#36)
Xanewok Mar 27, 2021
6e798bb
Use regular futures/tokio crate names
Xanewok Mar 28, 2021
286fcce
Tweak futures crate usage
Xanewok Mar 28, 2021
8c9ac5b
Use std::process in run_server_process
Xanewok Mar 28, 2021
96e30cc
Simplify async/await and minimize diff with upstream
Xanewok Mar 29, 2021
4a335a9
Simplify hyper type dance in client_auth.rs
Xanewok Mar 30, 2021
42495c1
Simplify GCS cache code and minimize diff with upstream
Xanewok Mar 30, 2021
92fb474
chore: Simplify and streamline the code to minize the diff with upstream
Xanewok Mar 31, 2021
2ee90f7
feat: Asyncify checking the dist scheduler status
Xanewok Mar 31, 2021
36187b2
fix/gcs: Don't require extra Send bound with dyn ReadSeek
Xanewok Mar 31, 2021
9b6bd12
fix: Remove unnecessary imports
Xanewok Mar 31, 2021
f3ac260
fixup: Fix compilation with newly-async get_status
Xanewok Mar 31, 2021
e52835e
fixup: Fix compilation without default-features in src/compiler/rust.rs
Xanewok Mar 31, 2021
03b2e1b
Don't use special ArcDynStorage type alias
Xanewok Mar 31, 2021
942c525
Don't use BoxDynToolchainPackager type alias
Xanewok Mar 31, 2021
3813bb8
Don't use BoxDynInputsPackager type alias
Xanewok Mar 31, 2021
ab0bb45
Prepare not to use BoxDynCompiler
Xanewok Mar 31, 2021
aa9f3bc
Drop Sync requirement from BoxDynCompiler
Xanewok Mar 31, 2021
b7d15fd
Remove BoxDynCompiler type alias
Xanewok Mar 31, 2021
d38eceb
Prepare to drop CompilerProxy type alias
Xanewok Mar 31, 2021
7f4ce8a
Drop Sync bound from the CompilerProxy
Xanewok Mar 31, 2021
a365564
Remove BoxDynCompilerProxy type alias
Xanewok Mar 31, 2021
8bfa41a
Remove ArcDynClient type alias
Xanewok Mar 31, 2021
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
32 changes: 32 additions & 0 deletions .github/workflows/autorebase.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
on:
# Run on every push on every branch
push:
branches-ignore:
# Ignore branches automatically created by github-rebase
- rebase-pull-request**
- cherry-pick-rebase-pull-request**
# Run when pull requests get labeled
pull_request:
types: [labeled]

jobs:
auto-rebase:
name: AutoRebase
runs-on: ubuntu-latest
steps:
# We can't use the built-in secrets.GITHUB_TOKEN yet because of this limitation:
# https://github.community/t5/GitHub-Actions/Triggering-a-new-workflow-from-another-workflow/td-p/31676
# In the meantime, use a token granting write access on the repo:
# - a GitHub App token
# See https://github.com/marketplace/actions/github-app-token.
- name: GitHub App token
id: token-generator
uses: tibdex/github-app-token@v1.0.2
with:
app_id: ${{ secrets.TOKEN_GEN_APP_ID }}
private_key: ${{ secrets.TOKEN_GEN_PRIVATE_KEY }}

- name: Auto Rebase
uses: Label305/AutoRebase@v0.1
with:
github_token: ${{ steps.token-generator.outputs.token }}
40 changes: 0 additions & 40 deletions .github/workflows/ci.yml

This file was deleted.

94 changes: 94 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
# .gitlab-ci.yml
#
# sccache


stages:
- check
- test
- deploy

variables:
GIT_STRATEGY: fetch
GIT_DEPTH: 100
CARGO_INCREMENTAL: 0
# this var is changed to "-:staging" when the CI image gets rebuilt
# read more https://github.com/paritytech/scripts/pull/244
CI_IMAGE: "paritytech/sccache-ci-ubuntu:staging" # temporary override

workflow:
rules:
- if: $CI_COMMIT_TAG
- if: $CI_COMMIT_BRANCH

.docker-env: &docker-env
image: "${CI_IMAGE}"
before_script:
- which gcc && gcc --version
- which clang && clang --version
- rustc +stable --version
- rustc +nightly --version
- sccache -s
retry:
max: 2
when:
- runner_system_failure
- unknown_failure
- api_failure
interruptible: true
tags:
- linux-docker
rules:
- if: $CI_PIPELINE_SOURCE == "web"
- if: $CI_PIPELINE_SOURCE == "schedule"
- if: $CI_COMMIT_REF_NAME == "master"
- if: $CI_COMMIT_REF_NAME == "tags"
- if: $CI_COMMIT_REF_NAME =~ /^[0-9]+$/ # PRs
- if: $CI_COMMIT_REF_NAME =~ /^v[0-9]+\.[0-9]+.*$/ # i.e. v1.0, v2.1rc1

.collect-artifacts: &collect-artifacts
artifacts:
name: "${CI_JOB_NAME}_${CI_COMMIT_REF_NAME}"
when: on_success
expire_in: 7 days
paths:
- artifacts/

#### stage: check

fmt:
<<: *docker-env
stage: check
script:
- cargo fmt -- --check
allow_failure: true

clippy:
<<: *docker-env
stage: check
script:
- cargo clippy --all-targets
allow_failure: true

#### stage: test

nightly-test:
<<: *docker-env
stage: test
variables:
EXTRA_FEATURES: "unstable"
script:
- cargo +nightly build --verbose --features="${EXTRA_FEATURES}" || exit 1
- RUST_BACKTRACE=1 cargo +nightly test --workspace --verbose --features="${EXTRA_FEATURES}"

stable-test:
stage: test
<<: *docker-env
<<: *collect-artifacts
script:
- cargo +stable build --verbose
- RUST_BACKTRACE=1 cargo +stable test --workspace --verbose
- cargo +stable build --release --features="dist-client,dist-server"
# collect artifacts
- mkdir -p ./artifacts/sccache/
- mv ./target/release/sccache ./artifacts/sccache/.
Loading