why the same task has different results for chai1 on the web server and on the local

I fed an octameric helix bundle - the same protein sequence copied 8 times, and a small molecule into the chai1 model's web server and my own locally built version of chai1 - November 16, 2024, but the outputs of the two seem to be very different, and the results generated by the web server are even more what I expected, why is that?
Here are the different results:

From the website server:

From the local:

We can notice a big difference in the position of the small molecules.
Here are the input:

From the website server:

Fasta input from the local:

protein|Copy_1
SAEELLRRSREYLKKVKEEQERKAKEFQELLKELSERSEELIRELEEKGAASEAELARMKQQHMTAYLEAQLTAWEIESKSKIALLELQQNQLNLELRHI
protein|Copy_2
SAEELLRRSREYLKKVKEEQERKAKEFQELLKELSERSEELIRELEEKGAASEAELARMKQQHMTAYLEAQLTAWEIESKSKIALLELQQNQLNLELRHI
protein|Copy_3
SAEELLRRSREYLKKVKEEQERKAKEFQELLKELSERSEELIRELEEKGAASEAELARMKQQHMTAYLEAQLTAWEIESKSKIALLELQQNQLNLELRHI
protein|Copy_4
SAEELLRRSREYLKKVKEEQERKAKEFQELLKELSERSEELIRELEEKGAASEAELARMKQQHMTAYLEAQLTAWEIESKSKIALLELQQNQLNLELRHI
protein|Copy_5
SAEELLRRSREYLKKVKEEQERKAKEFQELLKELSERSEELIRELEEKGAASEAELARMKQQHMTAYLEAQLTAWEIESKSKIALLELQQNQLNLELRHI
protein|Copy_6
SAEELLRRSREYLKKVKEEQERKAKEFQELLKELSERSEELIRELEEKGAASEAELARMKQQHMTAYLEAQLTAWEIESKSKIALLELQQNQLNLELRHI
protein|Copy_7
SAEELLRRSREYLKKVKEEQERKAKEFQELLKELSERSEELIRELEEKGAASEAELARMKQQHMTAYLEAQLTAWEIESKSKIALLELQQNQLNLELRHI
protein|Copy_8
SAEELLRRSREYLKKVKEEQERKAKEFQELLKELSERSEELIRELEEKGAASEAELARMKQQHMTAYLEAQLTAWEIESKSKIALLELQQNQLNLELRHI
ligand|CH4T
O=C(NCCS(=O)(O)=O)CCC1=CC=C(C=C1)N(C2=CC=C(CCC(NCCS(=O)(O)=O)=O)C=C2)C3=CC=C(C=C3)C4=C5C(N=S=N5)=C(C6=NSN=C64)C7=CC=C(C=C7)N(C8=CC=C(CCC(NCCS(=O)(O)=O)=O)C=C8)C(C=C9)=CC=C9CCC(NCCS(=O)(O)=O)=O

@binbinbinv thanks for report, can you also post job_id for server task?

@binbinbinv thanks for report, can you also post job_id for server task?

Sure, but I can not find the job id on the website, so I put the info on this screenshot

@binbinbinv
I assume that you ruled out potential simple reasons (installed from scratch in clean virtualenv).
Here is my guess for you to test: what if you put ligand as first entry in fasta (currently it is last)?

@binbinbinv
I assume that you ruled out potential simple reasons (i.e. installed chai-lab from scratch in clean virtualenv).
Here is my guess for you to test: what if you put ligand as first entry in fasta (currently it is last)?

@arogozhnikov
I tried the method you guessed — put the ligand as the first entry in the FASTA file. However, based on the generated results, only 2 out of 5 ligands ended up in reasonable positions (in the middle of the helical bundle), while the other 3 were still attached to the periphery. I'm curious, would installing it locally via "git clone" make a significant difference compared to using the web server?

Independent suggestion: if you know for sure that ligand is inside, try encoding this info with restraints

I'm curious, would installing it locally via "git clone" make a significant difference compared to using the web server?

I don't expect any difference (unless you use MSAs), so guessing if that's just random variation. Having 3 runs on server vs 3 runs locally would be a more reliable comparison.

@arogozhnikov
I tried several times on the web server. The results showed the ligand in different positions, which seem more like random occurrences. It was just by chance that the first set of five results were all in the middle position. Thanks for your helping.

cool, thx for checking


gzip rsyncable error

I tried running this on some .gz files, and gzip complained about an unrecognized option: rsyncable.
From what I can tell, this option is not generally available in Gzip, and is not present in the official GNU version.

I can confirm that this is not available in the gzip that comes with OSX. However, a workaround is to use Homebrew to install gzip, which does have the --rsyncable option.


Subtask: Add an action (or step of an aciton)  that commits/exports the resulting final.geojson to the final destination (in the repo and or deployed)

Closing since stale


grass: compile with libBLAS

Issue description
some functions related to working with lidar data require blas support
Steps to reproduce
I am using qgis to run grass functions.
nix-shell -p qgis grass python --run qgis
ctrl-alt-t
search for r.in.lidar
run r.in.lidar with input .las file
Technical details

System: (NixOS: nixos-version, Ubuntu/Fedora: lsb_release -a, ...)
Nix version: (run nix-env --version)
Nixpkgs version: (run nix-instantiate --eval '<nixpkgs>' -A lib.nixpkgsVersion)
Sandboxing enabled: (run grep build-use-sandbox /etc/nix/nix.conf)

Thank you.
Did you test that? It seems that grass in nixpkgs has been broken for a while. Any hint about how to fix it is welcome.

@vbgl
Sorry I didn't notice this
It worked on my ubuntu 16.04 machine. I tried again on a centos 7 machine, but it failed complaining about /lib64/libexpat.so. Being impure.
I was able to fix it by hardcoding the location of the nix version of libexpat in its .nix file.

I can link the file tomorrow its not with me right now.

{ stdenv, fetchurl, flex, bison, pkgconfig, zlib, libtiff, libpng, fftw
, cairo, readline, ffmpeg, makeWrapper, wxGTK30, netcdf, blas
, proj, gdal, geos, sqlite, postgresql, mysql, python2Packages, libLAS
}:

stdenv.mkDerivation {
  name = "grass-7.0.2";
  src = fetchurl {
    url = http://grass.osgeo.org/grass70/source/grass-7.0.2.tar.gz;
    sha256 = "02qrdgn46gxr60amxwax4b8fkkmhmjxi6qh4yfvpbii6ai6diarf";
  };

  buildInputs = [ flex bison zlib proj gdal libtiff libpng fftw sqlite pkgconfig cairo
  readline ffmpeg makeWrapper wxGTK30 netcdf geos postgresql mysql.client blas libLAS ]
    ++ (with python2Packages; [ python dateutil wxPython30 numpy ]);

  configureFlags = [
    "--with-liblas=${libLAS}/bin/liblas-config"
    "--with-proj-share=${proj}/share/proj"
    "--without-opengl"
    "--with-readline"
    "--with-wxwidgets"
    "--with-netcdf"
    "--with-geos"
    "--with-postgres" "--with-postgres-libs=${postgresql.lib}/lib/"
    # it complains about missing libmysqld but doesn't really seem to need it
    "--with-mysql" "--with-mysql-includes=${stdenv.lib.getDev mysql.client}/include/mysql"
    "--with-blas"
  ];

  /* Ensures that the python script run at build time are actually executable;
   * otherwise, patchShebangs ignores them.  */
  postConfigure = ''
    chmod +x scripts/d.out.file/d.out.file.py \
      scripts/d.to.rast/d.to.rast.py \
      scripts/d.what.rast/d.what.rast.py \
      scripts/d.what.vect/d.what.vect.py \
      scripts/g.extension/g.extension.py \
      scripts/g.extension.all/g.extension.all.py \
      scripts/r.pack/r.pack.py \
      scripts/r.tileset/r.tileset.py \
      scripts/r.unpack/r.unpack.py \
      scripts/v.krige/v.krige.py \
      scripts/v.rast.stats/v.rast.stats.py \
      scripts/v.to.lines/v.to.lines.py \
      scripts/v.what.strds/v.what.strds.py \
      scripts/v.unpack/v.unpack.py \
      scripts/wxpyimgview/*.py \
      gui/wxpython/animation/g.gui.animation.py \
      gui/wxpython/rlisetup/g.gui.rlisetup.py \
      gui/wxpython/vdigit/g.gui.vdigit.py \
      temporal/t.rast.accumulate/t.rast.accumulate.py \
      temporal/t.rast.accdetect/t.rast.accdetect.py \
      temporal/t.select/t.select.py
    for d in gui lib scripts temporal tools; do
      patchShebangs $d
    done
  '';

  postInstall = ''
    wrapProgram $out/bin/grass70 \
    --set PYTHONPATH $PYTHONPATH \
    --set GRASS_PYTHON ${python2Packages.python}/bin/${python2Packages.python.executable} \
    --suffix LD_LIBRARY_PATH ':' '${gdal}/lib'
    ln -s $out/grass-*/lib $out/lib
  '';

  enableParallelBuilding = true;

  meta = {
    homepage = http://grass.osgeo.org/;
    description = "GIS software suite used for geospatial data management and analysis, image processing, graphics and maps production, spatial modeling, and visualization";
    license = stdenv.lib.licenses.gpl2Plus;
    platforms = stdenv.lib.platforms.all;
  };
}

I checked it out. the libexpat issue was with a different package. The grass package works on my centos 7 machine as is.

