question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`runner --cloud-metadata` parsing

See original GitHub issue

From discord#cml/996742882058838057

  • doesn’t work: cml runner ... --cloud-metadata "Work Area=TeamName"
  • doesn’t work: cml runner ... --cloud-metadata '"Work Area"="TeamName"'
  • works: cml runner ... --cloud-metadata '"Work Area"=TeamName'

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
dacbdcommented, Jul 26, 2022

Wrote test for these, fix it master via the linked above.

My caveat of the tag parsing may change behavior for users who fangaled the quote/whitespace issues, the example:

cml runner \
  --cloud=aws \
  --cloud-region=x \
  --cloud-metadata="condition one=KeyHasASpace" \
  --cloud-metadata='"condition two"="KeyAndValueAreWrappedWithQuotes"' \
  --cloud-metadata='"condition three"=KeyIsWrappedValueIsNot' \
  --cloud-type=t3.small

results with tags like:

[
  {
    "Key": "\"condition three\"",
    "Value": "KeyIsWrappedValueIsNot"
  },
  {
    "Key": "Id",
    "Value": "iterative-17crj0i6rv6to"
  },
  {
    "Key": "Name",
    "Value": "cml-n467pqly04"
  },
  {
    "Key": "condition one",
    "Value": "KeyHasASpace"
  },
  {
    "Key": "condition two\"",
    "Value": "\"KeyAndValueAreWrappedWithQuotes"
  }
]

@iterative/cml We should warn the discord user before the next release.

1reaction
dacbdcommented, Aug 5, 2022

It fixed the original where their workflows stopped working probably after some deps bump. So yes I agree this did break the workarounds which Is why I wanted to make sure we notified the user on discord.

To keep the correct parsing as well as the workaround parsing; I believe this would require upstream changes to yargs parsing so I don’t believe it is feasible to support both.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Use Aiven's metadata parser to understand how your data flows
Keep your data assets under control with Aiven's metadata parser. Data's journey in modern companies is usually long, with several steps across ...
Read more >
Cloud Code Guide - Parse Docs
Cloud Code is easy to use because it's built on the same Parse JavaScript SDK that powers thousands of apps. The only difference...
Read more >
Metadata import fails with parsing error · Issue #5968 - GitHub
I'm trying to track a particular table, export the metadata, then have it apply automatically on startup of the cli image. Below is...
Read more >
Debugging cloud-init - cloud-init 22.4.2 documentation
The script /usr/bin/cloud-init has an analyze sub-command analyze which parses any cloud-init.log file into formatted and sorted events.
Read more >
Accessing Instance Metadata - App Engine - Google Cloud
Identifying which metadata endpoint to use; Making metadata requests; Running locally. Google Cloud Platform provides a metadata server that knows details ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found