Commit Graph

2817 Commits

Author SHA1 Message Date
Thodoris Greasidis
87004621ce Support balena join to applications of compatible architectures
Resolves: #1431
Change-type: minor
Signed-off-by: Thodoris Greasidis <thodoris@balena.io>
2019-09-16 21:31:07 +03:00
Balena CI
de8089b0bb v11.10.0 2019-09-16 21:13:23 +03:00
Thodoris Greasidis
ae691391b6
Merge pull request #1434 from balena-io/1433-move-same-arch-apps
Support moving devices to applications of a compatible architecture
2019-09-16 21:11:02 +03:00
Thodoris Greasidis
a64b36fdb9 Support moving devices to applications of a compatible architecture
Connects-to: #1433
Change-type: minor
Signed-off-by: Thodoris Greasidis <thodoris@balena.io>
2019-09-16 19:16:51 +03:00
Balena CI
db5c473952 v11.9.7 2019-09-16 10:26:12 +03:00
Stevche Radevski
2b0bff8f16
Merge pull request #1430 from balena-io/add-scrutinizer-config
ci: add scrutinizer config
2019-09-16 09:24:45 +02:00
Stevche Radevski
2e7f606667 ci: add scrutinizer config
Change-type: patch
Signed-off-by: Stevche Radevski <stevche@balena.io>
2019-09-13 15:58:52 +02:00
Balena CI
73e9f801e2 v11.9.6 2019-09-12 15:27:34 +03:00
Paulo Castro
9a40f20004
Merge pull request #1425 from balena-io/1304-bump-balena-sdk
Update balena-sdk to v12 and mitigate MaxListenersExceededWarning
2019-09-12 13:25:51 +01:00
Paulo Castro
6631fb5a69 Mitigate "MaxListenersExceededWarning" by reusing Logger instance
The full warning output was:
(node:43572) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 drain listeners added. Use emitter.setMaxListeners() to increase limit
(node:43572) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners() to increase limit
(node:43572) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 close listeners added. Use emitter.setMaxListeners() to increase limit

Change-type: patch
Signed-off-by: Paulo Castro <paulo@balena.io>
2019-09-12 01:49:40 +01:00
Paulo Castro
f76ca1804a Update balena-sdk from 11.18.0 to 12.10.0 (pre-req for #1153 and #1304)
Change-type: patch
Signed-off-by: Paulo Castro <paulo@balena.io>
2019-09-11 16:08:30 +01:00
Balena CI
d25ad328f3 v11.9.5 2019-09-11 14:29:15 +03:00
Paulo Castro
dfbcdc2c1b
Merge pull request #1416 from balena-io/1415-warn-emulation
Detect Docker Desktop (Docker for Mac) and warn about architecture emulation
2019-09-11 12:27:30 +01:00
Paulo Castro
d484c957bb Detect Docker Desktop (Docker for Mac) and warn about architecture emulation
Change-type: patch
Signed-off-by: Paulo Castro <paulo@balena.io>
2019-09-11 12:05:07 +01:00
Balena CI
70714b6feb v11.9.4 2019-09-11 13:49:06 +03:00
Paulo Castro
c9db5fd856
Merge pull request #1423 from balena-io/1419-fix-pkg-target-node
Fix Node.js version errors in standalone package on Windows
2019-09-11 11:47:09 +01:00
Paulo Castro
d54a709e7c Fix mismatched Node.js version errors in standalone package on Windows
Resolves: #1419
Change-type: patch
Signed-off-by: Paulo Castro <paulo@balena.io>
2019-09-11 01:17:26 +01:00
Paulo Castro
09f20ecc1c Update etcher-sdk to v2.0.14 (pre-requisite to supporting Node 12)
Change-type: patch
Signed-off-by: Paulo Castro <paulo@balena.io>
2019-09-10 16:08:07 +01:00
Balena CI
b8b0221ce6 v11.9.3 2019-09-02 03:56:54 +03:00
Paulo Castro
596d1bdc21
Merge pull request #1410 from balena-io/oclif-mixpanel
Add missing oclif-based commands to mixpanel tracking
2019-09-02 01:55:02 +01:00
Paulo Castro
fb1dce9dbb Add missing oclif-based commands to mixpanel tracking
Change-type: patch
Signed-off-by: Paulo Castro <paulo@balena.io>
2019-09-01 23:42:21 +01:00
Balena CI
fedfb603f6 v11.9.2 2019-08-30 21:00:06 +03:00
Paulo Castro
8478b95e45
Merge pull request #1405 from balena-io/1359-update-release-descriptions
Deploy scripts: edit GitHub release descriptions given semver ranges
2019-08-30 18:57:33 +01:00
Paulo Castro
7bb2741a5a Deploy scripts: edit GitHub release descriptions given semver ranges
Change-type: patch
Signed-off-by: Paulo Castro <paulo@balena.io>
2019-08-30 18:09:58 +01:00
Balena CI
693a438d42 v11.9.1 2019-08-29 00:59:52 +03:00
xginn8
2a8e68cec2
Merge pull request #1412 from balena-io/log-tarring
logging: note that tarring is occurring
2019-08-28 23:57:14 +02:00
Matthew McGinn
e3435c66df logging: note that tarring is occurring
As noted in #1411, this tarring can be particularly expensive so cluing
in the user may help alleviate pain

Connects-to: #1411
Change-type: patch
Signed-off-by: Matthew McGinn <matthew@balena.io>
2019-08-28 20:37:50 +02:00
Resin CI
192b751e57 v11.9.0 2019-08-22 16:33:03 +03:00
Paulo Castro
d9643eb59e
Merge pull request #1403 from balena-io/1355-SecretRemovalError
Fix 'SecretRemovalError' and enable certain emulated builds on a remote device
2019-08-22 14:31:21 +01:00
Paulo Castro
19c3178062 Enable emulated builds on remote devices running a different OS as the CLI
E.g. "balena build -e -h <IP> -p 2375" with the CLI running on a Mac laptop,
using balenaEngine on an Intel NUC device, building an image for the RPi (ARM
image arch). Previously, QEMU setup by the CLI assumed that docker ran on the
same OS as the CLI (Docker for Mac has built-in binfmt_misc support and does
not require additional setup, but balenaEngine on Linux requires explicit QEMU
setup.)

Change-type: minor
Signed-off-by: Paulo Castro <paulo@balena.io>
2019-08-22 13:37:07 +01:00
Paulo Castro
516fa90a20 Fix SecretRemovalError (balena build) when docker daemon arch != target arch
Change-type: patch
Signed-off-by: Paulo Castro <paulo@balena.io>
2019-08-21 22:25:18 +01:00
Resin CI
56aabad8ad v11.8.3 2019-08-20 04:34:24 +03:00
Paulo Castro
4a80beac35
Merge pull request #1400 from balena-io/1397-fix-build-registry-secrets
Fix failing registry secrets authentication under certain conditions
2019-08-20 02:32:59 +01:00
Paulo Castro
cdedc58ec1 Fix failing registry secrets authentication under certain conditions
('balena build' and 'balena deploy')

Change-type: patch
Signed-off-by: Paulo Castro <paulo@balena.io>
2019-08-19 16:41:59 +01:00
Resin CI
ed084edc48 v11.8.2 2019-08-19 18:29:03 +03:00
xginn8
b435a0e7ac
Merge pull request #1392 from balena-io/ssh-formatting
balena-ssh: add info about remote vs local connections
2019-08-19 17:25:30 +02:00
Matthew McGinn
731db63e78 balena-ssh: add info about remote vs local connections
small formatting fixups

Closes: https://github.com/balena-io/docs/issues/974
Change-type: patch
Signed-off-by: Matthew McGinn <matthew@balena.io>
2019-08-19 16:14:26 +02:00
Resin CI
2ee2bc8b02 v11.8.1 2019-08-16 09:51:01 +03:00
Lucian Buzzo
b4c99dc03a
Merge pull request #1398 from balena-io/oclif-args
Fix incorrect arguments passed to oclif bootstrap function
2019-08-16 07:49:09 +01:00
Lucian
730c09989d Fix incorrect arguments passed to oclif bootstrap function
Adds tests for existing oclif commands to avoid regressions

Change-type: patch
Signed-off-by: Lucian <lucian.buzzo@gmail.com>
2019-08-15 18:26:42 +01:00
Resin CI
9e0733a143 v11.8.0 2019-08-13 11:40:19 +03:00
Lucian Buzzo
8dd1106a44
Merge pull request #1393 from balena-io/cli-tests
Implement full command testing, beginning with "balena version"
2019-08-13 09:38:32 +01:00
Lucian
4d389bb6cc Implement full command testing, beginning with "balena version"
This also modifies the core CLI to be fed command programatically, which
is useful for being able to do thing like mock endpoints with tools like
"nock", and provide an easier debugging experience.
The tests utilise a "runCommand" helper that intercepts and captures
stdout/stderr writes and returns them once the command has finished
running. At this point the test implementation can parse the
stdout/stderr logs and assess nock interceptions to determine if the
command ran correctly.
This change also homogenises debug messages to start with `[debug]`,
however this is not strictly enforced by linting rules.

Change-type: minor
Signed-off-by: Lucian <lucian.buzzo@gmail.com>
2019-08-12 14:50:41 +01:00
Resin CI
6d6b3cb1a3 v11.7.10 2019-08-12 16:38:49 +03:00
Lucian Buzzo
e84482fbbe
Merge pull request #1383 from balena-io/1380-env-rm
Improvements to the "env rm" command and oclif migration
2019-08-12 14:36:49 +01:00
Lucian
f1d9c29786 Fix bug where "env rm" fails silently if an additional arg is present
Fixes #1380

Argument parsing of "env rm" command was improved by migrating it to oclif

Change-type: patch
Signed-off-by: Lucian <lucian.buzzo@gmail.com>
2019-08-12 13:47:31 +01:00
Lucian
34f4c1f6cc Exit with a warning if "env rm" id value is not an integer
Change-type: patch
Signed-off-by: Lucian <lucian.buzzo@gmail.com>
2019-08-09 15:12:30 +01:00
Resin CI
2390ddc02d v11.7.9 2019-08-09 17:08:09 +03:00
Lucian Buzzo
70561705e5
Merge pull request #1387 from balena-io/tests-3
Tests part 3: Convert tests to Typescript
2019-08-09 15:06:35 +01:00
Lucian
05d58d8248 Fix CI instability when building Typescript
The error appears to happen when symlinking typing files and manifests
on case sensitive file systems (like windows) with the error:
```
lib/actions-oclif/env/add.ts(73,16): error TS2742: The inferred type of 'flags' cannot be named without a reference to '../../../../../../../../../volumes/live/c64feead-f78e-4bd4-742d-ccd29aef53c4/volume/node_modules/@oclif/parser/lib/flags'. This is likely not portable. A type annotation is necessary.
lib/actions-oclif/version.ts(42,16): error TS2742: The inferred type of 'flags' cannot be named without a reference to '../../../../../../../../volumes/live/c64feead-f78e-4bd4-742d-ccd29aef53c4/volume/node_modules/@oclif/parser/lib/flags.js'. This is likely not portable. A type annotation is necessary.
```

This appears to be reported on the Typescript repo here https://github.com/microsoft/TypeScript/issues/29221
The suggested workaround is to explicitly set the type of the `flags` static
property.

Change-type: patch
Signed-off-by: Lucian <lucian.buzzo@gmail.com>
2019-08-09 12:01:46 +01:00