Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update documentation from JS comments #1381

Merged
merged 29 commits into from
Oct 7, 2020
Merged

Update documentation from JS comments #1381

merged 29 commits into from
Oct 7, 2020

Conversation

momuno
Copy link
Contributor

@momuno momuno commented Sep 30, 2020

No description provided.

@momuno momuno added Docs Client This issue points to a problem in the data-plane of the library. IoT labels Sep 30, 2020
@momuno momuno added this to the [2020] October milestone Sep 30, 2020
@momuno momuno self-assigned this Sep 30, 2020
sdk/docs/iot/README.md Outdated Show resolved Hide resolved
}
```

### IoT Hub Client with MQTT Stack
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm going to push back on this one. Why is this being removed? I think John's original comment is that the readme is a little long but that was attempted to be solved with the table of contents.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For two reasons, 1, John's comment about the readme being too long, and 2, because this code is accomplished in the samples. I see it attempting to be MQTT stack agnostic here, but I actually found that to be more confusing since the mqtt function calls appeared to be hypothetical? I would prefer to direct the user to the samples at this point.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have added a coding_patterns.md file that now houses this.

sdk/docs/iot/README.md Outdated Show resolved Hide resolved
sdk/docs/iot/README.md Outdated Show resolved Hide resolved
sdk/docs/iot/README.md Outdated Show resolved Hide resolved
@ahsonkhan
Copy link
Member

ahsonkhan commented Sep 30, 2020

Update documentation from JS comments

What comments are you referring to? Are those from another PR (and if so can you share a link for context)?

JS - JavaScript?

Edit: Oh, JS - John Spaith?

@momuno
Copy link
Contributor Author

momuno commented Sep 30, 2020

Update documentation from JS comments

What comments are you referring to? Are those from another PR (and if so can you share a link for context)?

JS - JavaScript?

Edit: Oh, JS - John Spaith?

Yes, John Spaith lol. I was trying not to yell his name across the PR page, so attempted a more discreet approach.
Also, his notes are feedback in an email thread.

sdk/docs/iot/pseudo_code_examples.md Outdated Show resolved Hide resolved
sdk/docs/iot/pseudo_code_examples.md Outdated Show resolved Hide resolved
sdk/samples/iot/README.md Show resolved Hide resolved
sdk/docs/iot/README.md Outdated Show resolved Hide resolved
sdk/docs/iot/README.md Outdated Show resolved Hide resolved
sdk/docs/iot/README.md Outdated Show resolved Hide resolved
@momuno momuno marked this pull request as draft October 1, 2020 17:44
sdk/docs/iot/README.md Outdated Show resolved Hide resolved
sdk/samples/iot/README.md Show resolved Hide resolved
sdk/samples/iot/docs/how_to_iot_hub_samples_linux.md Outdated Show resolved Hide resolved
@momuno momuno closed this Oct 7, 2020
@momuno
Copy link
Contributor Author

momuno commented Oct 7, 2020

Creating a new PR to get tests to pass (they are stuck in fail but should be passing now)
See #1415

@momuno momuno reopened this Oct 7, 2020
@momuno momuno closed this Oct 7, 2020
@momuno momuno reopened this Oct 7, 2020
@momuno
Copy link
Contributor Author

momuno commented Oct 7, 2020

Checks failing again. Closing this and re-opening other PR #1415 so checks pass.

@momuno momuno closed this Oct 7, 2020
@momuno momuno reopened this Oct 7, 2020
@momuno momuno requested review from danieljurek and a team as code owners October 7, 2020 05:36
@@ -31,6 +31,7 @@ steps:
| "$(VcpkgCommit)"
| $(Agent.Os)
| $(${{ parameters.DependenciesVariableName }})
| $(VCPKG_DEFAULT_TRIPLET)
Copy link
Member

@ahsonkhan ahsonkhan Oct 7, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@weshaggard, @danieljurek - We are adding the triplet name to the restore key of the cache to make it more unique and force a cache miss.

This was causing issues because we temporarily changed the triplet value to solve a different issue (and reverted it back), but since it is still within the 7 day window, the cache had the incorrect packages stored corresponding to the wrong triplet (x86-windows-static-md instead of x86-windows-static).

For context:

https://docs.microsoft.com/en-us/azure/devops/pipelines/release/caching?view=azure-devops#can-i-clear-a-cache

Clearing a cache is currently not supported. However you can add a string literal (e.g. version2) to your existing cache key to change the key in a way that avoids any hits on existing caches.

See this Windows leg, which now has a cache miss since we now include the triplet name as part of the key:
https://dev.azure.com/azure-sdk/public/_build/results?buildId=566055&view=logs&j=1822ef0b-3ac4-586f-233b-6fdf166a140f&t=47e4b218-8f82-5039-fb29-8b3a261ff980

Resolved to: Validate WindowsX86_Release_MapFiles_UnitTests|"tags/2020.06"|Windows_NT|cmocka|x86-windows-static
ApplicationInsightsTelemetrySender will correlate events with X-TFS-Session b3cd6573-8ace-44b3-8bb2-82ce64481824
Getting a pipeline cache artifact with one of the following fingerprints:
Fingerprint: Validate WindowsX86_Release_MapFiles_UnitTests|"tags/2020.06"|Windows_NT|cmocka|x86-windows-static
There is a cache miss.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI, @vhvb1989, @antkmsft, @RickWinter, if this issue comes up again.

Once we have a new release of Vcpkg, we can leverage their own binary caching feature which might be less error-prone and flexible, moving forward: microsoft/vcpkg#11204

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ahsonkhan please comment the vcpkg.yml file with these details. Years from now it will be helpful to know why that triplet is there and I doubt anyone will remember this issue

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@RickWinter 2 months later, I remembered ahahaha.. Happened again here: Azure/azure-sdk-for-cpp#1042

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please comment the vcpkg.yml file with these details.

#1534

Copy link
Member

@ahsonkhan ahsonkhan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some nits and small suggestions. Looks good otherwise.

sdk/docs/iot/README.md Show resolved Hide resolved
sdk/docs/iot/coding_patterns.md Outdated Show resolved Hide resolved
sdk/samples/iot/README.md Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Client This issue points to a problem in the data-plane of the library. Docs IoT
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants