Unable to export when using gzip compression with OTLP/HTTP and OTLP/PROTO trace exporters

Please answer these questions before submitting a bug report.
What version of OpenTelemetry are you using?
"@opentelemetry/api": "^1.0.4",
"@opentelemetry/auto-instrumentations-node": "^0.27.4",
"@opentelemetry/exporter-trace-otlp-proto": "^0.27.0",
"@opentelemetry/resources": "^1.0.1",
"@opentelemetry/sdk-node": "^0.27.0",
"@opentelemetry/semantic-conventions": "^1.0.1",
"@opentelemetry/exporter-trace-otlp-http": "^0.27.0",

What version of Node are you using?
v16.14.0
Please provide the code you used to setup the OpenTelemetry SDK
"use strict";

const { v4: uuidv4 } = require("uuid");
const process = require("process");
const opentelemetry = require("@opentelemetry/sdk-node");
const { getNodeAutoInstrumentations } = require("@opentelemetry/auto-instrumentations-node");
const { Resource } = require("@opentelemetry/resources");
const { SemanticResourceAttributes } = require("@opentelemetry/semantic-conventions");
const { OTLPTraceExporter } = require("@opentelemetry/exporter-trace-otlp-proto");
const api = require("@opentelemetry/api");
const { CompressionAlgorithm } = require('@opentelemetry/exporter-trace-otlp-http')

api.diag.setLogger(
  new api.DiagConsoleLogger(),
  api.DiagLogLevel.DEBUG,
);

const resource = new Resource({
  [SemanticResourceAttributes.SERVICE_NAME]: "OpenTelemetry-Node.JS-Example",
  [SemanticResourceAttributes.SERVICE_INSTANCE_ID]: uuidv4(),
});

const instrumentations = [getNodeAutoInstrumentations()];

const traceExporter = new OTLPTraceExporter({
  compression: CompressionAlgorithm.GZIP,
  url: 'http://localhost:4318/v1/traces'
});

const sdk = new opentelemetry.NodeSDK({
  resource,
  traceExporter,
  instrumentations,
});

sdk
  .start()
  .then(() => console.log("Tracing initialized"))
  .catch((error) => console.log("Error initializing tracing", error));

process.on("SIGTERM", () => {
  sdk
    .shutdown()
    .then(() => console.log("Tracing terminated"))
    .catch((error) => console.log("Error terminating tracing", error))
    .finally(() => process.exit(0));
});

What did you do?
If possible, provide a recipe for reproducing the error.
Can use this example to reproduce the error: https://github.com/newrelic/newrelic-opentelemetry-examples/tree/main/javascript/simple-nodejs-app-http-exp
Just update the endpoint to export to a local collector and add gzip compression to exporter (like shown above).
What did you expect to see?
statusCode: 200
What did you see instead?
Got this error code: stack":"Error: Timeout\n    at Timeout._onTimeout......
Additional context
Add any other context about the problem here.

Shouldn't we set the correct length after compression instead ?

Shouldn't we set the correct length after compression instead ?

this would require to first gzip everything in memory as HTTP headers have to be sent first instead of streaming the data.


Review version 0.1.0

Before starting development of version 0.2.0, get a review from the staff.

Comments received from Dmitry :

one-liners are difficult to read, I know it's ObjectScript feature, but we should avoid it
For  Set key = $Order(list(key), 1, value) Quit:key=""  Write !,$Justify(key,3),") ",$Piece(value, ",", 2)

--> Done (will be push in version 0.2.0)

I had system in production, which produces 400+ journal files daily, show all journal files, I would limit the output, and probably added pagination.

--> Done (will be push in version 0.2.0)

Add filter system to index less (like ^JRNFILT)

--> Ok the task Filter entries to index has been created.

Add "Pause\Resume\Stop" feature during index process.

--> Ok the task Pause - Resume - Stop Features has been created.


AddFile return error

Hi
I'm trying to add a document to pipdrive but I have the following error: operation aborted by callback and i don't undestrand the error
My code
  $pipeDrive = $this->client;
 $files = $pipDrive->getFiles();
$collect['file'] = $pathfile ;  // public/uploads/filename.pdf =>
$collect['personalId'] = 1;
$files->addFile($collect);

Thank's for help

I am also struggling with this.
Can you provide a code example of addFile where we start off with a path to a file and it is then multipart/form-data encoded please?


Make typing stricter and increase readability

As I examined this file in order to implement multiple EntityMatch objects for my own use case I discovered I wasn't getting very helpful type inference and I also didn't know immediately what  (prevMatch === null || getMode(prevSibling) !== 0) wad doing.
I feel like this will make the file more readable for developers. Let me know if I should be directly importing the constant from somewhere instead of doing !== 'normal'. Also I'm not super familiar with the repo so not sure if this will break / fail some tests.

Alternately, we could just import IS_NORMAL from the constants file and just compare the number to that?

Sorry, I'm really busy with an upcoming deadline for work. I will return to this and shape the MR up in the next few days.


[#40] Project can now be compiled against iRODS 4.2.11 and 4.2.12 (4-2-stable)

Original work and conversation that lead to this PR can be found at #41.

I've verified that this PR compiles for 4.2.11 and 4.2.12 on Ubuntu 18 and CentOS 7.
CentOS 7 required compiling flex 2.6.1, but that was trivial. I also have the packages on my machine so we can send/host them.

very nice.

All that's left is deciding how to deal with the iRODS CMake module version.
find_package(IRODS <what-version-should-this-use> REQUIRED CONFIG)

So, the iRODS find_package() module is looking like it doesn't support setting a minimum version.
root@bc878d58169f:/_build# cmake -GNinja ../irods_api_plugin_genquery2/
CMake Error at CMakeLists.txt:3 (find_package):
  Could not find a configuration file for package "IRODS" that is compatible
  with requested version "4.2.11".

  The following configuration files were considered but not accepted:

    /usr/lib/irods/cmake/IRODSConfig.cmake, version: 4.2.12

-- Configuring incomplete, errors occurred!

For now, I can either ...

Remove the version number completely
Or, check the version using the IRODS_VERSION cmake variables (as described by @SwooshyCueb)

Are there other solutions to this problem?

Done!


Prefix scan didn't work well when enabling the cluster mode

Search before asking

[X] I had searched in the issues and found no similar issues.

Version
centos 7.9
Kvrocks was running with two cluster nodes and slot distributions are 0-8191 and 8192-16383
(kvrocks 2.6.0 内含两个节点的集群，slot分别为0-8191、8192-16383)
Minimal reproduce step

What did you expect to see?
return keys should start with f character.
返回以f开头的key
What did you see instead?

Anything Else?
1.触发场景可能与大量的key被删除有关，因为当时的场景就是删除大量的key
2.依稀记得当时执行scan的时候，在程序里面超时了；然后我手动在redis-cli里面执行，响应速度也很慢
Are you willing to submit a PR?

[ ] I'm willing to submit a PR!

@EasyProgramming could you provide a complete list of commands execute after a FLUSHDB so that we can reproduce locally?

@EasyProgramming It's a limitation in the scan command when enabling the cluster mode. It'll only look forward N(50) slots when scanning keys, for example:
If we have keys: aaaa(slot 0), bbbb(slot 10), cccc(slot 100), dddd(slot 200) and we scan with:
SCAN "0" MATCH "bb*"

it works well since bbbb is located at slot 10, and Kvrocks try to look forward next 50 slots. But if you scan with cc*:
SCAN "0" MATCH "cc*"

it will return empty array with cursor(_bbbb) since cccc is located at slot 100.
For the implementation, please refer: https://github.com/apache/kvrocks/blob/unstable/src/storage/redis_db.cc#L365
Of course, for this limitation will make the scan command very hard to use. We will try our best to improve this if possible. cc @tisonkun

@git-hulk 我这边使用Java的lettuce连接的kvrocks，看了lettuce对scan、hscan、sscan的实现方式，lettuce是以游标返回的返回字符0来判断是否扫描完成的，所以想问一下，kvrocks这块关于scan、hscan、sscan扫描完成的标志为是否也是字符0呢，这样的话，对于我这边的程序来讲还是可以接受的

Could we make HASH_SLOTS_MAX_ITERATIONS a configurable constant?

Yes, but this cannot resolve this problem unless they set it to MAX_HASH_SLOTS.

@git-hulk 我这边使用Java的lettuce连接的kvrocks，看了lettuce对scan、hscan、sscan的实现方式，lettuce是以游标返回的是否为字符0来判断是否扫描完成的，所以想问一下，kvrocks这块关于scan、hscan、sscan扫描完成的标志为是否也是字符0呢，这样的话，对于我这边的程序来讲还是可以接受的

Yes, you can continue iterating if the cursor is NOT "0".

Yes, but this cannot resolve this problem unless they set it to MAX_HASH_SLOTS.

But it is the only workaround I can come up with now, for both being compatible with currently behavior and solving the issue by manually setting the option.

The user can work around this by continuing the scan if the cursor is not "0", it will start with the new slot id instead of 0.


redirect deleteArticleAction

1. Why is this change necessary?
the links for deleteArticle and addAccessories,  stays in browser. If the user submits this address again, there will be an error.
2. What does this change do, exactly?
change forward to redirect
3. Describe each step to reproduce the issue or behaviour.

add an product to basket
switch to basket
remove article
see address in browser

4. Please link to the relevant issues (if any).
5. Which documentation changes (if any) need to be made because of this PR?
6. Checklist

[ ] I have written tests and verified that they fail without my change
[x] I have squashed any insignificant commits
[ ] This change has comments for package types, values, functions, and non-obvious lines of code
[x] I have read the contribution requirements and fulfil them.

Hello,
thank you for creating this pull request.
I have opened an issue on our Issue Tracker for you. See the issue link: https://issues.shopware.com/issues/SW-22135
Please use this issue to track the state of your pull request.

Hi @tinect, thank you for your contribution! 💙
Since this change is a slight break with backward compatibility, we decided to merge it in the Shopware 5.6 branch.


json-ld cached doc loader

json-gold does have the caching document loader implemented (RFC7324)
It is enabled by passing the caching loader into the ldProcessor options
Added it as the default option here.
Json-ld context can be loaded as a json-ld document (type map[string]interface{}) using the loadDocument function test example
or further converting it into a json-gold.Context object test example
A helper function "GetContextFromMap" was added.

@decentralgabe
Thanks a lot for the review.
Updated the nit.
I don't have the permission to merge as a first time contributors to this project though.
Will leave that to you.

Thanks @singyiu appreciate it!


Cron Expression has problems,Anyone can fix it?

I set the job execute at 1:00 AM  every day ,and it started at 1;00AM but executed 10 times interval 1 minute

For example , the cron expression is " 0 0 1 * * ? ",but admin page create is "* 1 * * *",I think admin page create is error


[🐞] Cross-site form submission incorrect origin match error

Which component is affected?
Qwik Runtime/city
Describe the bug
On my local dev environment (eg: https://beta.mysite.loc/) when I submit a form using action$ I get error "Cross-site POST form submissions are forbidden". If I console log request.headers.get('origin') and url.origin within the securityMiddleware function https://github.com/BuilderIO/qwik/blob/v0.17.2/packages/qwik-city/middleware/request-handler/resolve-request-handlers.ts#L274...
request.headers.get('origin') returns the correct https url https://beta.mysite.loc and
url.origin returns incorrect http url http://beta.mysite.loc
Example component
import { component$ } from<EMAIL_ADDRESS>import { action$ } from<EMAIL_ADDRESS>
export const signinAction = action$(async () => {
  console.log('this is never called!');
});

export default component$(() => {
  const signIn = signinAction.use();

  return (
    <>
      <form
        action={signIn.actionPath}
        method="POST"
      >

          Email
          <input
            name="email"
            type="text"
          />

          Password
          <input
            name="password"
            type="password"
          />

        <button>Login</button>
      </form>
    </>
  );
});

Reproduction
I dont think you can replicate on stackblitz but here is a link anyways https://stackblitz.com/edit/qwik-starter-uyvonq?file=src%2Froutes%2Findex.tsx
Steps to reproduce
No response
System Info
 System:
    OS: Windows 10 10.0.19045
    CPU: (20) x64 12th Gen Intel(R) Core(TM) i9-12900HK
    Memory: 12.93 GB / 31.68 GB
  Binaries:
    Node: 18.12.1 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.19 - C:\Program Files\nodejs\yarn.CMD
    npm: 8.19.2 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Spartan (44.19041.1266.0), Chromium (109.0.1518.69)
    Internet Explorer: 11.0.19041.1566
  npmPackages:
    @builder.io/partytown: ^0.7.5 => 0.7.5
    @builder.io/qwik: 0.17.2 => 0.17.2
    @builder.io/qwik-city: 0.1.0-beta11 => 0.1.0-beta11
    vite: 4.0.4 => 4.0.4

Additional Information
No response

I think this might be the same issue for me - the url provided by my onGet gives me http when i'm running the website in https.

I need some details, does this happen in express?

how are you achieving the https connection? do you have a proxy in the middle? there are important details missing here

export function getUrl(req: IncomingMessage) {
  const protocol =
    (req.socket as any).encrypted || (req.connection as any).encrypted ? 'https' : 'http';
  return new URL(req.url || '/', `${protocol}://${req.headers.host}`);
}

Hmm i see, that should work! I wonder if GCPs load balancers are giving me the protocol in http, as they're managing my encryption. I'll need to upload a few tests in an hour or 2.
(Hope i havent hijacked the original issue)
Im using a vanilla node server, and the only middleware i have is compression and helmet

Working on a fix!

https://github.com/BuilderIO/qwik/pull/2807

That was fast!! Thanks @manucorporat!

@manucorporat Your merge didn't fix my original issue.
I can make yarn preview work by setting https in vite.config.ts
export default defineConfig(() => {
  return {
    plugins: [qwikCity(), qwikVite(), tsconfigPaths()],
    preview: {
      headers: {
        'Cache-Control': 'public, max-age=600',
      },
      port: 5173,
      https: {
        key: fs.readFileSync('C:/_work/server/ssl/mysite.key'),
        cert: fs.readFileSync('C:/_work/server/ssl/mysite.crt'),
      },
    },
  };
});

I can make express work by using https in entry.express.tsx
https.createServer({
  key: fs.readFileSync('C:/_work/server/ssl/mysite.key'),
  cert: fs.readFileSync('C:/_work/server/ssl/mysite.crt'),
}, app).listen(PORT, () => {
  console.log(`express server: http://localhost:${PORT}/`);
});

but i cant get yarn dev to work. I tried this in vite.config.ts
export default defineConfig(() => {
  return {
    server: {
      port: 5173,
      https: {
        key: fs.readFileSync('C:/_work/server/ssl/mysite.key'),
        cert: fs.readFileSync('C:/_work/server/ssl/mysite.crt'),
      },
    },
    plugins: [qwikCity(), qwikVite(), tsconfigPaths()],
  };
});

Do you want me to open a new issue?

@manucorporat I believe I found the culprit.
https://github.com/BuilderIO/qwik/blob/main/packages/qwik-city/buildtime/vite/dev-server.ts#L217
https://github.com/BuilderIO/qwik/blob/main/packages/qwik-city/buildtime/vite/dev-server.ts#L52
"http://" is hard coded in the base url. If I remove base url http://${req.headers.host}, it works as I expect it too. I'm not if there are any other negative effects from removing it.

@tuurbo I sent PR #2864 to solve remaining issue.

fixed as of https://github.com/BuilderIO/qwik/pull/2864


How to create a new plugin

Hi all,
can someone help me to understand how to create a new plugin if someone wants to create a new kind of analysis based on the VEX representation?
Thanks

The following is independent of what you want your plugin to do. Feel free to follow up with VEX specific questions, or open a new issue (probably better).
Plugins essentially let you make class variables and functions available to a simuvex state object in a customizable and usually persistent way.
All plugins must subclass SimStatePlugin and implement copy(), merge(), and widen().
Your plugin file should be located in the plugins folder: simuvex/plugins. All plugins must be registered. You can register your plugin by calling SimStatePlugin.register_default() (example). You must also add a property to the s_state file (example). You might also want to add a line to __init__.py if you want to make you plugin class or other global variables available to you or other modules when importing the plugin package as a whole. Once registered, your plugin class instance will be available in the state object via state.plugin_name. See here and here.
I would recommend referencing some of the more easy to understand plugins as examples: libc, and posix. You can find uses of these plugins in many SimProcedures.
Kind of an edge case but added for completeness: If you want to include non-python files with your plugin (e.g., data files that you intend to reference) and have those files copied over during the simuvex installation process, you must edit package_data in setup.py.
I might be forgetting something; feel free to chime in. When complete, this should go in the docs somewhere. Since there are so many steps touching a lot files, perhaps a walkthrough that creates an example plugin might be in order.

@schieb Excellent explanation thanks. I'll try to create a plugin and if I have any problem I'll ask again.
I don't close the issue because I think it might help someone else.
Thanks a lot

Wow, thank you for that awesome answer, @schieb! Andrew tagged it with add-to-docs, which is an excellent idea. We'll leave the issue open until that happens :-)


Fix double &amp encoding

:eyeglasses: @JordanMilne
This takes care of issues like:

:fish:

This won't fix the real issue. All the data coming from reddit's API is always HTML-escaped, no matter what the data actually is. You'll probably see similar issues if you do <http://example.com/autolink>.
That means that if someone puts   in their comment, it gets sent out as &nbsp;. This needs to be fixed in whatever lib we're using to talk to the API.

:nail_care: to clean up my salon

Is this still an issue since the changes in snoode?


Different performance with syncBN and BN on HTC

Thanks for your work.
When I was using test script after train on our own dataset with syncBN on HTC, I found the error following:
!Traceback (most recent call last):
File "/remote-home/my/Future3d/tools/test.py", line 149, in
main()
File "/remote-home/my/Future3d/tools/test.py", line 143, in main
dataset.format_results(outputs, **kwargs)
File "/remote-home/my/Future3d/mmdet/datasets/Future3d.py", line 309, in format_results
result_files = self.results2json(results, jsonfile_prefix)
File "/remote-home/my/Future3d/mmdet/datasets/Future3d.py", line 245, in results2json
json_results = self._segm2json(results)
File "/remote-home/my/Future3d/mmdet/datasets/Future3d.py", line 205, in _segm2json
segms = seg[label]
IndexError: list index out of range
Test script is:
./tools/dist_test.sh /remote-home/my/Future3d/configs/htc/htc_without_semantic_x101_64x4d_fpn_syncBN_dconv_c3-c5_mstrain_400_1400_2x_Future3d.py /remote-home/my/Future3d/tools/work_dirs/htc_without_semantic_x101_64x4d_fpn_syncBN_dconv_c3-c5_mstrain_400_1400_2x_Future3d/latest.pth 4 --format-only --options "jsonfile_prefix=./test_result/htc_without_semantic_x101_64x4d_fpn_syncBN_dconv_c3-c5_mstrain_400_1400_2x_Future3d/test_result"
Then I printed out the results output following:
[[array([], shape=(0, 5), dtype=float32)*34],[]*34]
However, I get the right segmentation result when using BN on HTC. The only difference between two configs is 'norm_cfg=dict(type='syncBN', requires_grad=True),norm_eval=False' and  'norm_cfg=dict(type='BN', requires_grad=True),norm_eval=True'
Could somebody help me with the problem?

Hi @caidandaren ,
You might need to check whether the num_classes is set consistently with your dataset. num_classes should equal to the number of foreground classes in your dataset.

Hi @ZwwWayne ,
num_classes is the same '34' in the config file of BN and syncBN, but I get right segmentation result in the test of BN while the error in syncBN

Is 34 the correct number? Or is your implementation of output conversion is correct? It is possible that BN does not trigger this bug simply because it does not produce empty predictions on the same image.

@ZwwWayne Thank you, I will check it.


Feature: Import blog posts from DEV

Suggested solution
Import blog posts from DEV that are written by Ayu.

This is outdated a bit since I updated docusaurus, but just wanted to surface this in case you need it: https://opensauced.pizza/docs/contributing/opensauced-writers-guide/writers-guide/


When the Inventory tab is grouped by category, the tool section shows a 'Charges' column despite tools not being able to have charges

Sort of the inverse of #1537, I think it should be one or the other (I would vote for adding Limited Uses).

Tools should probably have limited uses since they can be magic items. Having columns that are not necessarily applicable to the category doesn't really do any harm though, and it simplifies the template logic.

Repurposing this issue for some planned changes to allow for per-category column configurations.


[SPARK-35390][SQL] Handle type coercion when resolving V2 functions

What changes were proposed in this pull request?

Handle type coercion when resolving V2 function. In particular:

prior to evaluating function arguments, insert cast whenever the argument type doesn't match the expected input type.
use BoundFunction.inputTypes() to lookup magic method for scalar function

Why are the changes needed?

For V2 functions, the actual argument types should not necessarily match those of the input types, and Spark should handle type coercion whenever it is needed.
Does this PR introduce any user-facing change?

Yes. Now V2 function resolution should be able to handle type coercion properly.
How was this patch tested?

Added a few new tests.

Test build #139273 has started for PR 32764 at commit 2add960.

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/43796/

Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/43796/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/43796/

Test build #139273 has finished for PR 32764 at commit 2add960.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/139273/

cc @cloud-fan @rdblue @viirya @dongjoon-hyun

Thanks @sunchao!

Thank you for pinging me, @sunchao .

Test build #139351 has started for PR 32764 at commit 34291c0.

Kubernetes integration test unable to build dist.
exiting with code: 1
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/43873/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/43873/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/139351/

Test build #139508 has started for PR 32764 at commit 2193744.

Kubernetes integration test status success
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/44033/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/44033/

Test build #139508 has finished for PR 32764 at commit 2193744.

This patch passes all tests.
This patch merges cleanly.
This patch adds the following public classes (experimental):
trait InvokeLike extends Expression with NonSQLExpression with ImplicitCastInputTypes

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/139508/

Test build #139561 has started for PR 32764 at commit 8d45492.

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/44088/

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/44084/

Kubernetes integration test status success
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/44088/

Kubernetes integration test status success
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/44084/

thanks, merging to master!

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/44088/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/44084/

Test build #139561 has finished for PR 32764 at commit 8d45492.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/139561/

Thanks @cloud-fan @dongjoon-hyun and @viirya !


Include datapackage/schemas in gemspec files; remove etc

Without this, the datapackage/schemas directory won't be included in the packaged gem,
causing parsing of Data Packages to fail with a RegistryError.
Remove etc from the gemspec files because it doesn't exist.

Coverage remained the same at 99.454% when pulling 19984740bbe9cb0717499ef2ae3fd9b28d5aca51 on reidab:add-schemas-to-gemspec-files into 0675a5c3306b14ea568c3fadcaa748fa2cf12326 on frictionlessdata:master.

@georgiana-b pls review and merge. ( @roll does anything in recent changes have an impact on this PR? )

We need this change first (before v1 upgrade)

@georgiana-b
I think we should do the same for tableschema-rb

@roll  You mean renaming etc/schemas to tableschema/schemas?


Add tabs sso sample

Q
A

Bug fix?
no

New feature?
no

New sample?
yes

Related issues?
mentioned in #36

What's in this Pull Request?
This sample demonstrates how to implement SSO in a Teams tab. It includes a dotnet sample, initially based on an existing node.js sample (https://github.com/HiltonGiesenow/msteams-tabs-sso-sample-nodejs), but updated for dotnet and to MSAL 2.0 instead of ADAL. It also includes a matching node.js sample, built using the latest Teams Toolkit but modified to show working with the jwt token and extracting values from it before getting an OBO.

Yes that's great, thanks Bob, totally forgot about that! I updated the text slightly, hope that's ok (submitted an updated PR) and also noticed the date formatting for the changelog was a bit funny.


</testcase>
    <testcase classname="ZmachineLight Class Tests should correctly compute the challenge string" name="ZmachineLight Class Tests should correctly compute the challenge string" time="0.008">
    </testcase>
    <testcase classname="ZmachineLight Class Tests should correctly handle the gpu array" name="ZmachineLight Class Tests should correctly handle the gpu array" time="0.008">
    </testcase>
    <testcase classname="ZmachineLight Class Tests should fail validation for entering invalid flist" name="ZmachineLight Class Tests should fail validation for entering invalid flist" time="0.005">
    </testcase>
    <testcase classname="ZmachineLight Class Tests should fail validation for entering invalid entrypoint" name="ZmachineLight Class Tests should fail validation for entering invalid entrypoint" time="0.002">
    </testcase>
    <testcase classname="ZmachineLight Class Tests should fail validation for entering invalid size" name="ZmachineLight Class Tests should fail validation for entering invalid size" time="0.003">
    </testcase>
    <testcase classname="ZmachineLight Class Tests should throw error if network interfaces values are invalid" name="ZmachineLight Class Tests should throw error if network interfaces values are invalid" time="0.004">
    </testcase>
    <testcase classname="ZmachineLight Class Tests should throw an error if mount name is empty" name="ZmachineLight Class Tests should throw an error if mount name is empty" time="0.003">
    </testcase>
    <testcase classname="ZmachineLight Class Tests should fail if zmachineLight is parsed to an invalid object" name="ZmachineLight Class Tests should fail if zmachineLight is parsed to an invalid object" time="0.002">
    </testcase>
  </testsuite>
  <testsuite name="zmount.test.ts" errors="0" failures="0" skipped="0" timestamp="2024-12-30T13:13:33" time="0.367" tests="8">
    <testcase classname="Zmount Class Initialization should be initialized with default values" name="Zmount Class Initialization should be initialized with default values" time="0.001">
    </testcase>
    <testcase classname="Zmount Class size property validation should fail validation if size is set to a non-numeric value" name="Zmount Class size property validation should fail validation if size is set to a non-numeric value" time="0.001">
    </testcase>
    <testcase classname="Zmount Class size property validation should fail validation if size is null" name="Zmount Class size property validation should fail validation if size is null" time="0">
    </testcase>
    <testcase classname="Zmount Class size property validation should fail validation if size is undefined" name="Zmount Class size property validation should fail validation if size is undefined" time="0.001">
    </testcase>
    <testcase classname="Zmount Class size property validation should fail validation if size is less than the minimum" name="Zmount Class size property validation should fail validation if size is less than the minimum" time="0">
    </testcase>
    <testcase classname="Zmount Class size property validation should fail validation if size is greater than the maximum" name="Zmount Class size property validation should fail validation if size is greater than the maximum" time="0">
    </testcase>
    <testcase classname="Zmount Class size property validation should pass validation if size is a valid number within the range" name="Zmount Class size property validation should pass validation if size is a valid number within the range" time="0.001">
    </testcase>
    <testcase classname="Zmount Class challenge method should return the size as a string" name="Zmount Class challenge method should return the size as a string" time="0">
    </testcase>
  </testsuite>
  <testsuite name="zmachine.test.ts" errors="0" failures="0" skipped="0" timestamp="2024-12-30T13:13:34" time="0.6" tests="12">
    <testcase classname="Zmachine Class Tests should create a valid Zmachine instance" name="Zmachine Class Tests should create a valid Zmachine instance" time="0.006">
    </testcase>
    <testcase classname="Zmachine Class Tests should correctly serialize and deserialize a Zmachine instance" name="Zmachine Class Tests should correctly serialize and deserialize a Zmachine instance" time="0.012">
    </testcase>
    <testcase classname="Zmachine Class Tests should correctly handle env vars" name="Zmachine Class Tests should correctly handle env vars" time="0.007">
    </testcase>
    <testcase classname="Zmachine Class Tests should correctly compute the challenge string" name="Zmachine Class Tests should correctly compute the challenge string" time="0.008">
    </testcase>
    <testcase classname="Zmachine Class Tests should correctly handle the gpu array" name="Zmachine Class Tests should correctly handle the gpu array" time="0.005">
    </testcase>
    <testcase classname="Zmachine Class Tests should fail validation for entering invalid flist" name="Zmachine Class Tests should fail validation for entering invalid flist" time="0.002">
    </testcase>
    <testcase classname="Zmachine Class Tests should fail validation for entering invalid entrypoint" name="Zmachine Class Tests should fail validation for entering invalid entrypoint" time="0.002">
    </testcase>
    <testcase classname="Zmachine Class Tests should fail validation for entering invalid size" name="Zmachine Class Tests should fail validation for entering invalid size" time="0.006">
    </testcase>
    <testcase classname="Zmachine Class Tests should throw error if network public_ip is invalid" name="Zmachine Class Tests should throw error if network public_ip is invalid" time="0.002">
    </testcase>
    <testcase classname="Zmachine Class Tests should throw error if network interfaces values are invalid" name="Zmachine Class Tests should throw error if network interfaces values are invalid" time="0.002">
    </testcase>
    <testcase classname="Zmachine Class Tests should throw an error if mount name is empty" name="Zmachine Class Tests should throw an error if mount name is empty" time="0.003">
    </testcase>
    <testcase classname="Zmachine Class Tests should fail if zmachine is parsed to an invalid object" name="Zmachine Class Tests should fail if zmachine is parsed to an invalid object" time="0.004">
    </testcase>
  </testsuite>
  <testsuite name="network_light.test.ts" errors="0" failures="0" skipped="0" timestamp="2024-12-30T13:13:34" time="0.374" tests="7">
    <testcase classname="NetworkLight Class Tests should create a valid NetworkLight instance" name="NetworkLight Class Tests should create a valid NetworkLight instance" time="0.001">
    </testcase>
    <testcase classname="NetworkLight Class Tests should correctly serialize and deserialize a NetworkLight instance" name="NetworkLight Class Tests should correctly serialize and deserialize a NetworkLight instance" time="0.001">
    </testcase>
    <testcase classname="NetworkLight Class Tests should correctly compute the challenge string" name="NetworkLight Class Tests should correctly compute the challenge string" time="0">
    </testcase>
    <testcase classname="NetworkLight Class Tests should correctly handle missing peers" name="NetworkLight Class Tests should correctly handle missing peers" time="0">
    </testcase>
    <testcase classname="NetworkLight Class Tests should throw an error if subnet is empty" name="NetworkLight Class Tests should throw an error if subnet is empty" time="0">
    </testcase>
    <testcase classname="NetworkLight Class Tests should handle an empty mycelium object correctly" name="NetworkLight Class Tests should handle an empty mycelium object correctly" time="0.001">
    </testcase>
    <testcase classname="NetworkLight Class Tests should correctly handle peers being empty" name="NetworkLight Class Tests should correctly handle peers being empty" time="0">
    </testcase>
  </testsuite>
  <testsuite name="compute_capacity.test.ts" errors="0" failures="0" skipped="0" timestamp="2024-12-30T13:13:35" time="0.379" tests="6">
    <testcase classname="Compute Capacity module Compute Capacity instance is of type ComputeCapacity." name="Compute Capacity module Compute Capacity instance is of type ComputeCapacity." time="0">
    </testcase>
    <testcase classname="Compute Capacity module Min values for cpu & memory." name="Compute Capacity module Min values for cpu & memory." time="0.002">
    </testcase>
    <testcase classname="Compute Capacity module Max values for cpu & memory." name="Compute Capacity module Max values for cpu & memory." time="0">
    </testcase>
    <testcase classname="Compute Capacity module cpu & memory doesn't accept decimal values." name="Compute Capacity module cpu & memory doesn't accept decimal values." time="0.001">
    </testcase>
    <testcase classname="Compute Capacity module cpu & memory empty values." name="Compute Capacity module cpu & memory empty values." time="0">
    </testcase>
    <testcase classname="Compute Capacity module An error should be thrown if cpu & memory negative values." name="Compute Capacity module An error should be thrown if cpu & memory negative values." time="0">
    </testcase>
  </testsuite>
  <testsuite name="volume.test.ts" errors="0" failures="0" skipped="0" timestamp="2024-12-30T13:13:35" time="0.365" tests="3">
    <testcase classname="Test volume workload. volume should be type of Volume" name="Test volume workload. volume should be type of Volume" time="0">
    </testcase>
    <testcase classname="Test volume workload. should fail if passed invalid size" name="Test volume workload. should fail if passed invalid size" time="0.001">
    </testcase>
    <testcase classname="Test volume workload. should fail if volume was assigned to an invalid parsed obj" name="Test volume workload. should fail if volume was assigned to an invalid parsed obj" time="0">
    </testcase>
  </testsuite>
  <testsuite name="query_to_string.test.ts" errors="0" failures="0" skipped="0" timestamp="2024-12-30T13:13:36" time="0.123" tests="6">
    <testcase classname="Convert object to query string should return an empty string when given an empty object" name="Convert object to query string should return an empty string when given an empty object" time="0">
    </testcase>
    <testcase classname="Convert object to query string should correctly convert an object with string values to a query string" name="Convert object to query string should correctly convert an object with string values to a query string" time="0.001">
    </testcase>
    <testcase classname="Convert object to query string should correctly convert an object with number values to a query string" name="Convert object to query string should correctly convert an object with number values to a query string" time="0">
    </testcase>
    <testcase classname="Convert object to query string should correctly convert an object with mixed types of values to a query string" name="Convert object to query string should correctly convert an object with mixed types of values to a query string" time="0">
    </testcase>
    <testcase classname="Convert object to query string should filter out undefined values from the object" name="Convert object to query string should filter out undefined values from the object" time="0.001">
    </testcase>
    <testcase classname="Convert object to query string should filter out empty string values from the object" name="Convert object to query string should filter out empty string values from the object" time="0">
    </testcase>
  </testsuite>
  <testsuite name="root_fs.test.ts" errors="0" failures="0" skipped="0" timestamp="2024-12-30T13:13:36" time="0.024" tests="2">
    <testcase classname="Calculate the rootFS size based on the machine specs should return 2GB when the options are provided" name="Calculate the rootFS size based on the machine specs should return 2GB when the options are provided" time="0.001">
    </testcase>
    <testcase classname="Calculate the rootFS size based on the machine specs should return 0.48828125 when CPU cores and RAM are zero" name="Calculate the rootFS size based on the machine specs should return 0.48828125 when CPU cores and RAM are zero" time="0">
    </testcase>
  </testsuite>
</testsuites>

Those tests are already failing on  development branch, so Let's open issues to fix those as they're not related to my pr
 FAIL  tests/modules/kubernetes.test.ts (488.544 s)
  ● TC1231 - Kubernetes: Deploy a Kubernetes Cluster

    Timed out while waiting for handshake

      at Timeout.<anonymous> (../../node_modules/ssh2/lib/client.js:1014:23)

  ● TC1232 - Kubernetes: Add Worker

    Timed out while waiting for handshake

      at Timeout.<anonymous> (../../node_modules/ssh2/lib/client.js:1014:23)

 FAIL  tests/modules/vm.test.ts (293.932 s)
  ● TC1228 - VM: Deploy a VM

    Couldn't get free Wireguard ports for node 259
         Failed to send request to twinId 9458 with command: zos.network.list_wg_ports, payload:
         0 function is not found

      354 |                     if (err) {
      355 |                         this.responses.delete(requestID);
    > 356 |                         reject(new types_1.RMBError(${err.code} ${err.message}));
          |                                ^
      357 |                         break;
      358 |                     }
      359 |                 }

      at ../rmb_direct_client/dist/node/client.js:356:32

  ● TC2847 - VM: Deploy a VM With Mycelium

    connect ENETUNREACH 4e5:cf65:b008:38c0:ff0f:0:200:2:22 - Local (:::0)

  ● TC1229 - VM: Deploy a VM With a Disk

    Timed out while waiting for handshake

      at Timeout._onTimeout (../../node_modules/ssh2/lib/client.js:1014:23)

  ● TC1230 - VM: Deploy Multiple VMs on Different Nodes

    Timed out while waiting for handshake

      at Timeout._onTimeout (../../node_modules/ssh2/lib/client.js:1014:23)

 FAIL  tests/modules/zdb.test.ts (49.213 s)
  ● TC1236 - ZDB: Deploy ZDBs

    Error getting node 259
         Failed to send request to twinId 9458 with command: zos.statistics.get, payload:
         Didn't get a response after 20 seconds

      367 |             if (envelope && envelope.expiration) {
      368 |                 this.responses.delete(requestID);
    > 369 |                 reject(new types_1.TimeoutError(Didn't get a response after ${envelope.expiration} seconds));
          |                        ^
      370 |             }
      371 |         });
      372 |     }

      at ../rmb_direct_client/dist/node/client.js:369:24

 FAIL  tests/modules/stellar.test.ts (41.701 s)

  ● Test suite failed to run

    TypeError: require(...) is not a function

      at Object.createBufferingLogger [as BufferingLogger] (../../node_modules/websocket/lib/utils.js:24:39)
      at new WebSocketConnection (../../node_modules/websocket/lib/WebSocketConnection.js:42:25)
      at WebSocketClient.Object.<anonymous>.WebSocketClient.succeedHandshake (../../node_modules/websocket/lib/WebSocketClient.js:343:22)
      at WebSocketClient.Object.<anonymous>.WebSocketClient.validateHandshake (../../node_modules/websocket/lib/WebSocketClient.js:332:10)
      at ClientRequest.handleRequestUpgrade (../../node_modules/websocket/lib/WebSocketClient.js:261:14)

 FAIL  tests/modules/qsfs.test.ts (205.414 s)
  ● TC1234 - QSFS: Deploy QSFS underneath a VM

    Failed to send request to twinId 6171 with command: zos.deployment.get, payload: {"contract_id":181408}
         0 deployment not found

      354 |                     if (err) {
      355 |                         this.responses.delete(requestID);
    > 356 |                         reject(new types_1.RMBError(${err.code} ${err.message}));
          |                                ^
      357 |                         break;
      358 |                     }
      359 |                 }

      at ../rmb_direct_client/dist/node/client.js:356:32

  ● TC1235 - QSFS: Deploy QSFS Underneath a Kubernetes Cluster

    Failed to deploy zdb with name wvw308qlztpkbj58 on node 11 due to: failed to create zdb namespace: failed to connect to 0-db: fb45d10b-*: dial unix /var/run/zdb_fb45d10b-*/zdb.sock: connect: connection refused.

      87 |     let state = false;
      88 |     if (workload.result.state === "error") {
    > 89 |       throw new GridClientErrors.Workloads.WorkloadDeployError(
         |             ^
      90 |         Failed to deploy ${workload.type} with name ${workload.name} on node ${nodeId} due to: ${workload.result.message}.,
      91 |       );
      92 |     } else if (workload.result.state === "ok") {

      at TwinDeploymentHandler.checkWorkload (src/high_level/twinDeploymentHandler.ts:89:13)
      at TwinDeploymentHandler.waitForDeployment (src/high_level/twinDeploymentHandler.ts:116:22)
          at async Promise.all (index 0)
      at TwinDeploymentHandler.handle (src/high_level/twinDeploymentHandler.ts:614:7)
      at QSFSZdbsModule.deploy (src/modules/qsfs_zdbs.ts:97:23)
      at QSFSZdbsModule.descriptor.value (src/modules/utils.ts:19:12)
      at Object.<anonymous> (tests/modules/qsfs.test.ts:512:19)

 FAIL  tests/modules/applications/presearch.test.ts (114.729 s)
  ● TC2728 - Applications: Deploy Presearch

    Timed out while waiting for handshake

      at Timeout._onTimeout (../../node_modules/ssh2/lib/client.js:1014:23)

 FAIL  tests/modules/applications/umbrel.test.ts (51.305 s)
  ● TC2694 - Applications: Deploy Umbrel

    Error getting node 151
         Failed to send request to twinId 5760 with command: zos.statistics.get, payload:
         Didn't get a response after 20 seconds

      367 |             if (envelope && envelope.expiration) {
      368 |                 this.responses.delete(requestID);
    > 369 |                 reject(new types_1.TimeoutError(Didn't get a response after ${envelope.expiration} seconds));
          |                        ^
      370 |             }
      371 |         });
      372 |     }

      at ../rmb_direct_client/dist/node/client.js:369:24

 FAIL  tests/modules/capacity_planner.test.ts (16.504 s)
  ● TC1243 - Capacity Planner: Filter Nodes

    expect(received).toBeGreaterThanOrEqual(expected)

    Expected: >=<PHONE_NUMBER>0
    Received:    -18446735065488155000

      140 |     expect(res[node].total_resources["mru"] - res[node].used_resources["mru"]).toBeGreaterThanOrEqual(GBToBytes(mru));
      141 |     expect(res[node].total_resources["sru"] - res[node].used_resources["sru"]).toBeGreaterThanOrEqual(GBToBytes(sru));
    > 142 |     expect(res[node].total_resources["hru"] - res[node].used_resources["hru"]).toBeGreaterThanOrEqual(GBToBytes(hru));
          |                                                                                ^
      143 |     expect(res[node].farmId).toEqual(farmId);
      144 |   }
      145 | });

      at Object.<anonymous> (tests/modules/capacity_planner.test.ts:142:80)

 FAIL  tests/modules/gateways.test.ts (258.059 s)
  ● TC1237 - Gateways: Expose a VM Over Gateway

    Gateway is unreachable after multiple retries

      65 |     });
      66 |   } else {
    > 67 |     throw new Error("Gateway is unreachable after multiple retries");
         |           ^
      68 |   }
      69 | }
      70 |

      at testGateway (tests/modules/gateways.test.ts:67:11)
      at Object.<anonymous> (tests/modules/gateways.test.ts:233:3)

 FAIL  tests/modules/applications/algorand.test.ts (126.631 s)
  ● TC2727 - Applications: Deploy Algorand

    Timed out while waiting for handshake

      at Timeout._onTimeout (../../node_modules/ssh2/lib/client.js:1014:23)

Test Suites: 10 failed, 2 skipped, 19 passed, 29 of 31 total
Tests:       14 failed, 4 skipped, 97 passed, 115 total ```

https://github.com/threefoldtech/tfgrid-sdk-ts/runs/35015478469
I see the kubernates here is failing only on the zos4 pr can you please check ?


SNYK-CODE CWE-547 Hardcoded secret in AesGcmEncryptor and InMemoryKms (false positives?)

Describe the bug
A snyk scan is reporting two SNYK-CODE CWE-547 for Kroxylicious topic encryption related code.  Both appear to be false positives.  You can reason about the fact that the buffer is always securely  initialised before any encrypt operation.
Hardcoded value array {...} is used as a cipher initialization value. Generate the value with a cryptographically strong random number generator such as java.security.SecureRandom instead.

AesGcmEncryptor.java
this.iv = newbyte[ivSizeBytes]; // Line 41:23 SOURCE
var spec = newGCMParameterSpec(numAuthBits, iv); // Line 114:24 SINK

In this case, presumable the scanner is not able to determine that #outputSize which initialises the buffer is always called before #encrypt despite the lastCall state guard.
InMemoryKms.java
byte[] iv = new byte[numIvBytes];  // Line 133:25 SOURCE
var spec = new GCMParameterSpec(numAuthBits, iv); // Line 135:24 SINK

In this second case, it is particularly bizarre as the buffer is initialised in same method method, in line.   (Might be worthy of a snyk issue??).
Expected behavior
A clean Snyk report.
Additional context
Either we should reexpress the code to avoid the false positives (if reasonable). The fallback is to add a ignore.
https://docs.snyk.io/scan-using-snyk/policies/the-.snyk-file

From experimentation it's a false positive. If the iv is declared (and doesn't get routed through other objects) and then used in the GCMParameterSpec constructor  in the same source file you get a failure.
I created a reproducer here and made a snyk ticket.
Meanwhile, do we need to worry about these false positives in terms of public impact? I don't believe this contributes to the snyk report for our opensource artefacts. You can make a maven project depending on io.kroxylicious:kroxylicious-kms-provider-kroxylicious-inmemory:0.4.0 (contains the flagged code) and snyk scan it, no failures reported. I guess a researcher would have to create a CVE.
And just for interest you can workaround the static analysis in several ways (likely more):

static method to do the random byte generation in another source file (I'm thinking the analysis is per-file) like static byte[] randomBytes(SecureRandom random, int numBytes) :check:
avoid the GCMParameterSpec constructor call with functions: :check:

byte[] iv = new byte[numIvBytes];
secureRandom.nextBytes(iv);
BiFunction<Integer, byte[], GCMParameterSpec> gcmFunc = GCMParameterSpec::new;
var spec = gcmFunc.apply(numAuthBits, iv);

route it through a record :check:

record GcmParams(byte[] iv){}
...
byte[] iv = new byte[numIvBytes];
secureRandom.nextBytes(iv);
GcmParams gcmParams = new GcmParams(iv);
var spec = new GCMParameterSpec(numAuthBits, gcmParams.iv());

I'm in favour of ignoring them with snyk config since the check seems broken, rather than shuffling code around to satisfy the broken thing.

@robobario thorough work, thank you.

I created a reproducer here and made a snyk ticket.

Could you link the ticket?

I'm in favour of ignoring them with snyk config since the check seems broken

Agreed.

On further investigation it appears you can only choose to completely exclude a file from code scanning
https://docs.snyk.io/scan-with-snyk/snyk-code/import-repository-to-snyk/excluding-directories-and-files-from-the-import-process
I think the per-vulnerability ignores you can do are only relevant to dependency chain scanning (like snyk test)

Can't we add file/rule specific rule like this?
snyk ignore --id='CWE-547' --expiry='2025-01-01' --reason='false positive'  --path=./kroxylicious-filters/kroxylicious-encryption/src/main/java/io/kroxylicious/filter/encryption/inband/AesGcmEncryptor.java

that generates a .snyk file (untested)
# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities.
version: v1.25.0
# ignores vulnerabilities until expiry date; change duration by modifying expiry date
ignore:
  CWE-547:
    - ./kroxylicious-filters/kroxylicious-encryption/src/main/java/io/kroxylicious/filter/encryption/inband/AesGcmEncryptor.java:
        reason: false positive
        expires: 2025-01-01T00:00:00.000Z
        created: 2024-02-13T10:03:45.651Z

Didn't get to this today, I'll give it a go tomorrow uploading a sample project. (also for me that snyk ignore command looks like it was talking to the API and I got "Only administrators can ignore issues. Please contact an administrator to ignore this issue.")

"Only administrators can ignore issues. Please contact an administrator to ignore this issue.")

curious, my snyk ignore command just seems to write to the local file. I hadn't done a snyk auth or anything.

@robobario yes, you are right.  I'd didn't appreciate that the different sort of scans had different ignore mechanisms.
https://docs.snyk.io/snyk-cli/scan-and-maintain-projects-using-the-cli/snyk-cli-for-snyk-code/exclude-directories-and-files-from-snyk-code-cli-tests says

Consider excluding directories and files only if you do not publish or compile them into production. If a trace goes through an excluded file or directory with existing vulnerabilities, Snyk might miss potential issues.

on that basis, an exclusion for InMemoryKms.java seems reasonable as this is non-production code.   Excluding CipherSpec.java on the other hand could be harmful, as it would mean that scanner could miss real vulnerabilities in addition to CWE-547 false positive.

I'd didn't appreciate that the different sort of scans had different ignore mechanisms.

If only one type of scan was useful it would be an improvement...


Attestation of Confidential VMs

In this current documentation page, the follow statement is written :

The service supports attestation of the platforms backed by Trusted Platform Modules (TPMs) alongside the ability to attest to the state of Trusted Execution Environments (TEEs) such as Intel® Software Guard Extensions (SGX) enclaves and Virtualization-based Security (VBS) enclaves.

Q1. Can Azure Attestation service be used to attest the confidential VMs (based on AMD SEV-SNP) ?
Q2. Do VBS enclaves also include Confidential VMs (based on AMD SEV-SNP) ?

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: b22057d4-94e3-1a39-9cb2-4320838bc748
Version Independent ID: 7f67afa0-4ef4-8cc8-c9ef-647e91ab18bc
Content: Azure Attestation overview
Content Source: articles/attestation/overview.md
Service: attestation
GitHub Login: @msmbaldwin
Microsoft Alias: mbaldwin

@msmbaldwin Could you please check customer ask and share info?
@msnitish Thanks for the question. GitHub forum is dedicated for docs related issues. For any technical queries or clarifications, we encourage to utilize Microsoft Q & A platform. Kindly raise your query on Microsoft Q&A Platform

Closing old issues. Please feel free to reopen is this remains a problem. #please-close


Mutli channel funnel API

Hi,
I tried to query for mcf:totalConversions, but got error. Please help.

Sorry, I'm not sure how to help with that, did you check the documentation here?:
https://developers.google.com/analytics/devguides/reporting/mcf/v3/reference

Sorry, I'm not sure how to help with that, did you check the documentation here?:
https://developers.google.com/analytics/devguides/reporting/mcf/v3/reference


Time 128x128x80 case, bump compat

Add code to test 128x128x80 case, which is roughly 2mm isotropic.
It took about 6s on a 2020 iMac with 10 core i9 3.6 GHz and 64 GB memory.
Leaving it commented out to save CO2 in the cloud.

Codecov Report
Base: 100.00% // Head: 100.00% // No change to project coverage :thumbsup:

Coverage data is based on head (840cf49) compared to base (906c2ea).
Patch has no changes to coverable lines.

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #13   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files            8         8
  Lines          299       299
=========================================
  Hits           299       299

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


additional option setting

The cpplint.py have few useful option like —linelength,
But, this package not set that option.
I want to set it, so I add additional option config.

The --linelength option was added by another PR, do you have any other use case of this? :)

Hi!
I want to use --linelength option only, so I don't need to merge this PR.


Move TestCase interface and connect it to http

Codeception will be useful as well.

Codeception can be good.

done for now, see sample app, codeception is separate one


Dead link on README

Local Environment
This environment is intended for local development. Users will create a Drupal site in the folder codebase, which gets bind mounted into the drupal service container. Allowing developers to use composer / drush locally to work out of the codebase folder.
CODEBASE links to https://github.com/Islandora-Devops/isle-dc/blob/development/codebase

All codebase links are dead.


Prebuild to WebAssembly too

It would be good if yoga-layout-prebuilt could load yoga-layout in WebAssembly format in environments which support it (Node 8+ and 80% of browsers). Our experiments suggest it would be 200–250K smaller and correspondingly faster. @vadimdemedes have you investigated this at all?
Relates to: diegomura/react-pdf#364

https://github.com/rickbutton/yoga-wasm is promising but (still) not working with react-pdf

Is the emscripten option -s ALLOW_MEMORY_GROWTH not true for these asm/wasm compilations?
+1 for this idea. asm.js is a dying technology with little support and no development.

An other to test, maybe it works with react-pdf ? https://github.com/pinqy520/yoga-layout-wasm


"setChannelTopic" is wrongly listed as "setTopic" in the documentation

See http://discordjs.readthedocs.org/en/latest/docs_client.html#settopic-channel-topic-callback.

@hydrabolt ...

This appears to be correct in the repo's docs, the readthedocs just have to be rebuilt.

@meew0 readthedocs follows master

Doesn't NPM follow the stable docs and indev follows latest docs? As NPM still uses setChannelTopic and not setTopic so you kinda just screwed over anyone using NPM because no update has been pushed to change that to setTopic. So those looking at the docs will be using the wrong method.

@Lord-Ptolemy in the code, it's setChannelTopic. In the docs, it's setTopic. It's supposed to be renamed to setChannelTopic, not from.

Guess that's what I get for not reading properly.


Add GM7 and GM7+up as cloudsource

I guess we can remove the GMC support?

There are no GMCs on dist anymore, but we should just move those with Beta and M* to cloud8 and make cloud7 be similar to 5 and 6

@dirkmueller @bmwiedemann @rsalevsky Addressed all your comments

Closing in favor of https://github.com/SUSE-Cloud/automation/pull/1736


Failed to sign corporate CLA due to configuration of cors settings in api service

Summary
Failed to open the CLA process for the corporation due to the configuration of cors settings
Background
Provide context to the issue - provide steps to reproduce the behavior, such as:

Go to 'https://corporate.lfcla.com/#/company/xxxxxx
Click on 'new CLA'
Click on 'Cloud foundry foundation'
Click on 'Yes'
See an error in the console

Failed to load resource: the server responded with a status of 502 ()
Access to XMLHttpRequest at 'https://api.lfcla.com/v1/request-corporate-signature' from origin 'https://corporate.lfcla.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
https://corporate.lfcla.com/#/company/xxxxxxx
vendor.js:1 ERROR e
(anonymous) @ vendor.js:1
Expected behavior
No error should occur
Screenshots

Environment
Please complete the following information:

Environment: PROD
OS: Macos
Browser chrome
Version 78.0.3904.87

Acceptance Criteria
I can sign the CLA as corporation manager

Needs investigation as most CORS errors are not actual CORS errors but related to session timeout or backend server-side errors.

header:
POST /v1/request-corporate-signature
Accept: application/json
Content-Type: application/json
Origin: https://corporate.lfcla.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1 Safari/605.1.15

body:
{
  "project_id": "face2577-329e-448c-a316-b923fbfb1800",
  "company_id": "ab31b9cb-b625-4f99-ad12-3aa1f6a09ae8",
  "send_as_email": true,
  "authority_name": "Sun Man",
  "authority_email"<EMAIL_ADDRESS>}

result:
< HTTP/2 502
< content-type: application/json
< content-length: 36
< date: Wed, 15 Apr 2020 10:23:58 GMT
< x-amzn-requestid: 7f51613f-8e86-4c25-8803-31b42daf4a49
< x-amzn-errortype: InternalServerErrorException
< x-amz-apigw-id: LBgNqG2vIAMF1Ow=
< x-amzn-trace-id: Root=1-5e96e0bd-a4d8f0ba5105349e8d19a29c
< x-cache: Error from cloudfront
< via: 1.1 d94d6fed5c5370730dedb521e73dd40a.cloudfront.net (CloudFront)
< x-amz-cf-pop: NRT12-C3
< x-amz-cf-id: IPoB8y4nRs1LxBuZ9sVsUPyiBes9Ovxs8sjsS85uthlSl51MHJNwBA==
<
* Connection #0 to host api.lfcla.com left intact
{"message": "Internal server error"}* Closing connection 0

@dealako Could you please help us initiate a request to manually sign the CLA? Thanks!


Bump references to Develocity Maven extension from 1.21.3 to 1.21.4

This PR bumps references to the Develocity Maven extension from 1.21.3 to 1.21.4.

Superseded by #26


Upgrade alpine to v3.5

I'm +1 on the change, but only after the Alpine image maintainers update latest to point to 3.5 (see https://github.com/docker-library/official-images/pull/2489#discussion_r93885746).

@tianon now the alpine:latest is same as alpine:3.5 :)

+ apk add --no-cache --virtual .build-deps apr-dev apr-util-dev perl ca-certificates gcc gnupg libc-dev libxml2-dev lua-dev make openssl openssl-dev pcre-dev tar zlib-dev
fetch http://dl-cdn.alpinelinux.org/alpine/v3.5/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.5/community/x86_64/APKINDEX.tar.gz
ERROR: unsatisfiable constraints:
  libressl-dev-2.4.4-r0:
    conflicts:
               openssl-dev-1.0.2j-r2[pc:libcrypto=2.4.4]
               openssl-dev-1.0.2j-r2[pc:libssl=2.4.4]
               openssl-dev-1.0.2j-r2[pc:openssl=2.4.4]
    satisfies:
               postgresql-dev-9.6.1-r0[libressl-dev]
               openldap-dev-2.4.44-r3[libressl-dev]
  openssl-dev-1.0.2j-r2:
    conflicts:
               libressl-dev-2.4.4-r0[pc:libcrypto=1.0.2j]
               libressl-dev-2.4.4-r0[pc:libssl=1.0.2j]
               libressl-dev-2.4.4-r0[pc:openssl=1.0.2j]
  .build-deps-0:
    masked in: cache
    satisfies: world[.build-deps]

@tianon thanks for your rapid help! (I didn't figure it out about how to make it working yet ha ...)

Just waiting on Travis to verify that it all builds properly -- then we'll merge.
Working on PHP now. :+1:


chore: clone last 5 commits

Coverage remained the same at 100.0% when pulling 56e804db87015deeff703509a7a27fdd20afd3f3 on DanielRuf:chore/clone-last-5-commits into c9e7db7b9b7976928d61d5797473f13e4d6a98ad on pedronauck:master.


Identify topics baseline in patent data

related to #60

Also to close issues #75 and #77 in this issue.

had a really helpful conversation about patent deduplication - sounds like we might want to experiment with grouping patents by families (as a family will have a collection of patents associated to it but will generally be about one idea) then picking the oldest application date the get the first 'seed' of an idea - otherwise, we may want to filter our current dataset by grant date because those will be granted patents.


Building for Windows

As containerd windows support is incomming we should start looking forward to get cri-containerd to use this. The first step is to get it to build on Windows. Based on a quick view through the code, I don't see any major blockers, but a number of libraries used do not build on Windows, and would the code needs to be refactored such that these are in Linux only files (though any Spec generation for Linux containers needs to be kept on both platforms to support Linux containers on Windows (LCOW).
Vendoring does not pull any packages that fail to download on Windows (such as filenames that contain :), which is great!
The build can be performed via cross-compile (as below), or built with mingw32-make.exe on Windows for now, and as with Docker, we can eventually transition to a powershell based build (or other Windows style build) in time in order to lower the barrier of entry to Windows developers.
Initial errors in build are coming from Linux only packages apparmor, seccomp and selinux, but I haven't taken the time to dig and see what the next error is from (I'm sure there will be more).
darren@darst-dev:~/go/src/github.com/containerd/cri-containerd$ export GOOS=windows
darren@darst-dev:~/go/src/github.com/containerd/cri-containerd$ make
go build -o _output/cri-containerd \
        -tags 'seccomp apparmor' \
        -ldflags '-X github.com/containerd/cri-containerd/pkg/version.CRIContainerdVersion=1.0.0-beta.1-38-g9449892' \
        -gcflags '' \
        github.com/containerd/cri-containerd/cmd/cri-containerd
pkg/server/container_create.go:28:2: no buildable Go source files in /home/darren/go/src/github.com/containerd/cri-containerd/vendor/github.com/containerd/containerd/contrib/apparmor
pkg/server/container_create.go:29:2: no buildable Go source files in /home/darren/go/src/github.com/containerd/cri-containerd/vendor/github.com/containerd/containerd/contrib/seccomp
pkg/server/helpers.go:35:2: no buildable Go source files in /home/darren/go/src/github.com/containerd/cri-containerd/vendor/github.com/opencontainers/selinux/go-selinux
Makefile:83: recipe for target '_output/cri-containerd' failed
make: *** [_output/cri-containerd] Error 1

I can start to take a look at this some time next week, but if anyone wants to tackle it ahead of that, it would be great!
@abhi @dmcgowan @stevvooe @crosbymichael @jhowardmsft

@dmcgowan can you please share why this issue was closed?


Full bleed work image

Fixes #1255
Fixes #1204
Type
🐛 Bugfix

[ ] Demoed to @

Value
Adds the required image aspect ratio/sizing behaviour. Displays 'work-media' controls over the image (when enhanced by JS).
Screenshot

Checklist
All

[x] PR labelled and assigned
[x] Any introduced code complexity has been flagged

UI component only

[x] A11y tested: npm run test:accessibility <URL>
[x] Browser tested: npm run test:browsers <URL>
[x] Works without JS in the client
[x] Relevant tracking/monitoring has been considered

Demoed?

Not demoed. Going to run it by @norvard when I'm in.


Unable to set cookies when using Angular

Make sure to check the demo app(s) for sample usage
Done.
Make sure to check the existing issues in this repository
One related issue in the past but I believe the solution to that broke the functionality for Angular.
If the demo apps cannot help and there is no issue for your problem, tell us about it
Please, ensure your title is less than 63 characters long and starts with a capital
letter.
Which platform(s) does your issue occur on?

Both

Please, provide the following version numbers that your issue occurs with:

CLI: 6.0.3
Cross-platform modules: 6.1.1
Runtime(s): 6.0.2
Plugin(s):
"dependencies": {   "@angular/animations": "~8.2.6",   "@angular/common": "~8.2.6",   "@angular/compiler": "~8.2.6",   "@angular/core": "~8.2.6",   "@angular/forms": "~8.2.6",   "@angular/http": "8.0.0-beta.10",   "@angular/platform-browser": "~8.2.6",   "@angular/platform-browser-dynamic": "~8.2.6",   "@angular/router": "~8.2.6",   "@owen-it/nativescript-uuid": "0.0.4",   "ajv": "^6.10.2",   "base-64": "^0.1.0",   "lodash": "^4.17.15",   "nativescript-angular": "^8.2.1",   "nativescript-appversion": "^1.4.2",   "nativescript-facebook": "^4.2.1",   "nativescript-purchase": "^2.0.13",   "nativescript-ratings": "^1.0.1",   "nativescript-socketio": "^3.3.1",   "nativescript-store-update": "^1.0.2",   "nativescript-theme-core": "^2.0.20",   "nativescript-webview-interface": "^1.4.3",   "reflect-metadata": "~0.1.13",   "rxjs": "^6.5.3",   "tns-core-modules": "^6.1.1",   "utf8": "^3.0.0",   "zone.js": "^0.10.2" }, "devDependencies": {   "@angular/cli": "^8.3.4",   "@angular/compiler-cli": "~8.2.6",   "@nativescript/schematics": "~0.7.1",   "@ngtools/webpack": "~8.3.4",   "@types/lodash": "^4.14.138",   "@types/node": "^12.7.5",   "jasmine": "^3.4.0",   "nativescript-dev-webpack": "^1.2.0",   "tns-platform-declarations": "6.1.1",   "node-sass": "4.13.0",   "typescript": "~3.5.3" }

Please, tell us how to recreate the issue in as much detail as possible.
Describe the steps to reproduce it.
When trying to set cookies in app.module.ts, no cookies are transmitted and the options for cookies is ignored:
       SocketIOModule.forRoot(<url_value>, {             debug: true,             cookies: ["<name>=<value>; Domain=<domain_value>; Path=/; Expires=<expiration_time>"],             forceNew: true,             forceWebsockets: true,             secure: true         })
Is there any code involved?
See above.
The issue is that the interface IOOptions defined in angular/index.d.ts specifies the key as 'cookies' whereas socketio.ios.ts and socketio.android.ts look for key 'cookie'.
Easy fix. Sending a PR.

PR #93 submitted


Execution Engine: Fails Intra-References in Included Libraries

Calling simple self-contained functions and expressions in included libraries works, BUT if those expressions or functions reference something (expression/function/parameter) in their own library, the execution fails because they can't find that expression/function/parameter.
It looks to me like the context in the function is looking for these references in the calling library rather than in its own library.

BTW -- I'm looking into this, hoping to fix ASAP.

The example above is actually invalid since it refers to the alias (which is out of scope at that point).
Instead of referring to the alias, the variable $this should be used instead.  For example:
define function square (a System.Integer) :
  a * a

define SortBySquareFunction:
  ({1, 3, 2, 5, 4}) N sort by square($this)

See #127.


highlight empty/wrong fields

Change border color to red for empty/wrong fields on form validation
child of #3

now i've converted all inputs to material-ui there should be better support


bash: lulu: command not found

lulu is installed successfully on debian, but can't run it... why?

Because you need add soft link by yourself, first you need figure out where python3 you put. Then try sudo ln -s /usr/local/python3/bin/lulu /usr/bin/lulu


fix: match graph tooltip color with graph nodes

Description
This PR fixes the issue with graph tooltip color inconsistency

What type of PR is this? (check all applicable)

[ ] 🍕 Feature
[x] 🐛 Bug Fix
[ ] 📝 Documentation Update
[ ] 🎨 Style
[ ] 🧑💻 Code Refactor
[ ] 🔥 Performance Improvements
[ ] ✅ Test
[ ] 🤖 Build
[ ] 🔁 CI
[ ] 📦 Chore (Release)
[ ] ⏩ Revert

Related Tickets & Documents
closes #1875

Mobile & Desktop Screenshots/Recordings
Before
https://github.com/open-sauced/app/assets/62995161/e1aa596b-55cb-464f-af45-d8a5153dc573
After
https://github.com/open-sauced/app/assets/62995161/b3cf346d-55cc-4bbb-9e70-cc631d739959

Added tests?

[ ] 👍 yes
[x] 🙅 no, because they aren't needed
[ ] 🙋 no, because I need help

Added to documentation?

[ ] 📜 README.md
[ ] 📓 docs.opensauced.pizza
[ ] 🍕 dev.to/opensauced
[ ] 📕 storybook
[x] 🙅 no documentation needed

[optional] Are there any post-deployment tasks we need to perform?
[optional] What gif best describes this PR or how it makes you feel?

Update: here is a combination of the 400 values from tailwind palette


Examples of code use for CostManagement Module

Hi, can someone make some examples of CostManagement module in use ?
Is very hard to understand how to use it without any code examples.
I went here:
https://docs.microsoft.com/en-us/python/api/overview/azure/?view=azure-python
But i could not find any example.
Thank you

Please check this sample
https://github.com/ms-premp/AzureConsumptionSamples/blob/master/Python_sdk/costmanagement_query_python_example.py


Add extension methods to convert between GeoJson and Microsoft.Spatial

In the same package as #15431 (Microsoft.Azure.Core.Spatial), add extension methods to convert between GeoJson types and Microsoft.Spatial types since we can't implement cast operators on either.
This will allow SearchDocument.GetPoint and SearchDocument.GetPointCollection to work.
Note: the RootNamespace of that package should be changed to just Azure.Core so we can have both Serialization and GeoJson sub-namespaces using default behavior in VS.

Closing for now.


Create a database of places

DISCLAIMER: I'm pretty rusty on this aspect of writing apps - I'm not sure if this issue is a valid one. This is, however, something I want to learn about which is why I'm creating the issue.
create a places model (this can be a hashmap or list of lists that stores each of the places people may want to visit). Each place should have a category (or multiple), weather (maybe use an API to get real time data --- this is the premise of the app!), etc.

THIS IS JUST AN EXAMPLE.. NOT A REAL COMMENT..
If this were real, it might Nuan, the mentor for this team writing:
Approved, Estimate: 200

Approved, Estimate: 400


Uploading bigger packages fails

With the support for native packages, we need to start supporting the upload of bigger packages.
Packages of size up to 150 MB is getting up uploaded properly from commandline. But for package bigger than that nuget.exe gives an error "The request was aborted. "
It works fine from UI.
The stack trace points to
System.IO.InvalidDataException: End of Central Directory record could not be found.
at System.IO.Compression.ZipArchive.ReadEndOfCentralDirectory()
Download huge packages from : https://qa.nugettest.org/packages/hugerimage ( various versions of this will be of size 75, 150 and 220 MBs).

Dear all,
I have the same problem using following command line:
C:>"C:\Program Files\MSBuild\NuGet\nuget.exe" push "*.nupkg" username:password -Verbosity Detailed -Source http://ipaddress:8081/artifactory/api/nuget/nuget-repository/nuget-path"
Execution detailed:
Pushing Web.Content 5.5.1602.2201 to 'http://ipaddress:8081/artifactory/api/nuget/nuget-repository/nuget-path'...
PUT http://ipaddress:8081/artifactory/api/nuget/nuget-repository/nuget-path/
System.Net.WebException: The request was aborted: The request was canceled. --->
System.IO.IOException: Cannot close stream until all bytes are written.
at System.Net.ConnectStream.CloseInternal(Boolean internalCall, Boolean aborting)
--- End of inner exception stack trace ---
at System.Net.ConnectStream.CloseInternal(Boolean internalCall, Boolean aborting)
at System.Net.ConnectStream.System.Net.ICloseEx.CloseEx(CloseExState closeState)
at System.Net.ConnectStream.Dispose(Boolean disposing)
at System.IO.Stream.Close()
at System.IO.Stream.Dispose()
at NuGet.MultipartWebRequest.CreateMultipartRequest(WebRequest request)
at NuGet.PackageServer.<>c__DisplayClass4.b__2(Object sender, WebRequestEventArgs e)
at System.EventHandler1.Invoke(Object sender, TEventArgs e)    at NuGet.HttpClient.RaiseSendingRequest(WebRequest webRequest)    at NuGet.RequestHelper.GetResponse()    at NuGet.HttpClient.GetResponse()    at NuGet.PackageServer.EnsureSuccessfulResponse(HttpClient client, Nullable1 expectedStatusCode)
at NuGet.PackageServer.PushPackageToServer(String apiKey, Func`1 packageStreamFactory, Int64 packageSize, Int32 timeout, Boolean disableBuffering)
at NuGet.PackageServer.PushPackage(String apiKey, IPackage package, Int64 packageSize, Int32 timeout, Boolean disableBuffering)
at NuGet.CommandLine.PushCommand.PushPackageCore(String source, String apiKey, PackageServer packageServer, String packageToPush, TimeSpan timeout)
at NuGet.CommandLine.PushCommand.PushPackage(String packagePath, String source, String apiKey, TimeSpan timeout)
at NuGet.CommandLine.PushCommand.d__16.MoveNext()
Best regards,

I think the problem is timeout issue, because closer the server I can put the 18MB file there.
I'm in Brazil sending the package to Spain. Without firewall in the intranet but using a international link. A small file it's possible. Once I could send this file, but most time I can't.
I wish this information can help us correct that.
Thanks a lot.

Add the -Timeout switch to the command, e.g. -Timeout 4321

@maartenba This would have solve the problem if it was from our side. Unfortunately tho, problem lies at the NuGet servers and probably as a way to prevent R.U.D.Y attacks. Which mean they are not going to fix it any time soon.

Have you tried it? It should work, the timeout happens in the client.

Thanks maartenba! That's worked fine now! My problem was the value. I'd put in milisseconds like Timeout of .Net Framework, but the calculus should be in seconds. Now I put "-Timeout 2147483" and worked fine.

My command line that worked fine!
C:>"C:\Program Files\MSBuild\NuGet\nuget.exe" push "*.nupkg" username:password -Verbosity Detailed -Timeout 2147483 -Source http://ipaddress:8081/artifactory/api/nuget/nuget-repository/nuget-path"

I'm also having this problem but the suggestion for adding the Timeout switch from @maartenba did not fix the issue for me. Seems there is another timeout on the HTTP PUT request that hits after 100 seconds. My command line is basically:
C:\test>nuget push -ApiKey xxx -Timeout 120000 -Source http://nuget.org -Verbosity Detailed mything.nupkg
The output is:
Pushing mything.nupkg to 'http://nuget.org'...
PUT http://nuget.org/api/v2/package/
PUT http://nuget.org/api/v2/package/
PUT http://nuget.org/api/v2/package/
System.AggregateException: One or more errors occurred. ---> System.TimeoutException: The HTTP request to 'PUT http://nuget.org/api/v2/package/' has timed out after 100000ms.
at NuGet.CommandLine.PushCommand.d__16.MoveNext()
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at NuGet.CommandLine.Command.Execute()
at NuGet.CommandLine.Program.MainCore(String workingDirectory, String[] args)
---> (Inner Exception #0) System.TimeoutException: The HTTP request to 'PUT http://nuget.org/api/v2/package/' has timed out after 100000ms.
at NuGet.CommandLine.PushCommand.d__16.MoveNext()<---
I'm using nuget.exe version <IP_ADDRESS>5

Hi prestonj,
Use "-Timeout 2147483" as a maximum value, ok? Greater than this won't work.
Best regards,
Jener Garcia Menezes

Hi Jener,
In the above case I used 120,000 which is less than 2,147,483. I've also tried using 2147483 as well as other more sane value like 900 and 600. Nothing seems to affect the 100 second timeout.
Cheers, Preston

Seems like a client regression: https://github.com/NuGet/Home/issues/2785

Hi Preston,
In your environment doesn't have any proxy? It was my another problem with this and we had fixed too.
Best regards,
Menezes, Jener

Thanks for the suggestion Jener but I've tried the upload from two different locations - same result. I'm pretty sure it's not a proxy issue.
Can someone point me to a version of the nuget client that has a working "Timeout" option?

Hi Preston,
I'm using "-Timeout 2147483" command with "-" as you can see...
"C:\Program Files\MSBuild\NuGet\nuget.exe" push "E:\Folder*.nupkg" UserName:SecurityPassword -Verbosity Detailed -Timeout 2147483 -Source http://host/artifactory/api/nuget/summer.net-nuget-local/summer.net
The NuGet.exe version is <IP_ADDRESS>.
Regards,
Jener

Hi Preston,
Do not use -ApiKey, use UserName and Encrypted Password as the command I sent you.

Regards,
Jener

I was able to get this to work (using my previously mentioned command line) by downgrading to nuget 2.8.6 (to get the timeout flag to work) and splitting my packages.

Hey @prestonj, I've applied a fix to address this problem. Could you try this prerelease build of nuget.exe to see if it supports the -Timeout option as expected?
nuget-dev-1296.zip

@joelverhagen, I was experiencing the same issue and your prerelease version seems to have fixed the problem for me

Closed with https://github.com/NuGet/NuGet.Client/pull/599.

Did this make it into 3.5.0 RC1?
Sure seems like it did not - I still get timeout with <IP_ADDRESS>7 (3.5.0 RC1)
However, when I used the binary build attached to this issue, (<IP_ADDRESS>6) it worked.

This was a client issue so more up-to-date details are available here:
https://github.com/NuGet/Home/issues/2785
The long and short of it is that there was a regression in this area for 3.5.0-rc1, but it has been fixed in 3.5 (rtm).

Sorry, I didn't realize the regression was actually for 3.5.0 RC1 - had assumed it was for 3.4.3.
Thanks for your follow up!


Direct12 crash on CommitShaderResources with Release build

I have the following function for drawing:
void SubmitDraw(Context &ctx, const GraphicsPipelineDesc& gpd, const DrawAttribs& drawAttrs)
{
    IPipelineState* pso = nullptr;
    IShaderResourceBinding* srb = nullptr;
    GetPSO(ctx, gpd, &pso, &srb);

    ctx.pContext->SetPipelineState(pso);
    ctx.pContext->CommitShaderResources(srb, RESOURCE_STATE_TRANSITION_MODE_TRANSITION);

    DrawAttribs copy(drawAttrs);
    copy.Flags = DRAW_FLAG_VERIFY_STATES;
    ctx.pContext->Draw(copy);
}

I have isolated this to be the only enabled function making draw calls. The GetPSO function creates/retrieves cached PSO/SRB pairs. When I run this in both debug/release mode on OpenGL and D3D11 it runs fine. It also runs without issue when I run it on D3D12 in debug mode, but in Release mode it crashes quickly. Got it down to a few frames now (around 4, the more inefficient I make the program the more frames can run before crashing).
The error I get is an access violation reading something in the call to CommitShaderResources. Diligent is being diligent and outputs the following: Diligent Engine: ERROR: Failed to suballocate region for dynamic descriptors which lead me onto a cold trail here: https://github.com/DiligentGraphics/DiligentCore/blob/b5ac1fd1cc897c24c8908f365c072bd016baf256/Graphics/GraphicsEngineD3D12/src/DescriptorHeap.cpp#L430 . I am only using one thread at the moment, and only one "immediate" context pContext.
If it was because I keep allocating resources then the debug build would suffer from the same, and the memory usage remains constant in all runs (that don't crash). GetPSO creates a total of 7 PSO/SRB pairs on the first frame, and then none the rest of the time, they are reused. If I comment out the CommitShaderResources call, it does not crash. If I change the transition mode to none and manually transition them elsewhere, e.g. inside GetPSO, it still crashes here on the call to CommitShaderResources.
Am I supposed to transition the resources out or something? But then it would also crash in debug?

Try to increase the size of the GPU descriptor heap:
https://github.com/DiligentGraphics/DiligentEngine/blob/master/Projects/Asteroids/src/asteroids_DE.cpp#L115
At the end of the frame Diligent prints API-specific  resource usage statistics. For D3D12 this includes descriptor heap usage statistics:
Diligent Engine: Info: D3D12_DESCRIPTOR_HEAP_TYPE_SAMPLER     GPU heap max allocated size (static|dynamic): 22/128 (17.19%) | 16/1920 (0.83%).
Diligent Engine: Info: D3D12_DESCRIPTOR_HEAP_TYPE_CBV_SRV_UAV GPU heap max allocated size (static|dynamic): 56/16384 (0.34%) | 64/32768 (0.20%).

Try to make sure that utilization is not close to 100%.

Increasing the descriptor values did not change anything, but by decreasing I could get it to reliably crash in debug mode too. I am only using more than 1% of two resources:
Diligent Engine: Info: D3D12_DESCRIPTOR_HEAP_TYPE_SAMPLER     GPU heap max allocated size (static|dynamic): 0/1024 (0.00%) | 832/1024 (81.25%).
Diligent Engine: Info: D3D12_DESCRIPTOR_HEAP_TYPE_CBV_SRV_UAV GPU heap max allocated size (static|dynamic): 0/16384 (0.00%) | 1024/8192 (12.50%).

I am creating ~15 textures and assigning each their own sampler (I will move to only two static samplers later). If I move to using only a single static sampler, I get this
Diligent Engine: Info: D3D12_DESCRIPTOR_HEAP_TYPE_SAMPLER     GPU heap max allocated size (static|dynamic): 0/1024 (0.00%) | 0/1024 (0.00%).
and no crashes. I then move to a single dynamic sampler only, the 15 textures being assigned the same sampler. I get same results as first:
Diligent Engine: Info: D3D12_DESCRIPTOR_HEAP_TYPE_SAMPLER     GPU heap max allocated size (static|dynamic): 0/1024 (0.00%) | 832/1024 (81.25%).
I tried increasing the sampler count, but apparently the defaults are maximum (since it automaticall adds 1024 to your input?). I then tried reducing it, and that made the issue replicate in Debug mode.
EngD3D12Attribs.GPUDescriptorHeapDynamicSize[1] = 256;```

I found this note in the comments: "In D3D11, 4096 unique sampler state objects can be created on a device at a time". Not sure what the numbers are for D3D12, but I am guessing it is more than 1, so I must be doing something wrong?

 The problem is that when you label shader variable as dynamic, the descriptor for this variable is allocated at every draw call. So even though you have 15 textures, if you issue 200 draw calls, it will allocate 200 dynamic descriptors. Also descriptors will be locked for few frames while GPU is not done with them. So 200 draw calls will require somewhat 200*3 dynamic descriptors.
Dynamic shader resource variables are easiest to use, but are the slowest. Most of the time you don't need them. With samplers, you almost never ever need to change the sampler dynamically, so static sampler compiled at shader creation time will work almost all the time and should be used whenever possible. There is no limitation on the number of static samplers. In your second example dynamic sampler descriptor usage is 0%, which it should almost always be.
D3D12 limits the number of descriptor samples in one heap by 2048. This number is split between dynamic allocations used for dynamic variables and static part allocated for SRBs.

Thank you, I think that explains it my issue. And I have 548 draw calls per frame using that shader. I am guessing the difference between debug and release comes to circumstance with debug being just slow enough not to cause this issue?
I only know the proper sampler to use at runtime - the original interface used OpenGL state changes. The sampler to use depends on 2^3 = 8  (maybe 2^4) different possibilities. So what is the proper way to do it? Should I just create them all at shader creation time. Then how do I use the right one at the call? Or should I create 8 almost identical shaders too, increasing number of PSO also by factor 8?
Would something like this (from https://docs.microsoft.com/en-us/windows/desktop/direct3d12/resource-binding-in-hlsl ) work / be "a proper" approach?
Texture2D texture;
sampler samplers[7] : register(s0);
texture.Sample(samplers[samplerID], texCoords);

Replacing sampler with SamplerState, and passing samplerID in a cbuffer?

That's correct. With debug being slower, the samplers become available faster as CPU does not produce enough commands to saturate the GPU.
The order of preferences is this:

Everything is static at set up at PSO/Shader creation stage (static samplers, static shader shader resources).
Mutable resources: if you know you may need 15 combinations of textures/samplers, you create one SRB per combination and bind the right one at run time
Dynamic variables - last resort. This should only be used when a resource is truly changing randomly and a lot at run time. This has high run-time overhead.

Binding all samplers once and then selecting them at run-time in the shader is also a good and recommended approach. Creating 8 almost identical PSOs is not optimal too as switching PSOs is expensive.
Please note that Diligent targets next-gen APIs. Using it efficiently requires rethinking the rendering architecture. Creating PSOs at run-time, late-binding resources, fine-grain state management is not efficient. The idea of next-gen APIs that Diligent also exposes is to prepare everything ahead of time: PSOs, resource bindings, etc. which will significantly reduce the amount of work at run time.

I will change my implementation to use static/mutable samplers. I have read on the next-gen designs, and do realize the need to construct as much up front.
But the library I am porting for was designed with OpenGL state-based API in mind and is therefore very liberal with what it allows/does at runtime. For instance it makes blend factors. There are 4 blend factors with 11 possibilities each, thus 11^4: https://github.com/memononen/nanovg/blob/master/src/nanovg_gl.h#L1229 . Though most usage of the library will symmetric giving 11^2. In practice the original demo sample only uses one or two. The problem is knowing in advance.
So I am thinking of adding a function on top of the original API to allow you to tell in advance what blending factor combinations you are actually going to use later. Or maybe a "dry-run" where it doesn't do any drawing but gather what it would need to do before hand.
Thank you for your help. I am closing this issue since it has been resolved as user error :)

You are not the only one who experiences issues related to dynamic variables. it is the fastest way to get things running especially when porting from older APIs, but also the slowest way. I will put together some perf guide to help the library users.


Fix get server version

Fix get server version, use a faster method that faster then using regex match.
Also fix plugin loading on 1.21

very nice


Add test-all make target

This PR adds a make target that should run the following tests/targets

CCS
Reuse
Account Creation
Federated Access

/hold

@clcollins looks good now after #330
make test-all  52.19s user 7.60s system 19% cpu 4:59.54 total

/hold cancel

@clcollins going to need another :bacon: I just removed the hold.


Git color coding missing in Explorer view

Issue Type: Bug
I seem to be experiencing #46888 again as of today. Git color coding has disappeared from the Explorer view, and changes are no longer visible in the margin / gutter of the Editor view.
VS Code version: Code 1.28.1 (3368db6750222d319c851f6d90eb619d886e08f5, 2018-10-11T18:07:48.477Z)
OS version: Darwin x64 17.7.0

System Info

Item
Value

CPUs
Intel(R) Core(TM) i7-4980HQ CPU @ 2.80GHz (8 x 2800)

GPU Status
2d_canvas: enabledchecker_imaging: disabled_offflash_3d: enabledflash_stage3d: enabledflash_stage3d_baseline: enabledgpu_compositing: enabledmultiple_raster_threads: enabled_onnative_gpu_memory_buffers: enabledrasterization: unavailable_softwarevideo_decode: enabledvideo_encode: enabledwebgl: enabledwebgl2: enabled

Load (avg)
2, 2, 2

Memory (System)
16.00GB (5.43GB free)

Process Argv

Screen Reader
no

VM
0%

Extensions (3)

Extension
Author (truncated)
Version

python
ms-
2018.9.0

cpptools
ms-
0.19.0

platformio-ide
pla
1.4.0

and changes are no longer visible in the margin / gutter of the Editor view.

Looks like all of git is dead. @xoxota99 please provide more insight here as you seems to be the only one having this issue. How about trying with insiders and how about attaching some git logs

@xoxota99 Do you see changes in the SCM view?

Related https://github.com/Microsoft/vscode/issues/60010

Yes, changes are showing up in SCM view just fine. Other than the Explorer view color coding and gutter change indicators, git integration in general seems to be working fine.

I'm fine resolving this as a dupe of #60010 if you like.


Dragging a table in WYSIWYG mode results in a selection constructor error.

Describe the bug
See this bug title.
To Reproduce
Steps to reproduce the behavior:

Go to WYSIWYG Mode
Click on Table
Drag Cell into table
See error

Screenshots
Screencast from 2023년 12월 04일 15시 52분 57초.webm
Desktop (please complete the following information):

OS: Ubuntu, macos
Brave Browser, Chrome

Additional context
I use nextjs 13.5.6

I have same isuue, Is there any solution to fix it?

@spicaofstars Are you also using NextJS?

@spicaofstars Are you also using NextJS?
Use 'use client' to create a client component. Also, disable the SSR option when loading the component.

No, I'm using this on React


Dark mode

Would be really nice if there was a way to change the canvas to white on black. I'm often working in a dark environment and the white canvas strains my eyes.

Sure : )
Press i and paint with shift


How to control which job is managed in idle time?

I would like to report a question about the article https://developers.google.com/web/fundamentals/performance/rail.
In the article, in order to give a delightful experience I'm given the following advice:
Use idle time to complete deferred work. For example, for the initial page load, load as little data as possible, then use idle time to load the rest.
Page Affected:
https://developers.google.com/web/fundamentals/performance/rail#animation
What needs to be done?
I really appreciate the advise to use the idle time to complete a deferred work but it is not clear for me to how to do this? How can I control which job is managed in the idle time or not? Can you provide a link or some more explanation for this?

Good q. I'm not sure. I asked the team for more ideas.

One suggestion that came up is Phil Walton's Idle Until Urgent.

A scheduler might help, too: https://youtu.be/mDdgfyRB5kg


Fix Issue 170

includes changes for #170 #171

needs a lot more work, kind of stalled on this issue


The time when a user RSVPd to an event is now shown on the participats table.

*There is no Github issue attached to this PR
Issue: Since there are events that are first come first serve CELTS needed a way to see when users had RSVPd.
Did: Added a new column to the EventRsvp model and added the RSVP Time column to the participants table which displays the volunteers in the order they RSVPd for that event.
To test:

With a fresh database run the tests and verify they all pass.
Run the application and create a new event in the future that requires an RSVP.
Add users to the participants table and make sure they are appearing in the order they are added.
Wait a minute or two and add another user to the participant table and verify they are added at the bottom of the table.

 The time when a user RSVPd to an event is now shown on the participants table. #796


Refactorizacion relacionada a los Sentidos

Codecov Report

Merging #1 (cf2de3e) into master (d129f69) will increase coverage by 2.73%.
The diff coverage is 67.56%.

@@             Coverage Diff              @@
##             master       #1      +/-   ##
============================================
+ Coverage     76.76%   79.50%   +2.73%
- Complexity       76       82       +6
============================================
  Files            25       25
  Lines           198      200       +2
  Branches         10       10
============================================
+ Hits            152      159       +7
+ Misses           44       39       -5
  Partials          2        2

Impacted Files
Coverage Δ

src/main/java/edu/fiuba/algo3/Norte.java
50.00% <33.33%> (+50.00%)
:arrow_up:

src/main/java/edu/fiuba/algo3/Oeste.java
50.00% <33.33%> (+50.00%)
:arrow_up:

src/main/java/edu/fiuba/algo3/Sur.java
50.00% <33.33%> (+50.00%)
:arrow_up:

src/main/java/edu/fiuba/algo3/Cuadra.java
82.60% <50.00%> (-17.40%)
:arrow_down:

src/main/java/edu/fiuba/algo3/Sentido.java
66.66% <50.00%> (-33.34%)
:arrow_down:

src/main/java/edu/fiuba/algo3/SinSalida.java
66.66% <50.00%> (ø)

src/main/java/edu/fiuba/algo3/Ciudad.java
100.00% <100.00%> (ø)

src/main/java/edu/fiuba/algo3/Cruce.java
100.00% <100.00%> (ø)

src/main/java/edu/fiuba/algo3/Este.java
100.00% <100.00%> (+20.00%)
:arrow_up:

... and 2 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d129f69...cf2de3e. Read the comment docs.


react: fix selected warning

Made a slight change to preserve the default selection (which acts as instructions to the user). See https://github.com/techequitycollaborative/tenantprotections2/pull/85