Commit Graph

52 Commits

Author SHA1 Message Date
Sam Alba
bc17cef74a ci: run go unit tests from the dagger plan
Signed-off-by: Sam Alba <samalba@users.noreply.github.com>
2022-04-19 15:41:40 -07:00
Andrea Luzzardi
162949d87d ci: lint dagger using dagger
- `Makefile` now uses `dagger do lint` to lint
- GHA uses dagger to lint

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2022-04-06 18:42:18 -07:00
Tom Chauveau
19c0f999f4
Fix export cache issue
Resolve #1551 and #1020.
We are never returning the result of solved operations so Buildkit could not
cache the layer.
This commit implements a simple system to forward operations' result to the
main build to cache it.

Signed-off-by: Vasek - Tom C <tom.chauveau@epitech.eu>
2022-03-31 20:36:50 +02:00
Gerhard Lazu
c4104626c3
Merge pull request #1837 from marcosnils/feat/docs_os_select
Attempt to automatically select OS tab based on user user-agent
2022-03-24 23:10:32 +00:00
Andrea Luzzardi
fd2ccc0048 ci: disable telemetry
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2022-03-23 19:01:09 -07:00
Marcos Lilljedahl
b401cdafd9 Add markdownlint to Makefile
We're currently running markdownlint in CI and we didn't have a target
for that in our makefile. Adding that to prevent rejected PR's due to
markdown linting errors

Signed-off-by: Marcos Lilljedahl <marcosnils@gmail.com>
2022-03-23 15:35:49 -03:00
Joel Longtine
bf691418d1 Remove old universe target in Makefile
Signed-off-by: Joel Longtine <joel@dagger.io>
2022-02-23 12:20:01 -07:00
Gerhard Lazu
c9a8159f28
Set the version when installing via make install
Before:
    dagger devel () darwin/amd64

After:
    dagger devel (1d1b9083) darwin/amd64

Also removed the dependency on the dagger target, since go install is
very similar to go build, the only difference in this context is that it
places the binary in $GOPATH/bin.

Signed-off-by: Gerhard Lazu <gerhard@lazu.co.uk>
2022-02-04 11:59:50 +00:00
Gerhard Lazu
5719ccbc96
Add a new make target that provisions dagger-ci declaratively
While at it, add help make target & make it the default.
This explains all make targets. Run `make help` to see it in action 😉

dagger-ci-pr1499-2022-01-26 API token was added as an AGE secret. It can
be accessed only by the intended recipients are able to decrypt it with
their private SSH keys.

    echo "TOKEN" | age -R .age.recipients.txt -o .do.dagger-ci-pr1499-2022-01-26.age

Do not assume that /bin/true exists on hosts running Docker.  Use "true"
and let the system resolve the path.

Re-enable all ssh Universe tests.

Signed-off-by: Gerhard Lazu <gerhard@lazu.co.uk>
2022-01-26 23:13:59 +00:00
Andrea Luzzardi
568cd194a4 tests: Basic test infrastructure for Europa Universe
- Each package can include its own bats file (e.g. `universe.dagger.io/yarn/test/yarn.bats`)
- universe.dagger.io includes a common bash helper file
- bats is installed/launched through yarn with minimal setup
- shellcheck is done across the entire repo
- Integrated into our CI

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2022-01-19 12:39:39 -08:00
Andrea Luzzardi
613fc3c400 tests: fix dagger binary path
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-12-13 16:13:49 +01:00
Sam Alba
72935fbc06 added winio to godeps
Signed-off-by: Sam Alba <samalba@users.noreply.github.com>
2021-11-08 17:12:46 -08:00
jffarge
a2088a09ac docs: ♻️ merge API Reference and Universe menu entries
Signed-off-by: jffarge <jf@dagger.io>
2021-09-08 15:19:19 +02:00
Guillaume de Rouville
8e9a56a024 Add doc-test to CI - Add Cue dependency to integration CI test
Signed-off-by: Guillaume de Rouville <guillaume.derouville@gmail.com>
2021-09-01 11:12:41 +02:00
Guillaume de Rouville
ad2f9b3f17 1003 test implementation
Signed-off-by: Guillaume de Rouville <guillaume.derouville@gmail.com>
2021-09-01 11:12:41 +02:00
Andrea Luzzardi
eb78661620 move versioning into the version package
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-07-19 17:43:45 +02:00
Andrea Luzzardi
304959b3f5 automatically detect vendored buildkit version
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-07-19 16:26:18 +02:00
Andrea Luzzardi
cc004eb0ef ci: run universe tests as a separate CI job
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-07-01 18:55:03 +02:00
Andrea Luzzardi
3339a351ed tests: enable shellcheck for universe tests
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-06-09 15:51:31 -07:00
Solomon Hykes
fcbdfe178a Move universe integration tests to universe dir.
Signed-off-by: Solomon Hykes <solomon@dagger.io>
2021-06-09 20:28:44 +00:00
Andrea Luzzardi
6d5142aa67 docs: use make docs to re-generate the docs
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-06-08 18:57:53 -07:00
Andrea Luzzardi
e1f28a73e5 docs: add make universe
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-06-08 18:29:02 -07:00
Andrea Luzzardi
e9b952a882 docs: rename tools/daggosaurus to website
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-06-04 13:49:20 -07:00
Andrea Luzzardi
973ada8ce4 docs: add make docs target
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-06-02 14:07:10 -07:00
Andrea Luzzardi
b1c50671b3 fix build for non-cgo
- use mitchellh/go-homedir rather than os/user to work on non cgo
  enabled builds (e.g. release binaries)
- updated Makefile to disable cgo on dev binaries

Fixes #519

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-05-28 11:48:50 -07:00
Sven Dowideit
bca143c1da I'm betting this is a minor spelling thing :)
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
2021-05-28 08:52:30 +10:00
Andrea Luzzardi
af32e60b37 fix cue fmt
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-05-26 18:46:13 -07:00
Andrea Luzzardi
af776b8abe cleanup: move packages to top level, change vanity URL
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-05-25 16:54:00 -07:00
dubo-dubon-duponey
c5c15c2e1a
Proposal to fix #442
Signed-off-by: dubo-dubon-duponey <dubodubonduponey+github@pm.me>
2021-05-11 15:03:15 -07:00
Andrea Luzzardi
feda737d71 tests: convert stdlib to bats
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-04-15 16:09:19 -07:00
Andrea Luzzardi
e7458e9ca2 tests: use bats for integration tests
Converted the CLI tests to using bats to get started

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-04-14 15:18:34 -07:00
Frederick F. Kautz IV
e2066de088 Add 'make install'
Signed-off-by: Frederick F. Kautz IV <fkautz@alumni.cmu.edu>
2021-04-05 23:50:23 -07:00
Andrea Luzzardi
7da33d00fc ci: use golangci github action
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-04-02 14:29:17 -07:00
Sam Alba
ca613ea50b fix linting errors
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-03-24 09:36:19 -07:00
Tony Worm
3a9b33f028 move timeout to golangci-lint command
Signed-off-by: Tony Worm <tony@hofstadter.io>
2021-03-16 15:33:52 -04:00
Andrea Luzzardi
b04c046234 test: lint cue test files
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-03-12 18:12:58 -08:00
Andrea Luzzardi
408053f092 ci: use cue version from go.mod
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-03-02 19:09:29 -08:00
Andrea Luzzardi
14f535655d ci: ensure cue version is consistent
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-03-02 18:59:07 -08:00
Andrea Luzzardi
14ff14ea4f automatically start/upgrade buildkitd
- Automatically start a buildkit daemon if no BUILDKIT_HOST is
  provided (and if not already started)
- Customization of BUILDKIT_HOST is still possible, just like before
- Automatically upgrade the managed daemon to the version used by dagger
  if necessary
- Add CI test to make sure the managed buildkit and the vendored
  buildkit versions match

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-03-02 18:37:30 -08:00
Andrea Luzzardi
5ba6dd1617 embedded stdlib
This PR embeds the stdlib into the dagger binary itself for convenience.
Long term we will want to source the stdlib directly from git.

- Updated go to 1.16 to use the new built-in embedding functionality
- The `stdlib` go package now contains an embed of the stdlib

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-02-17 10:08:56 -08:00
Solomon Hykes
bff4186bf4 dagger compute auto-fetches standard library from external repo
- Standard library is hosted at github.com/blocklayerhq/dagger-stdlib
- When dagger repo is made public, stdlib can be hosted from same repo
- Vendored cue.mod is merged with stdlib at file granularity
- When developing dagger, set DAGGER_DEV_STDLIB to a local stdlib
  directory

Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-02-12 23:31:13 +00:00
Solomon Hykes
e8527ddcf5 No more runtime spec validation
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-02-12 23:30:46 +00:00
Andrea Luzzardi
89c7136f75 tests: move tests top-level
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-02-03 15:02:43 -08:00
Solomon Hykes
6f4577d501 Fix and improve examples/simple
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-01-28 19:29:57 -08:00
Andrea Luzzardi
05b45aa636
Merge pull request #59 from blocklayerhq/cue-lint-all
lint all cue files
2021-01-20 21:46:31 -08:00
Andrea Luzzardi
6ab7f88007 lint all cue files
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-01-20 18:59:21 -08:00
Andrea Luzzardi
5fa527d721 ci: enable data race detector
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-01-20 18:44:29 -08:00
dubo-dubon-duponey
e301dfa7b1
Adding tests
Signed-off-by: dubo-dubon-duponey <dubodubonduponey+github@pm.me>
2021-01-14 17:29:12 -08:00
Andrea Luzzardi
cf390e9243 ci: enable tests
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-01-13 18:21:56 -08:00
Andrea Luzzardi
2dfe2fccbe linter: ensure make generate is up to date
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-01-08 17:29:06 +01:00