Can this issue then be closed? (Due to #39027)

Yes


[Pick](bitmap index) fix is_like_predicate for bitmap index evaluate

Proposed changes
Pick from #25961

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall


Some nodes report errors

VS2022 is installed and C++ Desktop Development is checked.
I installed Visual C++ Redistributable Packages separately
There will still be errors. The error report reads as follows

Error occurred when executing [Comfy3D] Convert 3DGS to Mesh with NeRF and Marching Cubes:
Could not locate a supported Microsoft Visual C++ installation

I don't want to take up your valuable time, but I really can't find a solution. I'm seeking your help.

It's been resolved.
Most of the node functions can be implemented with miniconda。
Workaround:
Error when executing [Comfy3D] Convert 3DGS to Mesh using NeRF and Marching Cubes:
1.installation using chocolatey
2.choco install -y visualstudio2022buildtools
3.choco install -y visualstudio2022-workload-vctools --package-parameters "--add Microsoft.VisualStudio.Component.VC.Llvm.ClangToolset --add Microsoft.VisualStudio.Component.VC.Llvm.Clang"
4.Add system variables：G:\AI\ComfyUI_M\python_miniconda_env\ComfyUI\Lib\site-packages\ninja\data\bin


Add SharingStatus Documentation

Add SharingStatus Documentation for the new property being added to CheckFileInfo. SharingStatus is a new property that will allow you to understand if users other than the document owner have access to the file.

Add SharingStatus Documentation for the new property being added to CheckFileInfo. SharingStatus is a new property that will allow you to understand if users other than the document owner have access to the file.


Broken order of setting and checking environment variables

Compiler version (qx compiler --version): 1.0.0-beta.20191015-0937
Tl;dr: creating and initializing of environment variables happens after test of their existence.
How did I get it:  I develop a web client based on OPC UA protocol and use qooxdoo for this goal. For that i took already existed "node-opcua"a library written on typescript, implemented web sockets, did some extra changes and created a bundle "node-opcua" with "browserify" and "babelify". Then I put the resulting script aka bundle to qooxdoo project. I tested this bundle without qooxdoo for browser and like separate nodejs application. There is no any error. Then I debugged the code of qooxdoo application and in bind function of external library node-opcua I stepped into qooxdoo implementation of function bind but in separate application without qooxdoo this was native code. The "qooxdoo " bind is a static method of class qx.lang.normalize.Function which has "defer". In this construction I see the next code:
if (!qx.core.Environment.get("ecmascript.function.bind"))  { Function.prototype.bind = statics.bind; } .
In overall the method "get" of Environment class checks existence of "ecmascript.function.bind" as key in internal map and doesn't find it. If there is this key then the method calls function which really check if "bind" exists and is function. After this I started to look for place in code where the map fills up (initializing) by variables. And put traces there. What I've got the next order:

defer of qx.lang.normalize.Function: test of the variable "ecmascript.function.bind".
defer of qx.bom.client.EcmaScript: qx.core.Environment.add("ecmascript.function.bind", statics.getFunctionBind)

What I've done to fix this problem for me and my task temporarily: In generated file part-boot-bundle-1.js commented the line if (!qx.core.Environment.get("ecmascript.function.bind")) in defer of normilize.Function.

Could you provide a small example? I tried to reproduce with my own projects - there is defer of qx.bom.client.EcmaScript running first.

@hkollmann what sort of examples should I provide?
I added traces in 2 "defer"s. And with debuger i stepped into the qooxdoo "bind" implementation in the next example of code.
qx.Class.define("qxdemo.Application",
{
extend : qx.application.Standalone,
members :
{
main : function()
{
this.base(arguments);
if (qx.core.Environment.get("qx.debug"))
{
qx.log.appender.Native;
qx.log.appender.Console;
}
this.g(this.f.bind(this));
},
g: function(f){
    f();
},

f: function(){
  console.info("bind");
}

}
});
Maybe a cause of the problem is different software which I use.
I do the next:
$ mkdir qxdemo
$ cd qxdemo/
$ npm i @qooxdoo/compiler @qooxdoo/framework
$ npx qx create qxdemo --out . --type desktop --noninteractive
$ npx qx serve

when i installed packages i got:

npm WARN<EMAIL_ADDRESS>No description
npm WARN<EMAIL_ADDRESS>No repository field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY<EMAIL_ADDRESS>(node_modules/qxcompiler/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for<EMAIL_ADDRESS>wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

My system is :
qxdemo uname -a  Linux goldim 4.19.0-5-amd64 #1 SMP Debian 4.19.37-3 (2019-05-15) x86_64 GNU/Linux
cat /etc/debian_version   10.0
qxdemo chromium --version Chromium 73.0.3683.75 built on Debian buster/sid, running on Debian 10.0


Transport Backpressure support

Similar to Java https://github.com/getsentry/sentry-java/blob/main/sentry/src/main/java/io/sentry/transport/QueuedThreadPoolExecutor.java
The idea is that events get queued up to X number and dropped if the limit gets exceeded, so we don't overload the app's main isolate if they capture events very fast in a tight loop.

We should do it to avoid issues when calling e.g. captureException in a tight loop, since it returns a Future and the throwable is not serializable, we cannot offload the event pipeline in a different pipeline, we could tho try to use a counter and bailout if the queue is exceeded.

Consider doing https://github.com/getsentry/sentry-dart/issues/536 as well

Closed by #1868


fix: Back Button on Register Pages Redirect

Which Problems Are Solved

If a user visits a register page without first visiting a login page, the authReqID is null. If a user clicks the back button on one of the register pages, it would not render the loginName page without an authReqID.
No back button on register org page.
Register button on the login page only goes to the register user page. Added ability to go to the register org page.

How the Problems Are Solved

Updated the register page back button links to point to the { loginUrl }  if no authReqID is present. If there is an authReqID, it's passed to the loginName page.
Added back button to the register org page.
In the Default/Org Settings, there are 2 checkboxes. One for User Registration allowed and one for Organization Registration allowed. The current functionality ties the visibility of the register button on the login page to the User Registration allowed checkbox. I've updated the visibility and link of the button to the following:

If both boxes are checked, the register button is displayed and links to the user register page. (Matches existing functionality)
If user registration is checked and the organization register is not checked, the register button is displayed and links to the user register page. (Matches existing functionality)
If the organization register is checked and the user register is not checked, the register button is displayed and links to the register org page. (New functionality. Previously register button was not displayed.)
If neither boxes are checked, the register button is not displayed. (Matches existing functionality)

Additional Changes
None
Additional Context
Closes #8554 and #8620.

Hey @gwoodbridge thanks for the PR!
The back button fix LGTM. Even though you tried to reduce the impact from the org registration to existing users as much as possible, we would love to postpone this. Discussed this internally and we some more challenges (some current scenarios might still be affected and IdP registration might need to be considered, ...)
If you remove those changes, we can at least merge the fix for the back button.

Hei @gwoodbridge
Did you see the comment of @livio-a, do you still work on this?


chore: Allow array matching

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)

What is the current behavior? (You can also link to an open issue here)

What is the new behavior (if this is a feature change)?

Other information:

@nklomp
Does this make sense for supporting the following PD?
         "constraints": {
            "fields": [
               {
                  "path": [
                     "$.type",
                     "$.vc.type[*]"
                  ],
                  "filter": {
                     "type": "string",
                     "pattern": "Woonplaatsverklaring"
                  }
               }
            ]
         }
         ```
         The value of "$.vc.type[*]" is an array

0: "VerifiableCredential"
1: "Woonplaatsverklaring"

Or should this have been working differently?

Probably that whole expression needs to be something more like
path: [ '$.vc.type' ],             filter: {               type: 'array',               contains: { const: 'TypeToSearchFor' }             }


Write dask arrays with 64bit indptr

Alternative to #1262 with a test
TODO:

[x] Make sure SparseDataset.append throws as error if overflow would happen
[x] Test that dask arrays always write 64 bit
[x] Remove current test (since it will crash CI due to high memory usage)

[x] Closes https://github.com/scverse/anndata/issues/1261, https://github.com/scverse/anndata/issues/1356
[x] Tests added
[x] Release note added (or unnecessary)

I don't really understand what's going on with the coverage reports. I think test_append_overflow_check is pretty specific to those lines.

Also, not clearing the cached property led to segfaults during comparisons. I see why this would be an error, I don't see why this would be a segfault. But now we avoid it, so not sure any further action is needed.

I've pushed a commit that I think should address most points

Why can't we check the dtype of the group directly?

Initially because we needed the value anyways, so figured why not just use that. Now I use this, since I'm getting the nnz value from len(indptr)

Is there a reason not to do this via the cached property?

We don't actually need to read the whole indptr for this operation. So I figure'd I'd keep avoiding that if possible.


Replaced curies should not be literals

Mondo term (ID Label)
MONDO:0004589
N.A.  replaced  terms do not keep labels
Bug/Typo/Error description
replaced term is expressed as as string in the form of a curie instead of a curie
<http://purl.obolibrary.org/obo/MONDO_0004589>
    <http://purl.obolibrary.org/obo/IAO_0100001>
      "MONDO:0019118"^^<http://www.w3.org/2001/XMLSchema#string> .

Your nano-attribution (ORCID)
orcid.org/0000-0003-0355-5581

Noting I suspect there may be 1,614 occurrences of
<URI>  <term replaced by> "literal"^^<http://www.w3.org/2001/XMLSchema#string> .

in the current release.

I'm reassigning to @matentzn as this is a technical issue not a biological one
Let me try and restate to see if I understand:
Currently Mondo is consistent in how it uses IAO_0100001, with values being:

A string literal containing a CURIE
An untyped literal containing a CURIE
A URI/rdf resource

If we look at other ontologies we see another options - eg FOODON uses URIs with anyURI literals.
Unfortunately there is no global consensus across OBO on how to use IAO_0100001. Achieving this consensus is outside the scope of Mondo. This is complicated by the behavior of obo2owl conversion (alt_ids in particular)
For now, tools should be written to be robust in the face of this variability. We could write something that normalizes the mondo output to one of the above forms, but this is not guaranteed to be consistent with all ontologies.

Noting that  Github (actions?) made the original issue assignment and attributed it to the issue author.
Mondo is indeed consistent and has no instances where the new/replacing term is anything but a literal, I should have added that I checked for this.
Indeed adjusting  IAO:0100001 to suggest or recommend  that
    Use on obsolete terms, relating the term to another term that can be used as a substitute"

implies the two representations of "term" ought to be compatible in a machine setting is clearly not Mondo's problem.
Mondo could however be a shining example of reason and not opt for the least helpful representation just because it is not forbidden.

Closing in favour of https://github.com/INCATools/ontology-development-kit/issues/642
this has to be solved for all ontologies at once.


Add Python binary build support for Heroku-24

This adds support for building Python binaries for Heroku-24 using GitHub Actions. Since the Heroku-24 base image supports both amd64 and arm64 (to allow for multi-arch CNBs), for Heroku-24 (only) we now also build binaries for both architectures.
A later PR will add support for Heroku-24 to the buildpack itself, however, that depends on (a) the Python binaries already having been built, (b) the Heroku build system for Heroku-24 being ready, so those changes are not being made yet.
GUS-W-15571102.

Builds generated using:
for v in 3.12.{0..3}; do
  gh workflow run build_python_runtime.yml -F "python_version=${v}" -F "stack=heroku-24"
done

(I'll re-run these once Ubuntu 24.04 is GA and the base images refreshed with the final libs versions)


Somtimes during update, the file download stalls without exiting

When I try to update, sometimes the download stalls without exiting the process.
$ t2 update -f
INFO Looking for your Tessel...
INFO Connected to oogie-boogie over LAN
INFO Updating oogie-boogie to latest version (0.0.4)...
INFO Beginning update download. This could take a couple minutes..
  downloading [==============      ] 70% 0.3s remaining

Expected
The T2 should error out of the update if the download stalls for too long.

Ah yes, we definitely should. Good find!

What we need for this issue is a timeout that gets reset each time we get a packet of data from the build server and cleared when the update finishes downloading. I think a stall time of ~10 seconds is reasonable.

This file looks like the right place to start: https://github.com/tessel/t2-cli/blob/master/lib/update-fetch.js


feat: Add 'bv_div_unsafe' to support 'bv / bv' expressions.

This is useful when encoding LLVM IR semantics into FStar, where we are only concerned about partial correctness in the cases where the denominator is nonzero. Thus, we introduce a new 'bv_div_unsafe' operations, with both operands as bitvectors, along with a soundness axiom which asserts that 'bv_div_unsafe' behaves as 'bv_div' when the denominator is nonzero.
We add a 'bv_div_unsafe' lowering in the smt2 encoding that mimics 'bv_div'.

Hi @bollu, wondering if this really a useful model to represent UB. For instance, at the F* level, bv_div_unsafe 1 0 is just a value, and equal to itself, so unless there's something I'm not seeing, using bv_div_unsafe for your semantics would mean the semantics guarantees that dividing by 0 is determinisitic, which is likely not what you want?

Thanks Sid!


Update PR descriptions after commit reordering

Fixes #277
I'm not sure how useful this is. It seems to work but I have next to zero experience w/golang. I also wasn't sure if there was a good facility in place to test this... I looked at the existing TestSPRReorderCommit but it seems the mock github client isn't really set up to verify on the passed in github.GItHubInfo

Rebased onto latest master and fixed a bug related to not accounting for "WIP" commits during sorting

This still has a problem I'll describe:

Create 2 commits, A -> B
Run git spr update -> 2 PRs are opened A -> B (B is top of the stack)
Create commit C so that local looks like A -> B -> C
git rebase -i and reorder so that local looks like C -> A -> B
Run git spr update -> 2 PRs are updated, 1 is created, but the description has B as the top of the stack still
Run git spr update again, description is fixed

I need to update this so that step 6 is unnecessary. I will do that soon

@ejoffe I've updated this PR with the following changes:

Rebased onto latest master
Fixed the the problem described above
Switched to what I believe is a simpler, more idiomatic approach (but feedback is very welcome!)

Thanks!

Change looks good. Thank you!
Keep me posted on the merge queue feature, and if it works well for you.

Released in v0.12.2


Warning about client's chef_vault_secret resource overriding cookbook's chef_vault_secret

I don't understand why it is happening? During my chef-client run on a node:
[2020-09-06T04:47:55+02:00] WARN: Resource chef_vault_secret from the client is overriding the resource from a cookbook. Please upgrade your cookbook or remove the cookbook from your run_list.

I upgraded chef-vault cookbook to 4.0.3, chef-server is 13.2.0, chef-client is 16.x and this is still happening. The cookbook that is in the run_list for this node contains depends chef-vault in metadata.rb and include_recipe 'chef-vault' in a recipe. Resource chef_vault_secret is used only in cookbook chef-vault on my chef-server, nowhere else. How and where this resource on the client might be overriding resource from a cookbook? Seems like a bug for me.

Hi @grdz ,
I am also facing the similar issue. Can you let me know the resolution if the issue is fixed ?

@RahulVenchal I figured out that this is because new versions of chef-client already contain chef_vault_secret. And so, there is no need to provide this resource in chef-vault cookbook. Because chef_vault_secret resource is defined both in chef-client and in chef-vault cookbook, that's why the error is happening. So I removed resource chef_vault_secret from chef-vault cookbook on my selfhosted Chef server, by doing:
rm cookbooks/chef-vault/resources/secret.rb
knife upload cookbooks/chef-vault

Keep in mind that I am using chef-vault cookbook version 4.0.3 and chef-client version 16.1.0. If you have nodes with lower version of chef-client, that does not include chef_vault_secret and does not generate the error about resource being overridden, then it might be problematic. Because then removing this resource from chef-vault cookbook might break your recipes which are using vaults, on nodes with this lower version of chef-client.

Thanks for the Update @grdz . I am trying to upgrade chef  to 16.9.29 version so yeah i will have to remove secret.rb resource from chef-vault cookbook. Also i am seeing below WARN's , do you happen to came across these aswell ?
[2021-02-04T01:51:32-06:00] WARN: Resource hostname built into Chef Infra Client is being overridden by the resource from a cookbook. Please upgrade your cookbook or remove the cookbook from your run_list.
[2021-02-04T01:51:32-06:00] WARN: Resource chef_client_scheduled_task built into Chef Infra Client is being overridden by the resource from a cookbook. Please upgrade your cookbook or remove the cookbook from your run_list.
[2021-02-04T01:51:32-06:00] WARN: Resource user_ulimit built into Chef Infra Client is being overridden by the resource from a cookbook. Please upgrade your cookbook or remove the cookbook from your run_list.
[2021-02-04T01:51:33-06:00] WARN: OS is lower than 7.4 and CPU does not support rdrand, or node is a VM, skipping rngd config.

@RahulVenchal no, unfortunately I did not found those WARNs on my nodes. Probably because I am not using cookbooks that you're using and that are causing these warns. But I would guess that the reasons of those warnings are similar. You probably have cookbooks which include resources like hostname, and chef_client_scheduled_task or user_ulimit and might try to remove those resources, because it seems like new version of chef-client already have those resources built-in.
I do not understand the last warn, about OS being lower than 7.4.


How to Collect Payment?

Hello,
I installed the php version of "login-and-pay-with-amazon-sdk-samples" (SampleCartDemo > OneTimePayments) and it seems to work fine (sandbox).
I can see the transactions in my amazony pay account (orders):
Total: 19.95
Charged: 0.00
All transactions are successfull but no real charge has be done.
I have to click on "Collect Payment" at any transaction in order to charge/get the amout from customer. But I do not want to do this manually.
How can the php code be changed/extended so that all transactions are charged/collected directly within the php code (e.g. in ConfirmPaymentAndAuthorize.php)?
Thank you.

There are several different workflows that you could use.
The simplest to implement is to set the $requestParameters['capture_now'] line in Apicalls/ConfirmAndAuthorize.php to true (instead of false).
Setting capture_now to true will attempt to collect payment at the same time as the authorization.  This is generally only recommended for digital goods.  The best practice for physical goods is to perform the capture of funds immediately prior to shipping the goods to the buyer.
Try that and let us know if it works.

As per bjguillot's comment, if you are selling physical goods, you may want to capture funds prior to shipping the goods. Below code sample is something you can add on your end.
This demonstrates Auth and Capture call-
// If the API call was a success make the Authorize API call
if($client->success)
{
$requestParameters['authorization_amount'] = '1.00';
$requestParameters['authorization_reference_id'] = 'Your Unique Reference Id';
$requestParameters['seller_authorization_note'] = 'Authorizing payment';
$requestParameters['transaction_timeout'] = 0;
$response = $client->authorize($requestParameters);
$responsearray['authorize'] = json_decode($response->toJson());

}
// If the Authorize API call was a success, make the Capture API call when you are ready to capture for the order (for example when the order has been dispatched)
if($client->success)
{
$requestParameters['amazon_authorization_id'] = 'Parse the Authorize Response for this id';
$requestParameters['capture_amount'] = '1.00';
$requestParameters['currency_code'] = 'USD';
$requestParameters['capture_reference_id'] = 'Your Unique Reference Id';
$response = $client->capture($requestParameters);
$responsearray['capture'] = json_decode($response->toJson());

}
You can find the above code here- https://amzn.github.io/login-and-pay-with-amazon-sdk-samples/simple.html
Steps- Please login with your test account and click place order. Scroll down to see the sample API calls in PHP.

Thank you.
If have set capture_now to true and now it works fine.
And yes, I have digital goods.

OK, great.  I'll go ahead and close your issue then.  Thanks for using Amazon Pay.

One additional question:
After capture has be done I want to close the order. But I can't find any CloseOrderReference() function call in your example code "SampleCartDemo" - "OneTimePayments".
Can you tell me where in the source code of your example code and how to close the order?
Thank you.

Below I have pasted some PHP example code to close an order reference.  It assumes that your $client is ready and that $orderReference has your S0n-xxx-xxx or P0n-xxx-xxx order reference.
    $configArray = [
            'amazon_order_reference_id' => $orderReference,
            'closure_reason' => 'For Merchant use only, never shown to buyer'];
    $response = $client->closeOrderReference($configArray)->toArray();
    if ($response['ResponseStatus'] != 200)
            print "Error Occurred!\n";
    else
            print "Order Reference Closed\n";

Thank you.
Where can I put this code into? ConfirmPaymentAndAuthorize.php?


Active Effects

The core system has started ramping up its usage of active effects and modules like DFred's Convenient Effects have gained in popularity pretty dramatically lately.
It would be excellent to have a display of effects with the basic controls to remove/deactivate them on the sheet.

Yes, this is something I'll include when I revisit the feature sorting and sections system. I need to separate Bonus Actions out as well, and probably make some changes to how spell casters are handled too.


Implement the go-to form for DocService debug page

Fixes #653
Motivation

In a server which serves a large number of methods, it takes time to go methods in debug page.

Modification

Add<EMAIL_ADDRESS>dependency on docs-client for auto selection
Convert docs specification into suggestion model
Put the go-to input on the rightmost side of the AppBar

Result

We can access any of the methods, structs, enums, and exceptions quickly
by using auto-complete or up-down key navigation.

Here is a screenshot for the feature :-)

@ikhoon Could you also run yarn licenses generate-disclaimer --prod > ../licenses/web-licenses.txt to update the disclaimer?

Could you rebase? I've just updated the front-end dependencies. (#1819)

I have dealt with

Rebase master branch
Update disclaimer
Implement to limit default to 100, filtered things to 20.

Thanks, @ikhoon and welcome to the team! 🚀


chore(frontend): Recreate backend types in FE

Motivation
We want to use the new endpoints introduced #1743 in the frontend.
In this PR, I recreated the types for the JS client with npm run generate and also used one of the types in the userProfileStore.
Changes

Changes in .did files and related done with npm run generate.
Change the type of userProfileStore to the UserProfile from the generated files.
Change the faked user profile in requestPouhCredentials.

Tests
Not necessary. No new functionality added, only some types (that are not used yet) have changed.

@peterpeterparker @AntonioVentilii-DFINITY please review


Unable to set http_proxy config on Rancher notifier

What kind of request is this (question/bug/enhancement/feature request):
bug
Steps to reproduce (least amount of steps as possible):

Create a slack notifier from Rancher server. (The notifier type is arbitrary)
Edit any alert  and set the alert to the notifier created in the previous step; wait for cattle-alertmanager resources to deploy in the current cluster context.
Edit the alertmanager secret and add the proxy URL under: global.http_config.proxy_url; alerts will work temporarily, but this is not a permanent nor a working solution.

Result:
alertmanager secret is reverted and alert send fails.
Other details that may be helpful:
Alertmanager configures http proxy in config exclusively. http_proxy, https_proxy, etc environment is not supported in the current version of alertmanager by design.
See:
https://github.com/prometheus/alertmanager/issues/853
https://github.com/prometheus/alertmanager/pull/1222
https://github.com/prometheus/alertmanager/issues/1300
Alertmanager does not support multiple configuration files. A custom configuration file mounted is not an option.
See:
https://github.com/prometheus/alertmanager/issues/1150
To support http proxies, we need to allow users to configure `http_config.proxy_url per alert and/or at the global level or do something more generic like parameterize an empty http_config map for each alert.
See
https://prometheus.io/docs/alerting/configuration/
Environment information

Rancher version: 2.1.6
Single and HA installation

gzrancher/rancher#5198

 slack_configs:
 - channel: application
   send_resolved: true
   text: "{{ range .Alerts }}{{ .Annotations.description }}\n{{ end }}"
   http_config:
     tls_config:
        insecure_skip_verify: YES
     proxy_url: http://proxy:8080

Please add insecure_skip_verify in tls_config as well. For some unknown reason, one of the environment I have need to skip tls in order to work around problem.

@aiwantaozi When we fix this issue, we have to make sure it is respected by all the notifiers, including the webhook

Need a flexible option please, Ie proxy setting for selected notifiers.

@alena1108 Hi Alena, backend pr will be ready today, then we going to integrate with UI. http_proxy could be added to slack, pageduty, webhook, wechat, except email, alertmanager doesn't allow to set smtp proxy.

Was able to reproduce and see the workaround working.
rancher/rancher:v2.2.5-rc1

Create custom cluster with no access to internet

apt-get and docker configured to use proxy
only allow outbound traffic through proxy and to rancher-server in node security group

Without modifying any settings, create a notifier and alerts
Alerts are not sent.
Edit alertmanager secret in System project to use http_proxy in notifier config
Alerts are successfully sent

The bug fix is validated on rancher/rancher:master-head 259cfa71

Deployed Rancher behind a proxy
Created custom cluster behind a proxy
Tested notifier without proxy URL  --> Test failed
Tested notifier with proxy URL --> Test passed
Created alerts and saw them sent successfully through the proxy

Proxy setup is seen on all notifiers except for e-mail.

sorry to dig this up, but is it available on v2.2.3?

I think it is in 2.2.5 but 2.2.5 has air gap installation issue.

After adding the below entry in secret alertmanager.yml. The entry is getting overwritten
It will go back to automated structure created by rancher monitoring
slack_configs:

channel: application
send_resolved: true
text: "{{ range .Alerts }}{{ .Annotations.description }}\n{{ end }}"
http_config:
tls_config:
insecure_skip_verify: YES
proxy_url: http://proxy:8080

@Hkavya1215 Can you provide more information about your setup?  What is the rancher version you are using?
Is the alert manager/ monitoring redeployed/upgrade?  The secret will be overwritten in those two cases as I know.

@jiaqiluo i am using Rancher version: 2.4.5
I have enabled monitoring in Rancher and also i have created notifier, which in tern created the alertmanager secrets and many more other configurations. I am trying to edit the alertmanager secret which is auto created.
After I edit and close the alertmanager.yml and notification.tmpl, if there is any change in alerts the configuration files in alertmanager secrets are getting overwritten.

I have not redeployed or upgraded


Usable as a library

It would be great if this was usable as a library to aide in creating the setup necessary for integration tests or possibly end to end testing.

So, the aim was to make it useable as a library - you should be able to import it and use it like the cmd executable does.
But, this feature is underserved, and there is probably a cleaner API I could have to make working with it better.
Are there any specific bugs at this moment preventing you from using it as a lib?

https://github.com/StabbyCutyou/moldova/blob/master/cmd/moldova/moldova.go
Could you take a look here, and let me know what you think a better pattern would be?

I'm gonna close this due to inactivity. If you're still having problems running as a binary, please re-open with more details.


/tmp files don't get cleaned up properly

The problem

app.pl leaves behind two files in /tmp after running
htmlify.pl6 leaves behind several thousand files if perl is killed before it finishes. Your OS may not be able to clear /tmp on boot when this happens because there are too many files to pass to rm

Suggestions

I'm working on a fix for the first issue
Maybe a tmp dir should be made in the repo when running htmlify.pl6 and removed after the script has finished. This would make removing files on SIGINT/SIGTERM a matter of just catching the signal and removing the entire directory

The change was recently made it to htmlify And it’s relying on the module to remove the files when it’s done we can easily remove them as we go. I’ll Put that back tomorrow.

If your fixed is better, just toss mine out.

Yours is better. I was unlinking them after copying instead

That comment was all comments; the unlink causes the build to break. (another version with closing the handle before the unlink also breaks the build.

So how's this going now? I'm kinda of confused. app.pl deletes its files, htmlify.p6 does not.

... there were two complaints. one is fixed; the other is not. You can see my attempt in the commits above that had to be backed out because they broke the build.

Ref #1823


issue 103: Hotfix for linting addon check

i don't know how to check for linting addons, but this commit will fix issue 103

Fixed on master, thank you for the quick PR.


Expo authentication using next-auth

Can I use the existing next-auth configuration to handle authentication for the expo app? I don't wanna use any service like clerk, supabase, etc.

right now it is just with external services it seems

I believe we're still waiting on authjs/next. Keep an eye on these PRs.
https://github.com/nextauthjs/next-auth/pull/5240
https://github.com/t3-oss/create-t3-turbo/pull/133

Is there any workaround except external services?

In one of my projects I did a little bit of funkiness but not sure on the security etc. Can't remember exactly how I did it but something along the following:

Used expo oauth to get all details of google login, send token and other details to a custom mobile login endpoint
Generate unique device ID stored in expo securestore
check the provided token using google api (This is good enough for me to allow them access), make real account if not an existing user
Manually created a new session I think, and a new mobile session object that contains that session, unique device ID that will be bound to that session and provided on every call I think?
added to the default nextauth prisma adapter to do session logic, think I maybe added some middleware in to facilitate there being now 2 auth objects

Haven't touched this project in a while, can't remember it well, but have a play around with your next auth adapter which will be a drizzle one now I think? haven't used t3 in a while so things will probably have changed.

on PR#720 how to use with credentials?


Panic if new component added to JSON file

registry-proxy was added in this release, but when I naively added it to my local JSON components mapping, deisrel errored:
$ deisrel ~/.helmc/workspace/charts/workflow-v2.2.0/tpl/generate_params.toml comps.json
panic: interface conversion: interface {} is nil, not map[string]interface {} [recovered]
	panic: interface conversion: interface {} is nil, not map[string]interface {}

goroutine 1 [running]:
panic(0x46ea80, 0xc8200fb3c0)
	/usr/local/Cellar/go/1.6.2/libexec/src/runtime/panic.go:481 +0x3e6
github.com/deis/deisrel/vendor/github.com/urfave/cli.HandleAction.func1(0xc8200e9ad8)
	/Users/matt/Projects/src/github.com/deis/deisrel/vendor/github.com/urfave/cli/app.go:476 +0x417
panic(0x46ea80, 0xc8200fb3c0)
	/usr/local/Cellar/go/1.6.2/libexec/src/runtime/panic.go:443 +0x4e9
github.com/deis/deisrel/components.CheckVersions(0xc8200f61e0, 0xc8200f67b0, 0xc820108360, 0x0, 0x0, 0x0, 0x0, 0x0)
	/Users/matt/Projects/src/github.com/deis/deisrel/components/components.go:35 +0xa01
main.main.func1(0xc820112000, 0x0, 0x0)
	/Users/matt/Projects/src/github.com/deis/deisrel/main.go:90 +0x9db
reflect.Value.call(0x3b8a60, 0xc8200f2150, 0x13, 0x500228, 0x4, 0xc8200e9a38, 0x1, 0x1, 0x0, 0x0, ...)
	/usr/local/Cellar/go/1.6.2/libexec/src/reflect/value.go:435 +0x120d
reflect.Value.Call(0x3b8a60, 0xc8200f2150, 0x13, 0xc8200e9a38, 0x1, 0x1, 0x0, 0x0, 0x0)
	/usr/local/Cellar/go/1.6.2/libexec/src/reflect/value.go:303 +0xb1
github.com/deis/deisrel/vendor/github.com/urfave/cli.HandleAction(0x3b8a60, 0xc8200f2150, 0xc820112000, 0x0, 0x0)
	/Users/matt/Projects/src/github.com/deis/deisrel/vendor/github.com/urfave/cli/app.go:485 +0x2ee
github.com/deis/deisrel/vendor/github.com/urfave/cli.(*App).Run(0xc82010c000, 0xc820062180, 0x3, 0x3, 0x0, 0x0)
	/Users/matt/Projects/src/github.com/deis/deisrel/vendor/github.com/urfave/cli/app.go:244 +0xb05
main.main()
	/Users/matt/Projects/src/github.com/deis/deisrel/main.go:134 +0x5f1
$ cat comps.json
{
  "builder": ["builder"],
  "controller": ["controller"],
  "dockerbuilder": ["dockerbuilder"],
  "fluentd": ["fluentd"],
  "monitor": ["influxdb", "grafana", "telegraf"],
  "logger": ["logger"],
  "minio": ["minio"],
  "nsq": ["nsqd"],
  "postgres": ["database"],
  "redis": ["loggerRedis"],
  "registry": ["registry"],
  "registry-proxy": ["registry_proxy"],
  "router": ["router"],
  "slugbuilder": ["slugbuilder"],
  "slugrunner": ["slugrunner"],
  "workflow-manager": ["workflowManager"]
}

Running the same command against the workflow-dev chart does not cause an error since registry_proxy is in there, but then we can't see the previous semver tags, just canary.
In a perfect world, deisrel would handle this case by printing something like:
registry_proxy  (not found) -> v1.0.0 (dirty)
	registry_proxy has unrelased changes. See https://github.com/deis/registry-proxy/compare/v1.0.0...master

Should be a simple fix. I'm on it!


Copy composer vendor folders

Hi,
I have created a task that checks if vendor folder exists to copy it to new release instead of downloading everything again. If you think that this is useful tell me and I ll do a pull request.
task('copy_vendors', function () {
    $current_vendors = env('deploy_path') . '/current/vendor';
    if(file_exists($current_vendors)) {
        run("cp -ar $current_vendors {{release_path}}");
    }
})->desc('Copy vendor folder if already exists');

Hi! How this speed ups deploys?
Note what composer itself caching vendor, so it's does not download it every time.

True, but when you have for example 118 packages (this is my case :))  and no one is install then composer will have to go one by one and get them from cache and that requires more time against copying the existing vendor directory and then composer installing only what is required.
Not copying vendor folder from current release, deployer took:
real	0m47.409s
user	0m19.889s
sys	0m5.653s

Copying vendor folder from current release, deployer took:
real	0m19.326s
user	0m12.878s
sys	0m3.183s

@achristodoulou

If copy, when project require new package (change composer.lock), it wont be download.
In your task, file_exists is check on local machine, but run is running remote machine. :-1:

During development you add a new package to your composer.json, run composer update and then commit your changes including composer.lock. When u run composer install in production it will read your packages from composer.lock correct? If so the new package will be download.
2.True I am running this on localServer

During development you add a new package to your composer.json, run composer update and then commit your changes including composer.lock. When u run composer install in production it will read your packages from composer.lock correct? If so the new package will be download.

Your deploy task look like?
task('deploy', [
     // ...
     'deploy:copy_vendors',
     'deploy:vendors',
     // ...
]);

Yes, actually is like this.
before('deploy:vendors', 'copy_vendors');

Anyway, the initial idea was to optimize the deployment procedure on localServer, so if by copying vendors will not do any harm I am ok with this. And as you can see in my previous post, the execution time is about half :)

Fyi, after checking the existing recipes I found out that in common.php there is a task called "deploy:copy_dirs" which is doing the same thing as I have suggested, is just more generic.

Can you write a docs for it?

Are you referring to the existing task in common.php 'deploy:copy_dirs', if that so, yes I can update doc in https://github.com/deployphp/docs/blob/master/recipes.md accordingly.

Yes, it will be nice :)

Created pull request
https://github.com/deployphp/docs/pull/52


[WIP] Inspector Sidebar Views

Description
Added template views of the inspector side views.
Checklist (for drafts):

[x] I read and understood the contributing guide as well as the code of conduct
[x] My changes generate no new warnings
[x] My code builds and runs on my machine
[ ] Review requested

Screenshots (if appropriate):

@lukepistrol I'm aware of all the errors still present it is currently still a draft I will add functionality to the git history today and some functionality for the file inspector.

@nanashili What is the status of this PR?


Formatter doesn't combine strings

before:
    (
        ""
        ""
    )

after:
    ("" "")

expected
    ("")
    # OR
    ""

related: #6936

I'll merge this with #6936


PyPlot color argument bug

I tried to figure this out myself, but couldn't.  @stevengj I'm hoping you'll have a quick answer.  Similar to https://github.com/tbreloff/Plots.jl/issues/145 I can't seem to plot a series with the same number of points as the color tuple I'm passing in.  Here's a simple example:
import PyPlot
PyPlot.scatter(1:3, rand(3), c = (0, 0.2, 1), s = 900)

Instead of plotting 3 points all with the same color, it plots 3 points with different colors seemingly pulled from a "blues to reds" colormap.  The important part from the matplotlib docs:

Note that c should not be a single numeric RGB or RGBA sequence because that is indistinguishable from an array of values to be colormapped. c can be a 2-D array in which the rows are RGB or RGBA, however, including the case of a single row to specify the same color for all points.

I thought: "All I need to do is make it a matrix!"  However, all of these versions give exactly the same result:
... c = [0, 0.2, 1] ...
... c = Vector[[0, 0.2, 1]] ...
... c = [(0, 0.2, 1)] ...
... c = [0 0.2 1] ...
... c = Matrix[[0 0.2 1]] ...

Any ideas?  Thanks.

I dunno, but scatter(1:3, rand(3), c = ((0,0.2,1),(0,0.2,1)), s = 900) works for me (i.e. repeating the color twice is enough).   Does anything work in Python?

I was playing around with this and i discovered that using a RGBA value works
using PyPlot
scatter(1:3, rand(3), c=(0, 0.2, 1, 1), s=900)

Did you try it in Python?

Yes the bug exists in python as well.

If the bug exists in Python, then it should be reported upstream to Matplotlib.


WIP: support css preprocessors

#600

[ ] support auto-select preprocessor when config with {}
[ ] do not compile the preprocessor's code without config
[ ] test cases for other options under css field

@PeachScript @fz6m
You can review a portion first and review in batches.

Maybe it should be refactored.


Add SEMEION Dataset

A very simple but useful dataset:
http://archive.ics.uci.edu/ml/datasets/semeion+handwritten+digit

looks good. The Lint checks are failing: https://travis-ci.org/pytorch/vision/jobs/297989549
If you fix those, this is good to merge.

thank you!


python3Packages.doq: init at 0.9.1

Description of changes

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
22.11 Release Notes (or backporting 22.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[ ] Fits CONTRIBUTING.md.

Hi @v1kko, I am also interested in adding doq, are you still interested in this PR?
I would like to help with the review in a small way.


[5.7] Fix(tester): TestResponse assertExactJson does not work for empty JSON objects

Solved the problems mentioned in #25960 and #25769.
After the old decodeResponseJson directly operates on the response content json_decode($content, true), it is impossible to tell the difference between empty object and empty array.
$data = [
    'a' => new class {}
];

var_dump(json_encode($data));
var_dump(json_decode(json_encode($data), true));
var_dump(json_decode(json_encode($data)));

result:

string(8) "{"a":{}}"
array(1) {
  ["a"]=>
  array(0) {
  }
}
object(stdClass)#4313 (1) {
  ["a"]=>
  object(stdClass)#4315 (0) {
  }
}

Therefore, if we want to distinguish between empty object and empty array, we need to change the second parameter $assoc to false.
But that's not compatible with the logic that preceded it. The assoc array is resolved to stdclass.
So. for compatibility, I have json_decode($data, true) and json_decode($data, false); Only get json_decode($data, false); The empty object inside is thus compatible with the previous logic, and the bug is fixed.

I still have no idea what your method is doing. Give it a descriptive name and docblock.

@taylorotwell

poke...

poke @taylorotwell


how to use on server/form actions endpoints?

i don't see a way how this can currently be used on server endpoints in an easy way. i am having the locale in the path like "/en/my/page" so i could theoretically create a new instance and use it. but if there is a better approach i am all ears

mhm okay this actually works. i wasn't aware i can access the page store on the server. but i guess you shouldn't really and that this is not guaranteed to be in sync to the users locale.
import { page } from '$app/stores';
import { get } from 'svelte/store';

const login: Action = async ({ cookies, request,locals,url }) => {
console.log(get(page).t)
.....


Add vSphere remotemachineset actuator

[x] Add vSphere remotemachineset actuator
[x] Add unit tests
[x] Manually test against real vmware cluster

This PR is dependent on PR https://github.com/openshift/hive/pull/975 and must merge after.
Fixes: #714

Blocking until PR #975 is merged.
/block

/hold
Blocking until PR #975 is merged.

/retest

/retest

@staebler I believe I've addressed your feedback. PTAL.

/retest

@dgoodwin @staebler I've rebased and I believe I've addressed all of your feedback. PTAL.
/hold cancel

@staebler Thanks for the feedback. I believe I've addressed the feedback. I also manually tested this against vsphere and the functionality worked as expected. PTAL.


Copy p.Services to pi.Services in mentix

When testing Reva with Mentix in the ScienceMesh, I found that without this, the services struct is missing and an error is thrown.

The IsProviderAllowed is supposed to just check that a given provider is allowed, not have some side effects.
Where did you get the error? The problem might be somewhere else...

Here are all current usages of the IsProviderAllowed API:

From HTTP interceptor middleware:
https://github.com/cs3org/reva/blob/605cec43f46ebef9846f50041dcf82af5027b138/internal/http/interceptors/providerauthorizer/providerauthorizer.go#L86-L99

From HTTP OCM AcceptInvite handler
https://github.com/cs3org/reva/blob/14c9c5f8cfd4c78bb108d6f6cb5469c440f097ec/internal/http/services/ocmd/invites.go#L84-L101

From HTTP OCM CreateShare handler
https://github.com/cs3org/reva/blob/14c9c5f8cfd4c78bb108d6f6cb5469c440f097ec/internal/http/services/ocmd/shares.go#L111-L127

In case of 1., you can see no services are passed into the check as part of ProviderInfo struct - probably the better way would be to provide it in input where IsProviderAllowed is called?

provide it in input where IsProviderAllowed is called

[no] need to re-check IsProviderAllowed in 2.,3.

Good points, I think both make sense!

provide it in input where IsProviderAllowed is called

[no] need to re-check IsProviderAllowed in 2.,3.

Good points, I think both make sense!

Since the last changes to the ocmd service, all the exposed endpoints are unprotected. This means that the providerauthorizer interceptor is always skipped, making it useless.
So the checks in 2 and 3 are still need.

Agreed on avoiding side effects. Also copying data from p to pi is dangerous because it might influence the check and give a false match. Let's see how we can do this better.
The problem is that it's failing to look up the ocm host of p which is from a.providers.
This is unrelated to the pi that is passed into the function.
I'll debug the getOCMProviders function, apparently it's not successfully reading in the json?


SRVKP-3134: more return original pipelinerun vs. nil on patch

Changes
more potential SIGSEGV fixes I believe we missed in https://github.com/openshift-pipelines/pipelines-as-code/pull/1309
Submitter Checklist

[/] ♽ Run make test before submitting a PR (ie: with pre-commit, no need to waste CPU cycle on CI. (or even better install pre-commit and do pre-commit install in the root of this repo).
[/] ✨ We heavily rely on linters to get our code clean and consistent, please ensure that you have run make lint before submitting a PR. The markdownlint error can get usually fixed by running make fix-markdownlint (make sure it's installed first)
[n/a] 📖 If you are adding a user facing feature or make a change of the behavior, please verify that you have documented it
[n/a] 🧪 100% coverage is not a target but most of the time we would rather have a unit test if you make a code change.
[n/a] 🎁 If that's something that is possible to do please ensure to check if we can add a e2e test.
[n/a] 🔎 If there is a flakiness in the CI tests then don't necessary ignore it, better get the flakyness fixed before merging or if that's not possible there is a good reason to bypass it. (token rate limitation may be a good reason to skip).

thanks


Proxy calls should return status

Get use_proxy, use_tor, and launch_tor to return status, so that we have visibility on whether the network calls work or not.

Fixed by #118


[MB-6010] create model for Rand McNally data

Description
In order to integrate the Rand McNally database table (zip3_distances) with the GHC Planner, we need a model for the RM data. I used this Rand McNally doc to create the struct for the data model
Set Up
Confirm that the server test in ./pkg/models are passing.
References

Jira story for this change
Rand McNally Data Doc used as a basis for determining the schema

Messages

:book:
:link: MB-6010

  Generated by :no_entry_sign: dangerJS against d27f89bcd86182756632852dbcca51ac38d5f40d


How use this framework in Objective-C Project?

I want to use this framework in my Objective-C Project. Please can you give me sample code to use this in objective-c ? i need it urgent.

@qasimmehboob
Sorry, this library currently support only Swift. All of functions can't be called from Objective-C.
If want to use from Objective-C, I have to renovate this library overall.

@sgr-ksmt
Thank you for reply.
I was able to generate single page pdf using code from this link ([ http://ipdfdev.com/2011/04/22/convert-an-image-to-pdf-on-the-iphone-and-ipad/]. The problem in this code was it is not generate multi page pdf so i want to use your framework for multi page pdf.
But with little effort and little modification in code i generated multi page pdf with same code from above link. So now code is working for me. But anyway thanx for your urgent reply. your framework is good in future may be i use this in my new swift app. :)


Add --includeAxe flag to nx-playwright generator

Problem
This PR adds the ability to generate AXE (accessibility) tests when running the nx-playwright generator.
--includeAxe flag can be included when running the generator:
pnpm nx generate @mands/nx-playwright:project <APP-NAME>-e2e --project <APP-NAME> --includeAxe

This will result in:

addition of an axe target in project.json
generation of apps/<APP-NAME>-e2e/axe.config.ts: where URL paths can be added to be tested for accessibility issues
generation of apps/<APP-NAME>-e2e/axe-tests/axe-tests.spec.ts: where the AXE tests are defined
addition of axe-playwright as a devDependency

Useful documentation

Contributing guidelines

I can approve this. Before I do (and maybe get another pair of eyes to review), my question:
Do we also need to update the section Add new e2e test app too under: https://github.com/DigitalInnovation/onyx/blob/main/onyx-docs/docs/how-to/mono-repo/nx-generators.md
assuming axe-tests should be generated alongside e2e tests.

Not sure. I worked under the assumption that adding AXE testing is an optional feature so it made more sense to leave the --includeAxe out of the example. But I don't feel strongly about it. It all depends on the direction that we want this library to take.

I can approve this. Before I do (and maybe get another pair of eyes to review), my question:
Do we also need to update the section Add new e2e test app too under: https://github.com/DigitalInnovation/onyx/blob/main/onyx-docs/docs/how-to/mono-repo/nx-generators.md
assuming axe-tests should be generated alongside e2e tests.

Not sure. I worked under the assumption that adding AXE testing is an optional feature so it made more sense to leave the --includeAxe out of the example. But I don't feel strongly about it. It all depends on the direction that we want this library to take.

It looks like this is specific to a private repository so best to move this discussion elsewhere?


[Proposal] Develop a tool to generate "evil"/edge case datasets for OpenSearch

This proposal has been significantly modified as of 11/5. The original proposal can be expanded at the bottom of this post. Note that comments before 11/5 refer to the original proposal.

Is your feature request related to a problem? Please describe.
The behavior of ElasticSearch/OpenSearch changes between versions in ways both intentional (new features or datatypes, deprecated features) and unintentional (bugs). These changes impact upgrades and the decisions users make around them.
It would be useful to have a dataset that intentionally probed edge cases and behavior changes and could be used to verify the behavior of various versions and in various situations. As an example of how we would use this dataset: we could upload it to a cluster, run a series of queries, migrate/upgrade the cluster, and re-run the queries to ensure that the behavior has stayed the same (or changed only in expected ways).
This would be a living dataset—there will be many cases relevant to future versions of OpenSearch that we're not aware of today.
Describe alternatives you've considered
The backwards compatibility tests (especially the Full Cluster Restart tests) use some randomized testing data (source), including a few that seem targeted towards specific edge cases (e.g. the "field.with.dots" field name), but they're quite small and limited. Additionally, they largely don't focus on edge cases and there's no concept of behavior changing across versions.
The other related material I've found is the OpenSearch Benchmark Workloads. Per my understanding, this a collection of datasets with accompanying operations—index, update, aggregations to run, etc. The datasets seem to cover a broad list of realistic usecase scenarios, and are therefore interesting, but tailored to a different purpose. None of them seem to intentionally target the edge cases of interest in this case.
A previous version of this proposal suggested that datasets should be randomly generated with the option to test scale or performance related limits. In this version, the initial suggestion has been scaled down to focus specifically on edge cases that are specifically reproducible.
Describe the solution you'd like
I'd like to create a library of data "points" that can be used independently or together to
Each datapoint (not necessarily a single document) would be a directory that contains one or more of:

a bulk-upload formatted JSON file that contains the relevant data and is used to index it
a query (TODO: details on formatting here?) that exercises the behavior in question
an expected result for the query (the answer key). There could be multiple expected results for different versions or other situations.
a README.md that explains in human-friendly terms what's being tested and under what conditions the expected result is actually expected.

Datapoints would generally create and use their own index to prevent interference between various tests. This also allows it to be hard-coded into the bulk json file and the query.
Phase 0:
Data points are created with data & queries to illustrate known bugs, features, and API changes. They are run manually by a user (documentation provided) for each use case the user is interested in and the actual query result can be compared to the expected result.
Phase 1:
A "runner" script is added that can take a list of test cases, run them all, and show which did not give the expected result.
Phase 2:
Test cases can be tagged with specific versions or areas of interest (e.g. test cases for a specific plugin) and the runner script can select all datapoints meeting a specific use case.
After phase 1, this has a large amount of potential overlap with the future of #24 and the validation framework, so I haven't attempted to extrapolate too far down the path of what comes next.
Original Proposal
Is your feature request related to a problem? Please describe.
I (and my team) would like to make use of a consistent dataset for testing on OpenSearch that emphasizes edge cases--in our case, this would be very helpful for testing migrations and upgrades. While there are plenty of sample datasets out there (some mentioned below), our hope for this one is that it's a fairly comprehensive dataset that can capture intentional or unintentional differences in behavior in various settings, such as different versions.
A few categories we're aware of wanting to test: all currently existing data types, cases where dynamic field mapping behavior has changed, cases where new data formats were added, cases that approach the size limits for each field type, anywhere bugs have been fixed in various versions for ingestion or storage of specific field types. We're expecting to find more as we go and would love suggestions.
This would be a living dataset—there will be cases relevant to future versions of OpenSearch that we're not aware of today.
As an example of how we would use this dataset: we could upload it to a cluster, run a series of queries, migrate/upgrade the cluster, and re-run the queries to ensure that the behavior has stayed the same (or changed only in expected ways).
Describe alternatives you've considered
The backwards compatibility tests (especially the Full Cluster Restart tests) use some randomized testing data (source), including a few that seem targeted towards specific edge cases (e.g. the "field.with.dots" field name).
The other related material I've found is the OpenSearch Benchmark Workloads. Per my understanding, this a collection of datasets with accompanying operations—index, update, aggregations to run, etc. The datasets seem to cover a broad list of realistic usecase scenarios, and are therefore interesting, but tailored to a different purpose. None of them seem to intentionally target the edge cases of interest in this case.
I haven't come across other similar datasets, but would love to be pointed in their direction if they exist.
Describe the solution you'd like
Requirements for the dataset:

The dataset covers a large—approaching comprehensive—set of data types and test cases.
The datset is available in multiple sizes—in many cases a small number of documents (~1k?) is enough to use as testing data, but there are particularly migration/upgrade use-cases where we'll be curious about the performance with large sizes (hundreds of gigabytes into terabytes).
There is a set of queries and expected responses matching the dataset. Some of these will be along the lines of "how many times does 'elephant' occur in a given field" and others will be more like "what is the inferred field mapping for field X".
(optional) The "width" of the dataset (as opposed to the number of documents) can be reduced — a user can request a dataset that only has "basic" fields, without testing all edge cases. Or, similarly, a user can request only cases that test dynamic field mapping behavior or those that are relevant to a specific plugin.
(optional) The data is available in multiple export formats—csv, a json-like document ready for bulk upload, or piped directly to a cluster.
It is fairly simple to add a new field to the generator.

Given the requirements outlined above, it seems more feasible to create a script to randomly generate appropriate data on demand than a fixed dataset.
With this approach in place, there's a 7th requirement:

Following the pattern of the OpenSearch tests, a predictable dataset can be generated by providing a seed value. If not provided, the data will be random and the seed will be returned to the user.

The user can provide (likely via a CLI) their requirements. For an MVP, this is probably just the number of documents (or total size of data) and an optional seed. Future iterations could accept the set of fields to include (requirement 4 above) and the output format (requirement 5).
Setting aside input and export related functionality, the core of this script would be very similar to libraries like faker.js/python faker that generate realistic fake data, and looking into their architecture may be helpful. For some specialized fields, it's possible that leveraging one of these libraries could be useful.
In the code, there needs to be a mapping between fields and functions to generate appropriate data. Many of these will be very basic—random alphanumeric string, random int, etc. with some more complicated ones (e.g. ip ranges or data that satisfies a specific edge case). Adding a new field to the dataset will require creating the generator function and adding it to the mapping with the field name.
For each field that's added, there also may (or may not) be 1/ one or more queries associated with the field (and their expected values), and 2/ an index field mapping entry.
It's possible that for some types of queries ("how many times does 'elephant' occur"), the randomized data is a poor match. As we encounter these cases, I think having a second, static dataset would be helpful. Adopting the benchmark workloads might be a good fit for this use case.
Specific Questions

Does this (or something substantially similar) already exist?
Would you, as a potential user of this script/dataset, have additional requirements for it?
Pointers/feedback/thoughts on proposed solution?

Thank you all for your feedback, this has been really helpful.
Addressing one clarification point first from @lewijacn 's comment:

This tool would be able to generate a dataset (with particularly “evil” data) that we would expect to potentially cause a change in behavior/output when upgrading with a particular current OS version to a target OS version. This dataset could then be provided for users to test on their own test cluster. [...] Concerning a set of queries and expected responses, is this something that would be valuable to a user or would it be mainly for say our own automated testing in OS?

Yes, I think the queries are going to be an integral part. Some issues might pop up from just indexing the dataset, but a lot more of the issues are going to be queries that break or data that is interpreted as a different type, for instance. Users won't be aware of these issues unless 1/ they're already running extensive tests and very proficient at looking into this (in which case, this might not benefit them much) or 2/ we provide them with the queries and the "answer key" to know what they should expect to see.

On to some of the other points, this is my summary of some of the common threads I see in the feedback.

This proposal attempts to solve a lot of problems at once through multiple mechanisms. Break both the problems and the solutions down into smaller pieces that can be designed, tracked, built, tested and used independently.

One of these is the matter of being a library of edge cases vs. a comprehensive dataset, with strong feedback towards being a library of edge cases.
Another is performance-related use cases vs. pure edge cases. I like Kartik's point here about focusing on consistently reproducible cases.

Carefully consider the overlap with the backwards compatibility tests from the perspective of not duplicating what they're already doing.
There's a lot more work to be done in terms of defining the data model that allows:

each edge case/issue to be its own test (necessary data + query), and
datasets/tests to be granular and composable.

Do you feel like that captures the bulk of your points?
I'm working on an updated proposal that slims this down to a much narrower first deliverable that emphasizes providing the minimum necessary data and queries to illustrate each issue, while focusing purely on edge cases. This will likely start as a purely static dataset, where the only axis of configurability is selecting which tests to include.

I've updated the proposal in the top comment to reflect the feedback and suggest a significantly different course. Please take a look and provide feedback on the new proposal.


Recording in landscape

Works as intended already.

I approve it doesn't work as it should be. Please add a horizonal-landscape switch to the left of Record button inside app that toggles video's x and y resolution which will be recorded.

I recorded a video in landscape, but the video is in portrait mode, like this:
|==========|
|                      |

Video

--------------------

==========


add search took in ElasticsearchEvent

Add search took in ElasticsearchEvent
Fix CurlMulti decorator

:+1:

There is no tests ?

:+1: should be nice to have some (even basics) tests

:+1: at least a test on the "regex voodoo" would be nice :wink:

Great work :+1:

@omansour @mikaelrandy could you do a last review ?

:+1:

:+1: @mguillermin


create_point_space() does not create a "PS" group.

Is it the expected behavior ?

Closed by 812f468a02015e65144f1cce7d5ce9cdcceeda72


Check spelling in the CHANGELOG

Fixes #292

Let's merge this next week since as soon as we merge we'll need to merge the spell fixes 😬


UI Branding and formating adjustments

Check out these links
https://carbondesignsystem.com/guidelines/typography/overview/
https://carbondesignsystem.com/guidelines/typography/type-sets/

@albert118 this PR is redundant -> #107


v4 - no exported member QueryClient - with pnpm in a typescript monorepo

Describe the bug
I've already opened an issue which has been closed : https://github.com/TanStack/query/issues/5203
But there is an issue. The issue is inside a monorepo with pnpm.
The QueryClient was available in v3. Switching to v4 I have the error : TS2724: '"@tanstack/react-query"' has no exported member named 'QueryClient'. Did you mean 'useQueryClient'?
But it's still there in the doc : https://tanstack.com/query/v4/docs/react/reference/QueryClient#queryclient
Trying to switch to useQueryClient
const queryClient = useQueryClient();
or const queryClient = useQueryClient({});
I have the error TypeError: Cannot read properties of null (reading 'useContext')
But reading the doc : https://tanstack.com/query/v4/docs/react/reference/useQueryClient , "Otherwise, defaultContext will be used."
Your minimal, reproducible example
no sandbox
Steps to reproduce
I created a monorepo with pnpm. I have two NextJS v13 apps inside : noumaios and themis.
install tanstack-query v4 inside noumaios with pnpm.
the tsconfig.js file has the option preserveSymlinks set to true (it builds without errors when preserveSymlinks is set to false).
try to build noumaios with pnpm build, and then the build can't complete and finish with the error '"@tanstack/react-query"' has no exported member named 'QueryClient'. Did you mean 'useQueryClient'?
See the screenshots below.
Expected behavior
the build should pass without errors.
How often does this bug happen?
None
Screenshots or Videos

Platform
MacOS 11.6
Mac M1
NextJS v13
Tanstack Query adapter
None
TanStack Query version
v4.29.1
TypeScript version
v5.0.4
Additional context
No response

opening a new issue with screenshots doesn't help though. What we need is a standalone reproduction. I said the same thing in the issue you linked to:

So you have to provide a reproduction please. Feel free to reopen if you can isolate the issue.

Now we have two issues with no reproduction 🤷 .
Just FYI, pnpm v8 has changed peerDependency resolution, which was one of the pain-points. Not sure which version you are using...

opening a new issue with screenshots doesn't help though. What we need is a standalone reproduction. I said the same thing in the issue you linked to:

So you have to provide a reproduction please. Feel free to reopen if you can isolate the issue.

Now we have two issues with no reproduction 🤷 .
Just FYI, pnpm v8 has changed peerDependency resolution, which was one of the pain-points. Not sure which version you are using...

All the steps are detailed in order to be able to reproduce the problem. What can I do more to explain how to reproduce the issue ???
What the point of being able to include screenshot on a Github if you say that it doesn't help ???
I use pnpm v8, the latest version.

ok.
It's probably a peerDependency resolution conflict with typescript.
Thank you.

so does that mean you tried to re-create an isolated reproduction and it worked?

As I explain in the "steps to reproduce" section in this issue, I created a test monorepo to isolate the issue as shown on the screenshots. And I explained that when preserveSymLinks in tsconfig.json is set to true, there is the issue, still with pnpm v8. As you told me that peerDependcy resolution with pnpm was a pain point, I assume that the issue has probably something to do with the typescript symbolic links resolution and the pnpm symbolic links resolution.


Allow enable-chn.yml to be a no-op during Image Customization

Summary and Scope
To facilitate adding enable-chn.yml into default bootprep automation files for NCNs, allow enable-chn.yml to be a no-op during CFS Image Customization
Issues and Related PRs

Resolves CASMNET-2085

Testing

lemondrop

Tested an image build using sat bootprep. The additional CFS layer shows up in the image build, but it is skipped. Checked all three NCN image builds (kubernetes-worker, kubernetes-master, storage):
Running enable_chn.yml from repo https://api-gw-service-nmn.local/vcs/cray/csm-config-management.git

PLAY [Management_Worker:!cfs_image] ********************************************
skipping: no hosts matched

...

Running enable_chn.yml from repo https://api-gw-service-nmn.local/vcs/cray/csm-config-management.git

PLAY [Management_Worker:!cfs_image] ********************************************
skipping: no hosts matched

...

Running enable_chn.yml from repo https://api-gw-service-nmn.local/vcs/cray/csm-config-management.git
[WARNING]: Could not match supplied host pattern, ignoring: Management_Worker

PLAY [Management_Worker:!cfs_image] ********************************************
skipping: no hosts matched

Risks and Mitigations
The risk is that hpc-csm-software-recipe is updated before this change to csm-config is in place. To mitigate that, hpc-csm-software-recipe will not be updated until a CSM build is available that contains this change.
Pull Request Checklist

[x] Version number(s) incremented, if applicable
[x] Copyrights updated
[x] License file intact
[x] Target branch correct
[x] CHANGELOG.md updated
[x] Testing is appropriate and complete, if applicable
[x] HPC Product Announcement prepared, if applicable

@Cray-HPE/cray-management-systems could I get 2 reviews so I am able to get this PR moving into a CSM release?


.py file for single image inference

Thank you so much for releasing this, I can't wait to try it on my own data. Are you planning to release a py script for single image inference?

This issue is no longer active in 20 days, as such I'm closing this. Feel free to ask if you have further questions.


Issue with docking compass on webview

Hi Nick, firstly - awesome docking framework ... Love it!!! Soooo much better than AvaloniaDock :)
I did notice something though ... If you put a webview control (CefGlue) as a DockItem ... and then try to drag another document on top of it ...the compass does not show or is partly hidden ...My guess is that you do not use an adorner for the compass and the webview is occluding it ...
Do you think you can have a look? Or if you point me in the right direction I can create a PR for you...
Here is a screen shot of what I'm talking about...I would expect to see a compass here (above the webview control) ... note also the cut off edge compass...
thanks again for awesome work...
Kerrigan.

Hey Kerrigan,
Thank you for your good words about the UniDock! It is very nice to feel appreciated :)
Please, star the UniDock repository and if you have any friends who use it and like it, ask them to star it also.
yes, this is probably the issue. It is best for the compass to be not even an adorner but a separate semi-transparent window so that it will not be blocked even by the dragged panel. I'll be having several days off before the new year so perhaps I'll try to work on it.
Regards,
Nick

Ah, sweet! What a nice xmas present :) ...Definitely starred it and will let others know ....have a good one...

I think I fixed it. Please, try the latest version of UniDock.

Hi Nick, i can confirm this now works with web browser controls. Thank you very much (especially for quick turnaround)!! Awesome stuff...

Great pleasure!


Base Repo OOMs on Fly.io

Have you experienced this bug with the latest version of the template?
yes
Steps to Reproduce
Clone the repo and follow the README all the way through the Fly.io deployment steps.
For the Postgres create step, choose the Development - Single node, 1x shared CPU, 256MB RAM, 1GB disk configuration.
Link the DB to the app, etc.
When finally committing and pushing, the Deploy action fails with exit code 137.

Expected Behavior
I would expect the base Blues Stack to be able to deploy on the Fly.io free tier, especially as it is heavily documented and encouraged in the docs.
Actual Behavior
Deploy fails with out of memory error.

I have attempted a paid plan, but without running machines I can't rescale the apps.  I think starting over completely and choosing a higher configuration (multiple CPUs, 4GB RAM) may solve, but if that's the case it should be documented, and I'm not sure how that affects pricing on Fly.io.

Stuck on this as well...
Is the memory update applicable to the DB machine or the website machine?

I've had success by setting the following in `fly.toml
[deploy]
  release_command = "bash ./scripts/migrate.sh"

where the script looks like
#!/bin/bash

fallocate -l 512M /swapfile
chmod 0600 /swapfile
mkswap /swapfile
echo 10 > /proc/sys/vm/swappiness
swapon /swapfile
echo 1 > /proc/sys/vm/overcommit_memory
npx prisma migrate deploy

related: https://community.fly.io/t/prisma-sqlite-causes-an-out-of-memory-error-on-deploy/11039

hmm, I'm seeing OOM again on a fresh app:
<--- Last few GCs --->
  [324:0x67f6850]     8687 ms: Mark-sweep (reduce) 252.9 (258.2) -> 252.7 (258.9) MB, 108.9 / 0.0 ms  (+ 47.4 ms in 15 steps since start of marking, biggest step 14.1 ms, walltime since start of marking 169 ms) (average mu = 0.555, current mu = 0.284) alloc[324:0x67f6850]     8889 ms: Mark-sweep (reduce) 253.7 (258.9) -> 253.7 (259.9) MB, 197.1 / 0.0 ms  (average mu = 0.335, current mu = 0.026) allocation failure; scavenge might not succeed
  <--- JS stacktrace --->
  FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
   1: 0xb9a330 node::Abort() [npm exec prisma migrate deploy]
   2: 0xaa07ee  [npm exec prisma migrate deploy]
   3: 0xd71ed0 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [npm exec prisma migrate deploy]
   4: 0xd72277 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [npm exec prisma migrate deploy]
   5: 0xf4f635  [npm exec prisma migrate deploy]
   6: 0xf61b0d v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [npm exec prisma migrate deploy]
   7: 0xf3c1fe v8::internal::HeapAllocator::AllocateRawWithLightRetrySlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [npm exec prisma migrate deploy]
   8: 0xf3d5c7 v8::internal::HeapAllocator::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [npm exec prisma migrate deploy]
   9: 0xf1db40 v8::internal::Factory::AllocateRaw(int, v8::internal::AllocationType, v8::internal::AllocationAlignment) [npm exec prisma migrate deploy]
  10: 0xf155b4 v8::internal::FactoryBase<v8::internal::Factory>::AllocateRawWithImmortalMap(int, v8::internal::AllocationType, v8::internal::Map, v8::internal::AllocationAlignment) [npm exec prisma migrate deploy]
  11: 0xf[178](https://github.com/seve/pathos/actions/runs/8670333042/job/23778237725#step:5:179)68 v8::internal::FactoryBase<v8::internal::Factory>::NewRawOneByteString(int, v8::internal::AllocationType) [npm exec prisma migrate deploy]
  12: 0x1057999 v8::internal::JsonParser<unsigned short>::MakeString(v8::internal::JsonString const&, v8::internal::Handle<v8::internal::String>) [npm exec prisma migrate deploy]
  13: 0x10596b6 v8::internal::JsonParser<unsigned short>::ParseJsonValue() [npm exec prisma migrate deploy]
  14: 0x105a19f v8::internal::JsonParser<unsigned short>::ParseJson() [npm exec prisma migrate deploy]
  15: 0xdf7983 v8::internal::Builtin_JsonParse(int, unsigned long*, v8::internal::Isolate*) [npm exec prisma migrate deploy]
  16: 0x1710839  [npm exec prisma migrate deploy]
  ./scripts/migrate.sh: line 9:   324 Aborted                 npx prisma migrate deploy


QT: Scenario test - mobile

As a candidate I want to complete a scenario test so that I can demonstrate my skills and progress my application for a new role

We need to build out the screens for scenario tests across mobile (Desktop version on #450).
Check #450 for Data model.
We will need a few new components / pieces of functionality including:

Word count on a text area (the same as desktop version)
Accordian (with scroll, perhaps?)
Button / toolbar pinned to bottom of screen on mobile

Initial visual for mobile / small screen:

@Rebecca-mcknight1991 we might not want to implement all of this. Please review.


New Publish Navigation

Context
A new navigation pattern has been prototyped and user tested, we are implementing the navigation bar here.
Changes proposed in this pull request

Add new feature flag new_publish_navigation. All of the below will only be seen if the feature flag is activated.

Add navigation bar

Redirect to courses index page

Mimic the same logic which was in play for the providers show page

Duplicated spec for ease of deletion once the feature flag is removed.

TBD: How do we want this to work with rollover
Guidance to review

Activate the flow locally, by adding to development.local.yml

features:
  new_publish_navigation: true

Navigate to an accredited body and notice how you are taken to the course page and have the Training partners link.
Navigate to a non accredited body and notice how you are taken to the course page and do not have the Training partners link.

Screenshots
Accredited body

Non accredited body

@simonwhatley Just wanted to check - for the new nav (and based on what i’ve seen in some other services), shouldn’t the nav sit right under the top header and in between the beta message?
Prototype currently has it the other way round:

@simonwhatley Just wanted to check - for the new nav (and based on what i’ve seen in some other services), shouldn’t the nav sit right under the top header and in between the beta message?
Prototype currently has it the other way round:

@darokel the nav should sit below the beta banner.

Also I think the background colour of the nav should span across the whole page? eg:

Also I think the background colour of the nav should span across the whole page? eg:

Design notes:

the thin blue line below the black bar spans the full viewport width
the background grey of the primary navigation spans the full viewport width
if the user is in a single org, the thin grey line below the beta banner is removed

Thanks @darokel. I'll make the other changes as part of new cards


Customize text in buttons?

Is it possible to customize the text in buttons?
For example replace Cancel with Clear?

Sorry, this package doesn't support currently, but it's a good idea, I will add this feature ASAP, thanks


update-postgis-columns inserts code at top of the file

Running the command on a model with geometry columns in the database but no $postgisColumns inserts code at the top of the file outside of the class:
<?php

    protected array $postgisColumns = [
        'geog' => [
            'type' => 'geography',
            'srid' => 4326,
        ],
    ];

    use HasPostgisColumns;

This only happens when $postgisColumns is not present on the model. When $postgisColumns is present the column definitions are inserted correctly.
In other cases the command prompts to change code that is the exact same as the proposed code.

Oh good catch sorry for the inconvenience, and thanks for filing the issue 👍

Theoretically the array should be added below any traits or the line with class YourModel extends Model .....
Can you show me the beginning of your model file? With the same formatting etc?

This feature will be removed in 2.x anyway.
So we will close this issue for now :)
Thanks for your report!


corrected some surveys

Thanks @IanEisenberg ! I'm also going to update these in their (respective individuals repos) and I'll re-push the vanessa/expfactory-surveys container. Also keep a look out for illegal characters in these files - the biggest issue I had with converting the survey.tsv were a bunch of non ascii characters (eg, the "..." character, "fi" and quotes and commas) that likely came from copy pasting from some internet place.

Changes look good, LGTM, feel free to merge (or add more). I've fixed v2 branches as well!


Error log printed when publishing an API

Following log is printed in console when publishing an API
[2019-09-23 10:07:46,124] ERROR - APIMappingUtil Unrecognized state : null
No effect to the functionality.

duplicate https://github.com/wso2/product-apim/issues/6291


Email notifier failing silently

Email notifications fail, no indications of failure in output.

fixed in 2.0.11


Fly Config Files

:bulb: Description

:hammer_and_wrench: Type of change

[ ] :bug: Bug fix (non-breaking change which fixes an issue)
[x] :gift: New feature (non-breaking change which adds functionality)
[ ] :boom: Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] :book: This change requires a documentation update

:microscope: How Has This Been Tested?

[ ] Test A
[ ] Test B

Codecov Report

Merging #21 (2b6355d) into dev (c229139) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##                dev      #21   +/-   ##
=========================================
  Coverage     84.29%   84.29%
  Complexity       41       41
=========================================
  Files            23       23
  Lines           121      121
=========================================
  Hits            102      102
  Misses           19       19

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Can't add a SPFx Web Part to a classic page in Chrome

Category

[ ] Question
[ ] Typo
[X] Bug
[ ] Additional article idea

Expected or Desired Behavior
A user should be able to add a web part to a classic page in Chrome, even when you have many Web Parts in a same category.
Observed Behavior
In a certain scenario when you have a Category contains more than 12 Web Parts(classic and SPFx),  the Add and Cancel button are invisible on the ribbon of a classic page. The user can add any Web Part in that category to the page.
This only happens in Chrome, both IE and FF work.
Steps to Reproduce

create more than 12 Web Parts (in my case, I have 14, 7 classic and 7 SPFx) and put them in the same test category;
deploy all WPs to SP Online;
use Chrome to create a wiki page;
edit the page and display the Insert Web Part ribbon;
click the test category and try to add a Web Part;
You will find both Add and Cancel buttons disappear, so you have no way to add a Web Part from that test category.

When comparing with other categories, you can find that the toolbar which contains the add button is actually pushed down by the Web Part panel. Seems that the Web Part panel increases its height in order to display all Web Parts in two columns. In IE and FF, the panel arranges Web Parts in 3 columns and a scrollbar is displayed.

This issue seems to be fully already fixed long time ago, so closing this. Please open a new issue if there's any similar issues at the service, so that we can track the issue accordingly. Thanks for helping us on improving our services.


code changes on LTA task

Hi!
I see a significant performance increase from Host_5075_Team (Slowfast-trf v1) to Host_5075_Team (Slowfast-trf v2) on LTA challenge leaderboard. Could you provide the code or hparams changes? Thanks!

No code changes here! The model is re-trained on the expanded v2 dataset (test set is the same). See relevant announcement here.

Thanks for your answer!
Are the provided LTA checkpoints pretrained on the v1 dataset or v2 dataset?


Template Question

Hey,
Can you tell me how to edit the template that is sent to MS Teams for example adding an external link - Is there a JSON template I can edit to include this?
I compared it to the Prom2Teams project where I was able to find the template, but I was not able to find it in this one. Can you point me in the right direction please.
Kind regards,
Laura

@FewMagner Currently, the "template" (the card format) is hard coded. See here. I based this format from the teams card spec.
What do you mean by adding an external link? If you want to add a hyperlinked text to an alert card you can use labels.
See the example alert rule below with jenkins_link label. You have to ensure to set USE_MARKDOWN=true to enable markdown rendering.
- name: containers
  rules:
  - alert: jenkins_down
    expr: absent(container_memory_usage_bytes{name="jenkins"})
    for: 30s
    labels:
      severity: critical
      jenkins_link: [access jenkins here!](http://jenkins.example.com)
    annotations:
      summary: "Jenkins down"
      description: "Jenkins container is down for more than 30 seconds."

Thank you @bzon.
That works perfectly - appreciate it :)

Awesome! I’m closing this issue now.