Unverified Commit 90c46956 authored by Oleg Grenrus's avatar Oleg Grenrus Committed by GitHub
Browse files

Merge pull request #7064 from phadej/docker-no-ulimit

Skip less: docker ulimit and local+noindex to run withRepo tests. 
parents f99739e6 2630c2c8
......@@ -184,36 +184,39 @@ validate-dockerfiles : .docker/validate-7.6.3.dockerfile
.docker/validate-%.dockerfile : .docker/validate.dockerfile.zinza cabal-dev-scripts/src/GenValidateDockerfile.hs
cabal v2-run --builddir=dist-newstyle-meta --project-file=cabal.project.meta gen-validate-dockerfile -- $* $< $@
# This is good idea anyway
# and we have a test relying on this limit being sufficiently small
DOCKERARGS:=--ulimit nofile=1024:1024
validate-via-docker-7.6.3:
docker build -t cabal-validate -f .docker/validate-7.6.3.dockerfile .
docker build $(DOCKERARGS) -t cabal-validate:7.6.3 -f .docker/validate-7.6.3.dockerfile .
validate-via-docker-7.8.4:
docker build -t cabal-validate -f .docker/validate-7.8.4.dockerfile .
docker build $(DOCKERARGS) -t cabal-validate:7.8.4 -f .docker/validate-7.8.4.dockerfile .
validate-via-docker-7.10.3:
docker build -t cabal-validate -f .docker/validate-7.10.3.dockerfile .
docker build $(DOCKERARGS) -t cabal-validate:7.10.3 -f .docker/validate-7.10.3.dockerfile .
validate-via-docker-8.0.2:
docker build -t cabal-validate -f .docker/validate-8.0.2.dockerfile .
docker build $(DOCKERARGS) -t cabal-validate:8.0.2 -f .docker/validate-8.0.2.dockerfile .
validate-via-docker-8.2.2:
docker build -t cabal-validate -f .docker/validate-8.2.2.dockerfile .
docker build $(DOCKERARGS) -t cabal-validate:8.2.2 -f .docker/validate-8.2.2.dockerfile .
validate-via-docker-8.4.4:
docker build -t cabal-validate -f .docker/validate-8.4.4.dockerfile .
docker build $(DOCKERARGS) -t cabal-validate:8.4.4 -f .docker/validate-8.4.4.dockerfile .
validate-via-docker-8.6.5:
docker build -t cabal-validate -f .docker/validate-8.6.5.dockerfile .
docker build $(DOCKERARGS) -t cabal-validate:8.6.5 -f .docker/validate-8.6.5.dockerfile .
validate-via-docker-8.8.3:
docker build -t cabal-validate -f .docker/validate-8.8.3.dockerfile .
docker build $(DOCKERARGS) -t cabal-validate:8.8.3 -f .docker/validate-8.8.3.dockerfile .
# Only library ATM
validate-via-docker-8.10.1:
docker build -t cabal-validate -f .docker/validate-8.10.1.dockerfile .
docker build $(DOCKERARGS) -t cabal-validate:8.10.1 -f .docker/validate-8.10.1.dockerfile .
validate-via-docker-old:
docker build -t cabal-validate -f .docker/validate-old.dockerfile .
docker build $(DOCKERARGS) -t cabal-validate:older -f .docker/validate-old.dockerfile .
# Weeder
weeder :
......
# cabal v1-update
# cabal v2-update
Downloading the latest package list from test-local-repo
# cabal v2-build
Resolving dependencies...
Build profile: -w ghc-<GHCVER> -O1
In order, the following will be built:
- sigs-0.1.0.0 (lib) (requires download & build)
- indef-0.1.0.0 (lib) (requires download & build)
- indef-0.1.0.0 (lib with Data.Map=containers-<VERSION>:Data.Map) (requires download & build)
- sigs-0.1.0.0 (lib) (requires build)
- indef-0.1.0.0 (lib) (requires build)
- indef-0.1.0.0 (lib with Data.Map=containers-<VERSION>:Data.Map) (requires build)
- exe-0.1.0.0 (exe:exe) (first run)
Configuring library for sigs-0.1.0.0..
Preprocessing library for sigs-0.1.0.0..
......
# cabal v1-update
# cabal v2-update
Downloading the latest package list from test-local-repo
# cabal v2-build
Resolving dependencies...
......
# cabal v1-update
# cabal v2-update
Downloading the latest package list from test-local-repo
# cabal v2-build
Resolving dependencies...
cabal: Could not resolve dependencies:
[__0] trying: pkg-1.0 (user goal)
[__1] next goal: setup-dep (user goal)
[__1] rejecting: setup-dep-2.0 (conflict: pkg => setup-dep==1.*)
[__1] rejecting: setup-dep-2.0 (conflict: pkg => setup-dep>=1 && <2)
[__1] rejecting: setup-dep-1.0 (constraint from user target requires ==2.0)
[__1] fail (backjumping, conflict set: pkg, setup-dep)
After searching the rest of the dependency tree exhaustively, these were the goals I've had most trouble fulfilling: setup-dep (3), pkg (2)
......
# cabal v1-update
# cabal v2-update
Downloading the latest package list from test-local-repo
# cabal v1-freeze
Resolving dependencies...
# cabal v1-update
# cabal v2-update
Downloading the latest package list from test-local-repo
# cabal v1-freeze
Resolving dependencies...
# cabal v1-update
# cabal v2-update
Downloading the latest package list from test-local-repo
# cabal v1-update
# cabal v2-update
Downloading the latest package list from test-local-repo
# cabal v1-freeze
Resolving dependencies...
# cabal v1-update
# cabal v2-update
Downloading the latest package list from test-local-repo
# cabal v1-freeze
Resolving dependencies...
# cabal v1-update
# cabal v2-update
Downloading the latest package list from test-local-repo
# cabal v1-freeze
Resolving dependencies...
# cabal v1-update
# cabal v2-update
Downloading the latest package list from test-local-repo
# pkg my-exe
pkg Main.hs: remote-pkg-2.0
# cabal v1-update
# cabal v2-update
Downloading the latest package list from test-local-repo
# cabal v2-build
Resolving dependencies...
Build profile: -w ghc-<GHCVER> -O1
In order, the following will be built:
- old-locale-1.0.0.7 (lib) (requires download & build)
- old-time-1.1.0.3 (lib) (requires download & build)
- a-0.1 (lib:a) (first run)
Configuring library for old-locale-1.0.0.7..
Preprocessing library for old-locale-1.0.0.7..
Building library for old-locale-1.0.0.7..
Installing library in <PATH>
Configuring library for old-time-1.1.0.3..
Preprocessing library for old-time-1.1.0.3..
Building library for old-time-1.1.0.3..
Installing library in <PATH>
# cabal v1-update
# cabal v2-update
Downloading the latest package list from test-local-repo
# cabal v2-build
Resolving dependencies...
Build profile: -w ghc-<GHCVER> -O1
In order, the following would be built:
- my-build-tool-dep-1.0 (exe:my-build-tool) (requires download & build)
- my-build-tool-dep-3.0 (exe:my-build-tool) (requires download & build)
- my-library-dep-1.0 (lib) (requires download & build)
- my-build-tool-dep-1.0 (exe:my-build-tool) (requires build)
- my-build-tool-dep-3.0 (exe:my-build-tool) (requires build)
- my-library-dep-1.0 (lib) (requires build)
- my-local-package-1.0 (lib) (first run)
# cabal v2-freeze
Resolving dependencies...
......@@ -15,7 +15,7 @@ Wrote freeze file: <ROOT>/new_freeze.dist/source/cabal.project.freeze
Resolving dependencies...
Build profile: -w ghc-<GHCVER> -O1
In order, the following would be built:
- my-build-tool-dep-1.0 (exe:my-build-tool) (requires download & build)
- my-build-tool-dep-2.0 (exe:my-build-tool) (requires download & build)
- my-library-dep-1.0 (lib) (requires download & build)
- my-build-tool-dep-1.0 (exe:my-build-tool) (requires build)
- my-build-tool-dep-2.0 (exe:my-build-tool) (requires build)
- my-library-dep-1.0 (lib) (requires build)
- my-local-package-1.0 (lib) (first run)
# cabal v1-update
# cabal v2-update
Downloading the latest package list from test-local-repo
# cabal v2-build
Resolving dependencies...
Build profile: -w ghc-<GHCVER> -O1
In order, the following would be built:
- true-dep-1.0 (lib) (requires download & build)
- my-library-dep-1.0 (lib) (requires download & build)
- true-dep-1.0 (lib) (requires build)
- my-library-dep-1.0 (lib) (requires build)
- my-local-package-1.0 (lib) (first run)
# cabal v2-freeze
Resolving dependencies...
......@@ -14,6 +14,6 @@ Wrote freeze file: <ROOT>/new_freeze.dist/source/cabal.project.freeze
Resolving dependencies...
Build profile: -w ghc-<GHCVER> -O1
In order, the following would be built:
- false-dep-1.0 (lib) (requires download & build)
- my-library-dep-1.0 (lib) (requires download & build)
- false-dep-1.0 (lib) (requires build)
- my-library-dep-1.0 (lib) (requires build)
- my-local-package-1.0 (lib) (first run)
# cabal v1-update
# cabal v2-update
Downloading the latest package list from test-local-repo
# cabal v2-build
Resolving dependencies...
Build profile: -w ghc-<GHCVER> -O1
In order, the following would be built:
- my-library-dep-2.0 (lib) (requires download & build)
- my-library-dep-2.0 (lib) (requires build)
- my-local-package-1.0 (exe:my-exe) (first run)
# cabal v2-freeze
Resolving dependencies...
......@@ -13,7 +13,7 @@ Wrote freeze file: <ROOT>/new_freeze.dist/source/cabal.project.freeze
Resolving dependencies...
Build profile: -w ghc-<GHCVER> -O1
In order, the following will be built:
- my-library-dep-1.0 (lib) (requires download & build)
- my-library-dep-1.0 (lib) (requires build)
- my-local-package-1.0 (exe:my-exe) (first run)
Configuring library for my-library-dep-1.0..
Preprocessing library for my-library-dep-1.0..
......@@ -28,7 +28,7 @@ Wrote freeze file: <ROOT>/new_freeze.dist/source/cabal.project.freeze
Resolving dependencies...
Build profile: -w ghc-<GHCVER> -O1
In order, the following would be built:
- my-library-dep-2.0 (lib) (requires download & build)
- my-library-dep-2.0 (lib) (requires build)
- my-local-package-1.0 (exe:my-exe) (configuration changed)
# cabal v2-freeze
Wrote freeze file: <ROOT>/new_freeze.dist/source/cabal.project.freeze
# cabal v1-update
# cabal v2-update
Downloading the latest package list from test-local-repo
# cabal outdated
Outdated dependencies:
......
# cabal v1-update
# cabal v2-update
Downloading the latest package list from test-local-repo
# cabal outdated
Outdated dependencies:
base ==3.* (latest: 4.0.0.0)
base >=3 && <4 (latest: 4.0.0.0)
template-haskell >=2.3.0.0 && <2.4 (latest: 2.4.0.0)
# cabal outdated
Outdated dependencies:
......
# cabal v1-update
# cabal v2-update
Downloading the latest package list from test-local-repo
# cabal outdated
Outdated dependencies:
......
# cabal v1-update
# cabal v2-update
Downloading the latest package list from test-local-repo
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment