Commit Graph

1799 Commits

Author SHA1 Message Date
itowlson c4fbd08eb7
Merge pull request #1492 from cardoso/feat/more_build_info
feat(plugins): provide additional build info to plugins
2023-05-18 08:07:50 +12:00
Brian bb84aa4d31
Merge pull request #1508 from fibonacci1729/bump-versions
bump versions for v1.2.0
2023-05-17 15:45:23 -04:00
Brian H 6b869d32e6
bump versions for v1.2.0
Signed-off-by: Brian H <brian.hardock@fermyon.com>
2023-05-17 13:47:34 -04:00
Lann dda80ff266
Merge pull request #1506 from lann/fix-build-up-flag
build: Fix --up long flag name
2023-05-17 12:50:37 -04:00
Lann b048c0902f
Merge pull request #1480 from lann/inert-app
app: Add "inert" App feature
2023-05-17 12:44:50 -04:00
Lann Martin 58ef1fa843
build: Fix --up long flag name
This was accidentally broken in an unrelated commit.

Signed-off-by: Lann Martin <lann.martin@fermyon.com>
2023-05-17 12:43:25 -04:00
Lann 2bdc2c53f9
Merge pull request #1435 from lann/spin-doctor
`spin doctor` prototype
2023-05-17 09:25:52 -04:00
Ryan Levick aecbb29428
Merge pull request #1488 from fermyon/improve-file-mounting
Allow direct mounting directory 'pattern' (plus improve errors)
2023-05-17 14:30:16 +02:00
Ryan Levick f59f769a95
Merge pull request #1496 from fermyon/remove-unhelpful-error
Remove unhelpful error when preparing spin configuration
2023-05-17 14:29:54 +02:00
Matheus Cardoso 22a83fa853
feat(plugins): provide additional build info
Signed-off-by: Matheus Cardoso <matheus@cardo.so>
2023-05-17 01:48:53 -03:00
Rajat Jindal d8bb688d6f
Merge pull request #1461 from rajatjindal/cleanup-state
cleanup statedir before test
2023-05-17 10:12:39 +05:30
Ryan Levick bd19c92b6c
Remove unhelpful error when preparing spin configuration
Signed-off-by: Ryan Levick <ryan.levick@fermyon.com>
2023-05-16 10:50:12 +02:00
Ryan Levick d9394efa48
Address PR feedback
Signed-off-by: Ryan Levick <ryan.levick@fermyon.com>
2023-05-16 10:11:54 +02:00
Rajat Jindal ae5575a2a2
use tempdir as state dir by default
Signed-off-by: Rajat Jindal <rajatjindal83@gmail.com>
2023-05-16 12:34:33 +05:30
itowlson 9aa23cf51d
Merge pull request #1484 from cardoso/feat/plugin_description
feat(plugins): show description and homepage of installed plugin
2023-05-16 15:21:13 +12:00
Radu Matei 2e0e380d86
Merge pull request #1483 from radu-matei/feat/sdk/rust-serialize 2023-05-15 23:15:46 +02:00
Lann Martin 5cbe8d6413
doctor: Support directory or file for -f
Signed-off-by: Lann Martin <lann.martin@fermyon.com>
2023-05-15 16:03:42 -04:00
Lann Martin c28707ef16
doctor: Fix some emoji width display issues
Signed-off-by: Lann Martin <lann.martin@fermyon.com>
2023-05-15 15:58:37 -04:00
Lann Martin a9063f6765
Split `Treatment::description` into `summary` and `dry_run`
The former is a short description to be displayed as a choice while the
latter is a longer e.g. diff of what the treatment will do.

Signed-off-by: Lann Martin <lann.martin@fermyon.com>
2023-05-15 15:58:35 -04:00
Lann Martin f2d661e8ff
Replace Diagnose trait with Diagnostic trait
This changes the way diagnoses are "registered" with a Checkup; rather
than storing function pointers it now stores trait objects.

Signed-off-by: Lann Martin <lann.martin@fermyon.com>
2023-05-15 15:52:58 -04:00
Lann Martin a41a95df3b
doctor: Fix VersionDiagnosis returning multiple diagnoses
While "old version key" and "wrong value" are logically different
issues, from a UX perspective it seems better to let the "more critical"
"wrong value" issue take precedence.

Signed-off-by: Lann Martin <lann.martin@fermyon.com>
2023-05-15 15:52:57 -04:00
Lann Martin e377f41817
Add 'spin doctor' subcommand
Signed-off-by: Lann Martin <lann.martin@fermyon.com>
2023-05-15 15:52:54 -04:00
Matheus Cardoso 9244b78980
fix: build & improve readability
Signed-off-by: Matheus Cardoso <matheus@cardo.so>
2023-05-15 08:16:00 -03:00
Matheus Cardoso 73934330b2
Update crates/plugins/src/manifest.rs
Signed-off-by: Matheus Cardoso <matheus@cardo.so>
2023-05-15 07:08:57 -03:00
Matheus Cardoso a6a7c15611
Update crates/plugins/src/manifest.rs
Co-authored-by: Ryan Levick <me@ryanlevick.com>
Signed-off-by: Matheus Cardoso <matheus@cardo.so>
2023-05-15 07:06:08 -03:00
Radu Matei a3f9a67612
feat(sdk/rust): add optional feature for serde
This commit updates the Rust SDK to include two new functions that
integrates key/value with serde. Specifically:

- `set_json`: this function takes a key and a struct that can be
  serialized by serde into JSON, and that representation is added to the
  store
- `get_json`: this function takes a key, reads the key/value pair from
  the store, then deserializes it into the specified type

Considering that storing serialized state in Spin's key/value store is
one of the popular use cases for the API, these convenience functions
should simplify that operation.

This functionality is added as an optional feature in the SDK, so it
doesn't add to the binary size of the resulting component unless needed.

Signed-off-by: Radu Matei <radu.matei@fermyon.com>
2023-05-15 11:46:38 +02:00
Ryan Levick 8e39b544ba
Allow direct mounting directory 'pattern' (plus improve errors)
Signed-off-by: Ryan Levick <ryan.levick@fermyon.com>
2023-05-15 11:05:55 +02:00
itowlson e687d10924
Merge pull request #1482 from qtfkwk/patch-1
Update README.md
2023-05-15 09:08:09 +12:00
Matheus Cardoso e3f31ee36f
feat(plugins): show description and homepage of installed plugin
Signed-off-by: Matheus Cardoso <matheus@cardo.so>
2023-05-13 19:19:59 -03:00
qtfkwk 94830e10a2
Update README.md
Fix typo

Signed-off-by: qtfkwk <qtfkwk@users.noreply.github.com>
2023-05-12 12:21:10 -04:00
Mikkel Mork Hegnhoj 768d128c15
Merge pull request #1474 from mikkelhegn/accept-defaults-short
Add 'a' as short argumet for --accept-defaults
2023-05-12 16:16:00 +02:00
Lann Martin 13ce9e1a77
app: Add "inert" App feature
Adds an App::inert function which can return an App without an
associated Loader. This is useful for accessing LockedApp metadata in contexts
where a Loader is unavailable.

Signed-off-by: Lann Martin <lann.martin@fermyon.com>
2023-05-12 10:06:12 -04:00
Adam Reese e2c788ffde
Merge pull request #1470 from adamreese/ref/spin-build-testing
ref(sdk/go): use `spin build` for building test fixtures
2023-05-11 20:23:38 -07:00
Joel Dice 671fc6878a
remove WASI files from wit/preview2 (#1476)
I had added these in the PR that added component support to Spin, but
they're not actually being used, and they're somewhat misleading
anyway since we're really using the ones in the `adapter` submodule of
`spin-componentize`.

Signed-off-by: Joel Dice <joel.dice@fermyon.com>
2023-05-11 21:10:32 -06:00
itowlson a5cd9d08a0
Merge pull request #1467 from itowlson/from-dir-everywhere
Rationalise `-f` and accept directory everywhere
2023-05-12 10:28:16 +12:00
Adam Reese 26726e1eff
Increase testing timeouts
Signed-off-by: Adam Reese <adam@reese.io>
2023-05-11 13:58:34 -07:00
Ryan Levick 2e2a40a42d
Merge pull request #1475 from fermyon/track-memory
Track memory and expose from Store Data
2023-05-11 22:47:55 +02:00
Ryan Levick 2e5a86c1aa
Track memory and expose from Store Data
Signed-off-by: Ryan Levick <ryan.levick@fermyon.com>
2023-05-11 21:46:17 +02:00
Adam Reese 7082744313
ref(sdk/go): use `spin build` for building test fixtures
This commit changes test fixtures to be built using `spin build` rather
than using TinyGo directly.

Signed-off-by: Adam Reese <adam@reese.io>
2023-05-11 08:44:43 -07:00
Joel Dice 0ed8643a17
ensure deterministic component iteration order (#1472)
This regressed due to changes I made to `TriggerAppEngine::new` to
support components.  I used a `HashMap` without realizing the
iteration order of triggers (and their configs) matters.

Fixes #1469

Signed-off-by: Joel Dice <joel.dice@fermyon.com>
2023-05-11 07:58:11 -06:00
Mikkel Mørk Hegnhøj 3268e5fe03
Add 'a' as short argumet for --accept-defaults
Signed-off-by: Mikkel Mørk Hegnhøj <mikkel@fermyon.com>
2023-05-11 10:01:07 +02:00
itowlson 608b5f4b11
Merge pull request #1471 from itowlson/farewell-autobindle-you-served-us-well-but-your-age-has-passed
Remove autobindle from recommended VS Code extensions
2023-05-11 09:41:10 +12:00
itowlson 8be5db2b93
Merge pull request #1459 from itowlson/test-spin-up-kv
Exercise `spin up --key-value` in tests
2023-05-11 08:22:44 +12:00
itowlson 34e310c714
Remove autobindle from recommended VS Code extensions
Signed-off-by: itowlson <ivan.towlson@fermyon.com>
2023-05-11 08:19:34 +12:00
itowlson 14227fb03b
Rationalise -f and accept directory everywhere
Signed-off-by: itowlson <ivan.towlson@fermyon.com>
2023-05-11 08:15:33 +12:00
Lann ae105d6a09
Merge pull request #1464 from lann/core-component-bindgen
core: Update docs and tests to use wasmtime::component::bindgen
2023-05-10 07:55:03 -04:00
Karthik Ganeshram 6a33894666
Merge pull request #1468 from karthik2804/ux/oci_spinner
add loading spinner to registry push/pull
2023-05-09 20:36:27 -07:00
karthik2804 3616992c5b
add loading spinner to registry push/pull
Signed-off-by: karthik2804 <karthik.ganeshram@fermyon.com>
2023-05-09 19:26:14 -07:00
Lann 54543d0a2b
Merge pull request #1455 from lann/host-component-validate-app
Add `DynamicHostComponent::validate_app`
2023-05-09 19:43:03 -04:00
Lann 858d378d41
Merge pull request #1466 from lann/move-more-config-spin-http
http: Move more config structures to spin-http crate
2023-05-09 19:42:15 -04:00