Commit Graph

292 Commits

Author SHA1 Message Date
Andrea Luzzardi
c17ce97381 telemetry: ensure events are not dropped
- Move chan sync code immediately after operation
- Fix git hashing when not in a git repo

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2022-03-08 23:04:58 -08:00
Joel Longtine
6e95fdefc6 Fix bad merge
Signed-off-by: Joel Longtine <joel@dagger.io>
2022-03-08 21:10:40 -07:00
Joel Longtine
8a63f60cd0 Remove TrackPlanCommand + cleanup concurrent async tracking code
Signed-off-by: Joel Longtine <joel@dagger.io>
2022-03-08 21:04:26 -07:00
Joel Longtine
8c4157c3d8 Plan.Up -> Plan.Do
Signed-off-by: Joel Longtine <joel@dagger.io>
2022-03-08 20:46:26 -07:00
Joel Longtine
d45c259501 Remove comment
Signed-off-by: Joel Longtine <joel@dagger.io>
2022-03-08 20:45:58 -07:00
Joel Longtine
cc84325ba5 Remove unneeded property
Signed-off-by: Joel Longtine <joel@dagger.io>
2022-03-08 20:45:58 -07:00
Joel Longtine
d09b62b1e2 Telemetry for commands
Signed-off-by: Joel Longtine <joel@dagger.io>
2022-03-08 20:45:02 -07:00
Richard Jones
5417119198
fixes issue where specifying a non existent action doesnt error properly
Signed-off-by: Richard Jones <richard@dagger.io>
2022-03-08 19:17:49 -07:00
Sam Alba
03adcad911 cmd/up: deprecate dagger up with a warning
Signed-off-by: Sam Alba <samalba@users.noreply.github.com>
2022-03-08 18:03:04 -08:00
Richard Jones
57cea9eb6c
implements dagger project update
Signed-off-by: Richard Jones <richard@dagger.io>
2022-03-08 16:58:20 -07:00
Andrea Luzzardi
0786410bbd Fix partial CUE tree run for dagger do
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2022-03-07 15:56:06 -08:00
Richard Jones
9328cc8c01
dagger do now uses --plan instead of --project
Signed-off-by: Richard Jones <richard@dagger.io>
2022-03-04 16:14:28 -07:00
Richard Jones
7bcf9a9402
Implements dagger project init
Signed-off-by: Richard Jones <richard@dagger.io>
2022-03-04 15:44:11 -07:00
Richard Jones
6cdf13223c
implements dagger do
Signed-off-by: Richard Jones <richard@dagger.io>
2022-03-01 13:01:26 -07:00
Joel Longtine
cc9c9f6b95 Re-add old code (commented)
Signed-off-by: Joel Longtine <joel@dagger.io>
2022-02-23 12:20:02 -07:00
Joel Longtine
f34f1d96c1 Add code (commented) back to doc gen. Probably needs to be reworked for Europa
Signed-off-by: Joel Longtine <joel@dagger.io>
2022-02-23 12:20:02 -07:00
Joel Longtine
eeb20a3999 Temporary fix for markdownlint
Signed-off-by: Joel Longtine <joel@dagger.io>
2022-02-23 12:20:01 -07:00
Joel Longtine
43a46128e0 Remove pre-Europa tests
Signed-off-by: Joel Longtine <joel@dagger.io>
2022-02-23 12:20:01 -07:00
Joel Longtine
7e86b00962 Remove keychain
Signed-off-by: Joel Longtine <joel@dagger.io>
2022-02-23 12:20:01 -07:00
Joel Longtine
55bf5ff4dd Restore TrackProjectCommand + comment (so we can use it later for telemetry)
Signed-off-by: Joel Longtine <joel@dagger.io>
2022-02-23 12:20:01 -07:00
Joel Longtine
a839ab124a Comment out unused code
Signed-off-by: Joel Longtine <joel@dagger.io>
2022-02-23 12:20:01 -07:00
Joel Longtine
cdde074d09 Remove europa flag
Signed-off-by: Joel Longtine <joel@dagger.io>
2022-02-23 12:20:01 -07:00
Joel Longtine
e9b7519402 Remove environment flag
Signed-off-by: Joel Longtine <joel@dagger.io>
2022-02-23 12:20:01 -07:00
Joel Longtine
4e1b6173be Remove state (State + Project)
Signed-off-by: Joel Longtine <joel@dagger.io>
2022-02-23 12:20:01 -07:00
Joel Longtine
034cd74ed0 Remove environment
Signed-off-by: Joel Longtine <joel@dagger.io>
2022-02-23 12:20:01 -07:00
Joel Longtine
c971077222 Remove cmd list
Signed-off-by: Joel Longtine <joel@dagger.io>
2022-02-23 12:20:01 -07:00
Joel Longtine
3863477da0 Remove cmd login/logout
Signed-off-by: Joel Longtine <joel@dagger.io>
2022-02-23 12:20:01 -07:00
Joel Longtine
59e97dd201 Remove cmd down
Signed-off-by: Joel Longtine <joel@dagger.io>
2022-02-23 12:20:01 -07:00
Joel Longtine
a3f91023a1 Remove cmd edit
Signed-off-by: Joel Longtine <joel@dagger.io>
2022-02-23 12:20:01 -07:00
Joel Longtine
5220c6879c Remove cmd new
Signed-off-by: Joel Longtine <joel@dagger.io>
2022-02-23 12:20:01 -07:00
Joel Longtine
1fe005557a Remove cmd query
Signed-off-by: Joel Longtine <joel@dagger.io>
2022-02-23 12:20:01 -07:00
Joel Longtine
ecd2e2b107 Remove cmd history
Signed-off-by: Joel Longtine <joel@dagger.io>
2022-02-23 12:20:01 -07:00
Joel Longtine
817a73b7e0 Remove cmd output
Signed-off-by: Joel Longtine <joel@dagger.io>
2022-02-23 12:20:01 -07:00
Joel Longtine
16733fa9eb Remove cmd input
Signed-off-by: Joel Longtine <joel@dagger.io>
2022-02-23 12:20:01 -07:00
Joel Longtine
cfbd70a823 Remove compute
Signed-off-by: Joel Longtine <joel@dagger.io>
2022-02-23 12:20:01 -07:00
Richard Jones
071c3bafe1
Implemented --no-vendor
Signed-off-by: Richard Jones <richard@dagger.io>
2022-02-14 14:26:37 -07:00
Guillaume Coguiec
bd0f276d30
typo: Fix some minor typos.
Signed-off-by: Guillaume Coguiec <guillaume@logical.work>
2022-02-07 21:10:25 -05:00
Andrea Luzzardi
55a9c9100d logger: collapse logs for hidden fields
This change "collapses" together log "groups" containing hidden fields
for the TTY logger.

e.g. `actions.foo._a` and `actions.foo_b` will show up as a combined `actions.foo`.

Caveats: Since we don't know in advance how many tasks are in a group, the state will change back and forth.
For each task in a group, the state will transition from computing to complete (e.g. blue to green), then back to computing and so on.
The transition is fast enough not to be visibile.

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2022-02-04 10:03:14 -08:00
Andrea Luzzardi
025ce14ed3
Merge pull request #1526 from TomChv/fix/embed-sh-script
Embed shell script into universe
2022-01-28 15:22:26 -08:00
Vasek - Tom C
6f5095ec19
Fix permissions issue and doc generation issue
Signed-off-by: Vasek - Tom C <tom.chauveau@epitech.eu>
2022-01-28 23:17:52 +01:00
Joel Longtine
938444a084 Remove project + Project telemetry
Signed-off-by: Joel Longtine <joel@dagger.io>
2022-01-28 10:09:38 -07:00
Joel Longtine
b33d6b2243 Remove dependence on project, use cue.mod path.
Ensure that we have done an init in this folder.

Also, force a clean checkout of the tag we've chosen to upgrade to.

Signed-off-by: Joel Longtine <joel@dagger.io>
2022-01-27 16:54:42 -07:00
Andrea Luzzardi
2b30580217 Support for partially running a DAG
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2022-01-13 15:52:13 -08:00
Andrea Luzzardi
282759c0e5 cue modules: move stdlib to pkg/alpha.dagger.io
In preparation for Europa, we will vendor multiple CUE modules:

- `pkg/alpha.dagger.io`: legacy non-europa packages
- `pkg/dagger.io`: core Europa packages
- `pkg/universe.dagger.io`: Europa universe

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2022-01-11 13:16:37 -08:00
Richard Jones
b4bcbab311
passing struct to plan.Load
Signed-off-by: Richard Jones <richard@dagger.io>
2022-01-04 11:54:50 -07:00
Richard Jones
1d8834b9b1
implemented --with to fill inputs.params
Signed-off-by: Richard Jones <richard@dagger.io>
2022-01-04 10:23:21 -07:00
Sam Alba
f3caa342e8
Merge pull request #1279 from aluzzardi/europa-output
europa: up: support --output
2021-12-21 09:48:04 -08:00
Andrea Luzzardi
4feb2c7048 europa: up: support --output
Support `dagger up --output <file.json>` or `-` for stdout. This will
write the computed layer.

Can be used for tests, e.g.

```
run dagger up --output -
assert_output --partial foobar
```

Fixes #1220

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-12-21 15:17:51 +01:00
Tom Chauveau
b1188960df
Add universe check version in europa up
Signed-off-by: Vasek - Tom C <tom.chauveau@epitech.eu>
2021-12-16 16:06:50 +01:00
Richard Jones
5c9965f10a passings args to cue loader to mimick cue eval
Signed-off-by: Richard Jones <richard@dagger.io>
2021-12-08 15:28:33 -07:00