apache and wireguard-ui  config

/etc/apache2/sites-available/wg.conf
Header always sets Cache-Control to “no-cache”
# Proxy pass settings for the backend server
ProxyPass /wireguard http://<IP_ADDRESS>:5000
ProxyPassReverse /wireguard http://<IP_ADDRESS>:5000
  # Rewrite the Set-Cookie header for the domain name and path
  ProxyPassReverseCookieDomain /wireguard http://<IP_ADDRESS>:5000
  ProxyPassReverseCookiePath /wireguard http://<IP_ADDRESS>:5000

  Error log ${APACHE_LOG_DIR}/wireguard.error
  CustomLog ${APACHE_LOG_DIR}/wireguard.access combined

ErrorLog /var/www/web-logs/wireguard-logs/error.log
LogLevel warning
CustomLog /var/www/web-logs/wireguard-logs/access.log combined
sudo systemctl status wireguard-daemon.service
Wireguard-ui[298798]: Git Repo: https://github.com/ngoduykhanh/wireguard-ui
Wireguard-ui[298798]: Authentication: true
Wireguard-ui[298798]: Bind address: <IP_ADDRESS>:5000
Wireguard-ui[298798]: Email from:
wireguard-ui[298798]: Name email address: WireGuard UI
Wireguard-ui[298798]: Custom wg.conf:
Wireguard-ui[298798]: Base path: /wireguard/
Wireguard-ui[298798]: Subnet ranges:
Wireguard-ui[298798]: Valid subnet ranges:
Wireguard-ui[298798]: ⇨ http server started on <IP_ADDRESS>:5000
http://<IP_ADDRESS>:5000/wireguard/login?next=/wireguard (http) is ok
https://<IP_ADDRESS>/wireguard/ (https) is not OK
Message not found"
What am I doing wrong, what am I still missing??
I wanted to set it up later from <IP_ADDRESS> but it just doesn't work. Can anyone help me?
I thank you in advance ^^

server {
listen 80;
server_name wgui-cust.netbox.host;
root /usr/share/nginx;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl http2;
server_name wgui.example.com;
ssl_certificate     /etc/ssl/certs/yourcert.crt;
ssl_certificate_key /etc/ssl/private/yourkey.key;

but for nginx there seems to be one that works Oo?
root /usr/share/nginx;
location / {
    add_header Cache-Control no-cache;

    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Proto $scheme;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header Host $http_host;
    proxy_pass http://<IP_ADDRESS>:5000/;
}

}


[AB#91474] Fix test failures in the CI Environment

Description
Updated the workitem e2e tests to use DataPartition test fixture
Related issues
Addresses [AB#91474]
Testing
CI run

Also, can we update our base CI service to not have it enabled to catch any other errors of this type?

Also, can we update our base CI service to not have it enabled to catch any other errors of this type?
"We have OSS services deployed to represent these. Can we make sure that they've got the features sets turned on that we would expect? E.g. I would imagine that the base CI shouldn't have any features turned on, and there is a feature enabled instance."

@bcarthic Can you please chime in on this?

Having said that, I would also expect our run-e2e-tests.yml and run-e2e-features-enabled-tests.yml to also make use of this category vs the "FullyQualifiedName!~Microsoft.Health.Dicom.Web.Tests.E2E.Rest.DataPartitionEnabledTests" that it is using today.

I agree, the names and categories doesn't match. We will update in this PR with 3 categories

bvt - Runs normal dicom operations
bvt-fe - Runs any new feature specific operations
bvt-dp - Runs only data partitions enabled tests

/azp run


it won't let me get passed this...

Challenge Use Responsive Design with Bootstrap Fluid Containers has an issue.
User Agent is: Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36.
Please describe how to reproduce this issue, and include links to screenshots if possible.
My code:

<link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">

CatPhotoApp

Click here for cat photos.

Things cats love:

cat nip

laser pointers

lasagna

Top 3 things cats hate:

flea treatment

thunder

other cats

<form action="/submit-cat-photo">
  <input type="radio" name="indoor-outdoor"> Indoor
  <input type="radio" name="indoor-outdoor"> Outdoor
  <input type="checkbox" name="personality"> Loving
  <input type="checkbox" name="personality"> Lazy
  <input type="checkbox" name="personality"> Crazy
  <input type="text" placeholder="cat photo URL" required>
  <button type="submit">Submit</button>
</form>

@Elliotlowe51,
Thanks for reporting this. But your code is incorrect.
GitHub Issues are for reporting bugs on the website only.
Please use the Help chat room for getting challenge related help.
by the way, you almost got it. One code line is in wrong place.
Happy Coding.


FAILED SYNC IMAGE docker.io/photoprism/photoprism:latest

SYNC docker.io/photoprism/photoprism:latest

/close


en-kmb baseline

English to Kimbundu
Author: Daniel Whitenack
Data

JW300 en-kmb + fast_align based corpus fitering
Test sets from the Masakhane common test sets:

test.en-kmb.en
test.en-kmb.kmb

Model
    initializer: "xavier"
    bias_initializer: "zeros"
    init_gain: 1.0
    embed_initializer: "xavier"
    embed_init_gain: 1.0
    tied_embeddings: True
    tied_softmax: True
    encoder:
        type: "transformer"
        num_layers: 6
        num_heads: 8
        embeddings:
            embedding_dim: 512
            scale: True
            dropout: 0.
        # typically ff_size = 4 x hidden_size
        hidden_size: 512
        ff_size: 2048
        dropout: 0.3
    decoder:
        type: "transformer"
        num_layers: 6
        num_heads: 8
        embeddings:
            embedding_dim: 512
            scale: True
            dropout: 0.
        # typically ff_size = 4 x hidden_size
        hidden_size: 512
        ff_size: 2048
        dropout: 0.3

The pre-trained model can be found here.
Analysis
Example 1:
Source:     ( read philippians 2 : 5 - 8 . )
Reference:  ( tanga filipe 2 : 5 - 8 . )
Hypothesis: ( tanga filipe 2 : 5 - 8 . )

Example 2:
Source:     today , more than ever before , there are so many things that can distract us .
Reference:  lelu , kuene ima iavulu i tena ku tu landukisa , m’ukulu ndenge .
Hypothesis: lelu , m’ukulu , kuene ima iavulu i tena ku tu landukisa .

Example 3:
Source:     the apostle paul warned about what can happen if we please ourselves first .
Reference:  ( 1 nzuá 2 : 16 ) o poxolo phaulu ua tu dimuna ku ima i tena kubhita se tu suua ngó o ima i tua uabhela .
Hypothesis: o poxolo phaulu ua dimuna o ima i tu tena kubhanga , se tu dióndo dianga kusota o kitambuijilu kia poxolo .

Example 4:
Source:     what a privilege it is to live in these last days and to be part of jehovah’s incredible organization !
Reference:  tua tokala ku lembalala izuua ioso kuila , ujitu ua dikota ku tokala mu kilunga kia jihova mu ixi , mu izuua isukidila - ku !
Hypothesis: ujitu ua dikota ku kala mu izuua íii isukidila - ku , ni ku bhanga mbandu ku kilunga kia jihova mu kilunga kiê !

Results

BLEU train: 28.57
BLEU dev: 28.81
BLEU test: 32.76

Thanks @dwhitena, looks great!
Could you please also add the BPE codes? Thanks!

Ah, thanks for catching that @juliakreutzer. Added.


Face extraction and alignment of RAF dataset

Hi,
great work, and thanks for sharing. I'm trying to train my own version of the model and I have a quick question.
Did you use the aligned versions from the RAF-DB dataset or did you use a custom face detection and alignment method.
The RAF-DB has two folders original and aligned. From your README it seems that you used the files from the original folder, e.g. test_0001.jpg. In the aligned folder the naming is as follows test_0001_aligned.jpg.
Thanks,
Rasmus

Hi,
great work, and thanks for sharing. I'm trying to train my own version of the model and I have a quick question.
Did you use the aligned versions from the RAF-DB dataset or did you use a custom face detection and alignment method.
The RAF-DB has two folders original and aligned. From your README it seems that you used the files from the original folder, e.g. test_0001.jpg. In the aligned folder the naming is as follows test_0001_aligned.jpg.
Thanks, Rasmus

Thanks for your interest.
Yes, we used the aligned versions from the RAF-DB dataset.


team member permissions

can we please get a definitive answer on what the team member license offers?
Not a link to the license guide its too detailed for such a simple answer
Thank you
[Enter feedback here]

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

ID: 3a7e6932-b672-a55a-1217-b7aadf7fc275
Version Independent ID: 73ae4240-a595-ba84-d4b5-4da9d5186214
Content: Licensing in Business Central - Business Central
Content Source: dev-itpro/deployment/licensing.md
Service: dynamics365-business-central
GitHub Login: @jswymer
Microsoft Alias: jswymer

The reason we link to the license guide is that this is the main document for all information regarding licenses. I have copied the information about team member license for Business Central for your reference here. Hope that helps. Thanks.
The Dynamics 365 Business Central Team Members license, not to be confused with Dynamics 365 Team
Members license, grants a named user the following rights for their own use only (not for, or on behalf of,
others):
• Read data within Business Central
• Update existing data and entries in Business Central, such as previously created customer, vendor, or
item records. Entries are defined as specific accounting information that, may be updated, such as a
due date on customer ledger entries.
• Approve or reject tasks in all workflows assigned to that user, with the limit that approvals and
rejections can only update data in records that Business Central Team Members can access.
• Create, edit, and delete a sales or purchase quote
• Create, edit, and delete personal information
• Edit job time sheets for approval
• Use the Dynamics 365 Power Apps/Power Automate use rights provided with a Dynamics 365 license
• Business Central Team Members application module may be customized with maximum 15 additional
tables (custom tables or standard Dataverse tables) available to the Business Central Team Members
license.

Thanks but can’t you add this to the docs?
Why’s it so hard to find this info?
Kind Regards
Ben Opit
+61411707070

On 23 Jun 2022, at 11:51 pm, Susanne Windfeld Pedersen @.***> wrote:

The reason we link to the license guide is that this is the main document for all information regarding licenses. I have copied the information about team member license for Business Central for your reference here. Hope that helps. Thanks.
The Dynamics 365 Business Central Team Members license, not to be confused with Dynamics 365 Team
Members license, grants a named user the following rights for their own use only (not for, or on behalf of,
others):
• Read data within Business Central
• Update existing data and entries in Business Central, such as previously created customer, vendor, or
item records. Entries are defined as specific accounting information that, may be updated, such as a
due date on customer ledger entries.
• Approve or reject tasks in all workflows assigned to that user, with the limit that approvals and
rejections can only update data in records that Business Central Team Members can access.
• Create, edit, and delete a sales or purchase quote
• Create, edit, and delete personal information
• Edit job time sheets for approval
• Use the Dynamics 365 Power Apps/Power Automate use rights provided with a Dynamics 365 license
• Business Central Team Members application module may be customized with maximum 15 additional
tables (custom tables or standard Dataverse tables) available to the Business Central Team Members
license.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.

License information does not, traditionally, belong in core documentation. Also, for maintenance reasons, should license information change, we do not have outdated information in the docs. But thanks for the feedback.

Hi Susan
That statement doesn’t make sense because the docs go into details how the essential and premium experience works. The Team Member limitations should also be discussed. More over if I go and hunt for this information on the dynamics licensing guide the details are offered there. There’s just time wasting trying to find the specific page on the 188 page document.
Just my feedback from all partners in Australia
Kind Regards
Ben Opit

On 28 Jun 2022, at 5:04 pm, Susanne Windfeld Pedersen @.***> wrote:

License information does not, traditionally, belong in core documentation. Also, for maintenance reasons, should license information change, we do not have outdated information in the docs. But thanks for the feedback.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.


refactor(v2): use aliased path for blog list sidebar file

Motivation
Resolves #4840
Have you read the Contributing Guidelines on pull requests?
Yes
Test Plan
In the main.js file try searching for "blog-post-list-prop-default.json" (path must be with ~blog alias)
Related PRs
(If this PR adds or changes functionality, please take some time to update the docs at https://github.com/facebook/docusaurus, and link to your PR here.)

LGTM thanks 👍


Request: add NULL to QTYPE

Would you mind adding the null record (experimental)?
in dnslib.QTYPE, add 10:'NULL'
I need it in one of my Python tools. I added it on my machine, but it would be easier for maintenance if it was in the master code.
Thanks,
Didier

Didier,
Thanks for pointing this out - I've added in Git but haven't created a new PyPi release yet (will wait until I have a few more changes). Hope this is ok.
Regards, Paul

Thanks a lot Paul.
No problem, there's no hurry.
Cheers,
Didier


generalize RACs such that they work for COFs

the first iterations should be done once we address #55

one special flavor for COFs we could do is to start at heteroatoms.
The other one is to start in different rings


Supported Versions

What kind of Version should we support?

I prefer to support from Laravel 6.
The version is LTS version.

Cool, let me quickly update the package.


Fix nSequence value in createrawtransaction

The documentation for createrawtransaction states that we can include an optional sequence value for transaction inputs. Currently the wallet ignores this value and always sets it as the 32-bit unsigned maximum value.
This pull request makes the wallet use the submitted sequence value. If the sequence value is not included then the functionality is the same as before. I have tested both.
I'm working on a project where I need to send TX with custom sequence values and this makes my life slightly easier :)

Thought it was already documented but I was looking at the bitcoin docs.
Added sequence to the help message. Also added check for negative input.


AntiForgeryToken is reusable. Is there any configuration to make it unique on every request?

AntiForgeryToken is reusable. Is there any option/configuration to make it unique on every request and invalidate the previous ones?

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

ID: 47b14f57-82ac-a2e2-cbc7-22a81a60f4ac
Version Independent ID: bffca13c-223f-c61f-9cb2-9da8811eecfa
Content: Prevent Cross-Site Request Forgery (XSRF/CSRF) attacks in ASP.NET Core
Content Source: aspnetcore/security/anti-request-forgery.md
Product: aspnet-core
Technology: aspnetcore-security
GitHub Login: @steve-smith
Microsoft Alias: riande

No, I don't think so.
cc @serpent5

There's nothing in the direct configuration, AntiforgeryOptions.
This Stack Overflow answer describes an approach that uses IAntiforgeryAdditionalDataProvider to invalidate the tokens on each request, but I can't speak for whether that's a good idea.


Add distributed tracing.

Overview
This pull request adds distributed tracing throughout the request paths in API, Executor, Holder, Fragment, and the InternalClient. It also implements HTTP header injection to pass tracing identifiers between nodes.
Usage
The tracing uses the production settings suggested by Jaeger by default. Two additional flags have been added to allow control over the sampler:
--tracing.sampler-type
--tracing.sampler-param

For testing/dev, you can have all spans reported by using these settings:
pilosa server --tracing.sampler-type const --tracing.sampler-param 1

Pull request checklist

[x] I have read the contributing guide.
[x] I have agreed to the Contributor License Agreement.
[ ] I have updated the documentation.
[x] I have resolved any merge conflicts.
[x] All new and existing tests pass.

Code review checklist
This is the checklist that the reviewer will follow while reviewing your pull request. You do not need to do anything with this checklist, but be aware of what the reviewer will be looking for.

[ ] Ensure that any changes to external docs have been included in this pull request.
[ ] If the changes require that minor/major versions need to be updated, tag the PR appropriately.
[ ] Ensure the new code is properly commented and follows Idiomatic Go.
[ ] Check that tests have been written and that they cover the new functionality.
[ ] Run tests and ensure they pass.
[ ] Build and run the code, performing any applicable integration testing.

Very nice start. I did some testing and was able to get traces on my local Jaeger instance, however none of the distributed queries on a local cluster seem to have traces from "remote" nodes. For example, InternalClient.QueryNode seems to be the lowest level I see in my traces, but I don't see anything from the remote node. I see a lot of orphaned traces that I think are from cases where context.Background() is passed in. Could this be something to do with the sample rate? Only a few of the requests I sent in get traces created, and I am not sure how to configure that.
Also it seems that the Jaeger environment config doesn't work (JAEGER_AGENT_HOST, etc). Is your approach to just add Pilosa options to cover these options on an as-needed basis? We will probably at least want to expose the agent/collector service addresses as config options.
Also, would be good to get some data logged out of the queries, for example, in HandlePostQuery (from my POC):
span.LogFields(
               log.String("query", req.Query),
               log.String("index", req.Index),
       )

(Not sure the difference between span.LogKV and span.LogFields as it pertains to Jaeger.)
FYI, my environment is just pilosa server (no options) running alongside Jaeger using Docker: docker run -d --name jaeger   -e COLLECTOR_ZIPKIN_HTTP_PORT=9411   -p 5775:5775/udp   -p 6831:6831/udp   -p 6832:6832/udp   -p 5778:5778   -p 16686:16686   -p 14268:14268   -p 9411:9411   jaegertracing/all-in-one:1.7

none of the distributed queries on a local cluster seem to have traces from "remote" nodes

Sorry about that. I think I fixed the issue but I'm having issues with getting a cluster running that doesn't fully replicate. I have cluster.replicas = 1 so I'm not sure what I'm doing wrong. Can you give the newest commit a try on your cluster? (6f6dbef)

Could this be something to do with the sample rate? Only a few of the requests I sent in get traces created, and I am not sure how to configure that.

You can use a const tracer with a tracing rate of 1 to see all calls traced:
--tracing.sampler-type const --tracing.sampler-param 1

Is your approach to just add Pilosa options to cover these options on an as-needed basis?

Yes, it seemed messy to have users mix JAEGER environment variables with Pilosa configuration—especially since we're abstracting the tracing a bit now. I can add the agent address to the config.

Also, would be good to get some data logged out of the queries

One thing I was worried about was logging it if users sent a large SetBit() calls in one query. Should I restrict the size of the query string being logged?

Hey Ben, thanks for the reply. I'm still having no luck getting the remote trace to join the local one, but I made a little progress debugging. I'm mostly testing with Set() queries so the replication ensures that there will always be a remote trace.
I agree that having our own config flags for the various Jaeger options makes sense, and we will definitely need to have one to specify the agent address.
I'm not really sure about how query logging will affect performance, so we can leave it out for now, but it did make me start thinking about how we can cross-reference queries to traces. Maybe we can get the jaeger trace ID into the pilosa response headers? Something to think about.
There were a couple of problems I found with the injecting/extracting logic:

The InternalClient.do method wasn't called from anywhere, as the individual methods call out to  c.httpClient.Do(.
I think the reference to opentracing.GlobalTracer() is wrong because Jaeger has its own tracer implementation.

These are both addressed in https://github.com/codysoyland/pilosa/commit/c472b293303a4c4668659d579efc7b8bc72766dd
After applying that patch, I now see Uber-Trace-Id headers in the inter-node http requests (via ngrep), but Jaeger is still not displaying them together. Here is a screenshot of what I'm seeing:

Should I expect to see the traces from the remote nodes nested under the QueryNode calls in this trace? (I do see traces from the remote nodes in two separate traces.)

@codysoyland OK, it took way too long to figure out why the distributed tracing wasn't propagating but I finally got it working. I also added a config parameter for setting the agent host/port.

Thanks @codysoyland. I hard reset to your branch and pushed up. Can you approve again when you get a chance and I'll merge it once CI finishes.


adds get_default_subject_guide and tests

Coverage increased (+0.4%) to 85.816% when pulling d0f6f67c40dff28111d638bc2658dbdfb7bc6bd2 on feature/library-curric-ws into 56c10eee0e3768ea4d031050d9c3070566e979b7 on develop.


instrumentation-grpc: Undefined path attribute in clientMethodTrace

What version of OpenTelemetry are you using?
0.19.0  from the main branch
What version of Node are you using?
v14.16.1 / macOS 10.15.7
Please provide the code you used to setup the OpenTelemetry SDK
example from examples/grpc.
What did you do?
Running the grpc instrumentation example:
# shell 1
npm run zipkin:server

and
# shell 2
npm run zipkin:client

What did you expect to see?
I expected the example using the instrumentation-grpc library to work similarly to the plugin-grpc one.
What did you see instead?
❯❯❯ npm run zipkin:client

><EMAIL_ADDRESS>zipkin:client
> cross-env EXPORTER=zipkin node ./client.js

Client traceId  18602ad094e9fb4f943f9031aac4eb54
/Users/jbetancourt/Code/opentelemetry-js/examples/grpc/node_modules/@opentelemetry/instrumentation-grpc/build/src/grpc/index.js:170
                const name = `grpc.${original.path.replace('/', '')}`;
                                                   ^

TypeError: Cannot read property 'replace' of undefined
    at ServiceClient.clientMethodTrace [as sayHello] (/Users/jbetancourt/Code/opentelemetry-js/examples/grpc/node_modules/@opentelemetry/instrumentation-grpc/build/src/grpc/index.js:170:52)
    at /Users/jbetancourt/Code/opentelemetry-js/examples/grpc/client.js:33:12
    at async_hooks.js:313:14
    at AsyncResource.runInAsyncScope (async_hooks.js:197:9)
    at AsyncLocalStorage.run (async_hooks.js:311:35)
    at AsyncLocalStorageContextManager.with (/Users/jbetancourt/Code/opentelemetry-js/examples/grpc/node_modules/@opentelemetry/context-async-hooks/build/src/AsyncLocalStorageContextManager.js:33:40)
    at ContextAPI.with (/Users/jbetancourt/Code/opentelemetry-js/examples/grpc/node_modules/@opentelemetry/api/build/src/api/context.js:71:54)
    at main (/Users/jbetancourt/Code/opentelemetry-js/examples/grpc/client.js:18:19)
    at Object.<anonymous> (/Users/jbetancourt/Code/opentelemetry-js/examples/grpc/client.js:47:1)
    at Module._compile (internal/modules/cjs/loader.js:1063:30)

Additional context
We ran into the same issue in a bigger project that uses (among other things) Apollo for providing a GraphQL server. We were trying to remove the old plugins in favor of the new instrumentation libraries.
Initially, we thought that the issue was related to something specific about our project but I was able to reproduce it with the code from examples/grpc.

Closed in #2179


Basic code and documentation for Cross-Network Identity Sync Protocol

Updated identity agent protobufs.
Added basic Fabric code to create wallet identities and perform smart contract operations.
Updated identity RFCs.

Update the version of fabric sdk in package.json (package-local.json) to 1.4.3.


UIRS-33 Major rework using react-query

https://issues.folio.org/browse/UIRS-33
Purpose

Refresh the list after the configuration has been edited
Fix other API-related quirks
Refactor the code structure

Approach

Use react-query instead of Stripes connect
Introduce API abstractions
Move route-related stuff to one place, top-level

TODOS and Open Questions

[ ] refactor the providers code
[ ] cover with tests

Pre-Merge Checklist
Before merging this PR, please go through the following list and take appropriate actions.

[x] I've added appropriate record to the CHANGELOG.md
Does this PR meet or exceed the expected quality standards?

[ ] Code coverage on new code is 80% or greater
[x] Duplications on new code is 3% or less
[x] There are no major code smells or security issues

Does this introduce breaking changes?

[ ] If any API-related changes - okapi interfaces and permissions are reviewed/changed correspondingly
[x] There are no breaking changes in this PR.

If there are breaking changes, please STOP and consider the following:

What other modules will these changes impact?
Do JIRAs exist to update the impacted modules?

[ ] If not, please create them
[ ] Do they contain the appropriate level of detail?  Which endpoints/schemas changed, etc.
[ ] Do they have all they appropriate links to blocked/related issues?

Are the JIRAs under active development?

[ ] If not, contact the project's PO and make sure they're aware of the urgency.

Do PRs exist for these changes?

[ ] If so, have they been approved?

Ideally all of the PRs involved in breaking changes would be merged in the same day to avoid breaking the folio-testing environment.  Communication is paramount if that is to be achieved, especially as the number of intermodule and inter-team dependencies increase.
While it's helpful for reviewers to help identify potential problems, ensuring that it's safe to merge is ultimately the responsibility of the PR assignee.

suggestion from EBSO team to do refactoring in separate request, in this one you implement list autorefresh (the purpose of the request), but summary is about rafctoring

@NikitaSedyx Yes, you're right, "refactoring" is changing the code without altering functionality.
I'll change it to "rework".
Thanks for pointing out!

plz avoid code smells

Test errors found for test. See https://jenkins-aws.indexdata.com/job/folio-org/job/ui-remote-storage/job/PR-68/16/

Test errors found for test. See https://jenkins-aws.indexdata.com/job/folio-org/job/ui-remote-storage/job/PR-68/17/

Good job, like how you used msw and turned off logs for errored requests.


An error or two

Bug description
Hey guys,
Maybe you can help us figure out what's wrong here. We're essentially trying to change recipes introduced by Biomes O' Plenty, but they do not occur after game-load.
Our config. looks like this:
https://hastebin.com/ujusobabuz.java
The craft weaker.log looks like this:
https://hastebin.com/ehehafesit.md
OS
Client runs Windows 10 with Java JDK 8
Server runs Debian 8 with Java JDK 8
Additional context
It's for our Space Gorilla pack

Why do I have the feeling that parts of this code are ripped from SevTech 🤔
So, several things that are wrong in your script:

There is no CrT class named recipeUtil that I know of.
You created a function init that is never called.
For those few recipes you are using, an IIngredient[][][][IItemStack] map is totally overengineered.


static_comments: call mako filters inside a function

you can't call mako filters inside python code, you'll get an error like
this instead:
    '' + ('{1}'.format(comment.author_url|h, comment.author|h) if comment.author_url is not None else (comment.author|h)) + '',
TypeError: unsupported operand type(s) for |: 'str' and 'Undefined'

move the author line generation into an mako function, which again can
use mako filters

@felixfontein now the comments render with mako too ;)

Meh, I really prefer jinja2 :D

Again, thanks for fixing this! :)

@felixfontein heh, yeah. Today I'd use j2 too. But my blog is still using mako and I did not find the time to migrate the custom templates.


Fix building on PSv3

This change is

Previously, kapilmb (Kapil Borle) wrote…
> #### Fix building on PSv3

Comments from Reviewable

Reviewed 1 of 1 files at r1.
Review status: all files reviewed at latest revision, all discussions resolved.

Comments from Reviewable

Thanks Raghu!


fix: update ucc ui version to 1.7.7

ADDON-38581: fallback to latest form state if resthandler skips some table fields from response

Codecov Report

Merging #236 (1f82472) into main (0cbb1a4) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #236   +/-   ##
=======================================
  Coverage   56.34%   56.34%
=======================================
  Files          37       37
  Lines        2513     2513
=======================================
  Hits         1416     1416
  Misses       1097     1097

Continue to review full report at Codecov.

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

:tada: This PR is included in version 5.3.4 :tada:
The release is available on:

v5.3.4
GitHub release

Your semantic-release bot :package::rocket:


Codelab not showing geo pose as displayed in demo graphic

Codelab is not showing geo pose tracking text as indicated in the codelab demo graphic in https://developers.google.com/ar/develop/java/geospatial/codelab#2
To fix you need to add the following line into the section labelled "Display positioning information on the map"
activity.view.updateStatusText(earth, cameraGeospatialPose)

Isn't this https://github.com/google-ar/codelab-geospatial/pull/4 #3 ?
There's BTW https://github.com/google-ar/codelab-geospatial/pull/5 too


Long compile times for tensordot(a, b, N) on a TPU

When trying to use a jax on a TPU, I am seeing long compile times for tensordot when its inputs have many dimensions.
For example, consider the following reimplentation of tensordot(a,b,N) using reshape and matmul:
def tensordot2(a, b, N):
        """
        Reimplementation of jax.numpy.tensordot(a, b, N)
        """
        k = onp.prod(a.shape[-N:])
        a_r = jax.numpy.reshape(a, (-1, k))
        b_r = jax.numpy.reshape(b, (k, -1))
        res = jax.numpy.matmul(a_r, b_r)
        return jax.numpy.reshape(res, a.shape[:-N] + b.shape[N:])

On tensors with 12 dimensions, this tensordot2 compiles 10x faster than jax.numpy.tensordot but has very similar performance after compilation:
$ python run.py --tpu="grpc://<IP_ADDRESS>:8470"
JAX version: 0.2.7
Connecting to: grpc://<IP_ADDRESS>:8470

-- Using alternative tensordot(a,b,N) implementation--
First time: 1.0770306587219238
Output: [ 0.07692753  0.00059127 -0.02753184  0.0518856   0.08529685  0.00665864
  0.00136994 -0.03543025]
Average of next 100 trials: 0.01755237817764282

-- Using jax.numpy.tensordot(a,b,N) --
First time: 11.581943273544312
Output: [ 0.07692759  0.00059129 -0.02753186  0.05188563  0.08529684  0.00665865
  0.00136995 -0.03543027]
Average of next 100 trials: 0.01803591012954712

See the provided simple python file run.py that performs this measurement.
Some additional notes:

jax.numpy.tensordot compiles much faster when targeting a CPU
The same issue occurs with jax.numpy.tensordot(a, b, axes), i.e. when arbitrary axes are contracted instead of just the first/last N.
The compilation time difference seems to be even larger as the size of the tensors increases (modify tensor_size in run.py).
In my own less-simplified code that inspired this issue, a tensordot call with rank(a)=17, rank(b)=18, and 9 shared axes to contract was observed to take 795 seconds to compile (but the same call took under a second to compile when targeting a CPU).

Is there anything I can do to improve the compile time of jax.numpy.tensordot? Or is it best to stick with my own reimplementation for now?
run.zip

XLA isn't very well tuned for arrays with large numbers of dimensions. So this isn't particularly surprising to see. We've reported similar issues to the compiler team in the past, but it isn't a high priority for them at the moment.
Out of curiosity: is this a tensor network? I think https://github.com/google/TensorNetwork implements optimizations for efficient contractions on top of JAX that you could either use or learn from.
Failing that, if your workaround works, you should use it!
Does that answer the question sufficiently?

XLA isn't very well tuned for arrays with large numbers of dimensions. So this isn't particularly surprising to see. We've reported similar issues to the compiler team in the past, but it isn't a high priority for them at the moment.
Out of curiosity: is this a tensor network? I think https://github.com/google/TensorNetwork implements optimizations for efficient contractions on top of JAX that you could either use or learn from.
Failing that, if your workaround works, you should use it!
Does that answer the question sufficiently?


Picking a voting system(s)

One of my stated objectives as chair was to implement our voting system, and I'd like to solicit feedback.  Two things we've tried:

Up-or-down votes on GitHub issues.  These are adequate and easy when there are two alternatives.  The charter says discussion is open to the public, but is not explicit about the votes.  If we believe a public vote unjustly biases the results, that's not the way.

CIVS for multiple choice issues.  This required a third party tool.  It only drew 3 respondents out of 9, and I'm not sure if it was the issue, the tool, or the availability of the committee.  Condorcet voting appeals to me, but I'm a math nerd who married a political scientist.  Your mileage may vary.

Other implementations:

Debian uses devotee, another Condorcet voting system.  It looks a lot heavier than anything I care to administer or impose on the next chair.

Star Voting also appeals to my inner election science nerd, but is less well known.

Discuss.

I didn't vote on the COVS because I delayed jumping through a hoop to get authenticated and then the window had closed. Sorry.
I'm not too worried about which system we choose if we choose something better than going with the highest vote getter even if it is less than majority.


Bad Gateway

After pulling the last commit, I run docker-compose in current/
When I connect on the container IP, I have the following error:
502 Bad Gateway
nginx

And on the server side, I see those logs:
misp-proxy      | 2019/04/23 17:35:36 [error] 22#22: *24 connect() failed (111: Connection refused) while connecting to upstream, client: <IP_ADDRESS>, server: 9e1660a1b119, request: "GET / HTTP/2.0", upstream: "https://<IP_ADDRESS>:443/", host: "<IP_ADDRESS>"
misp-proxy      | <IP_ADDRESS> - <IP_ADDRESS> - - [23/Apr/2019:17:35:36 +0000] "GET / HTTP/2.0" 502 166 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0" "-"

Normally you should not mix docker-compose and make commands.
Please can you try to go to the current folder and then make deploy?

But please wait first that your issue #67 is solved.
Thx.

ok perfect, I will wait and do the testing again.

Can you do make deploy once again to test this?

This is working. Thanks

I re-open, I cleaned everything with make delete and run again, using make deploy inside current and I get the same error message. The server side logs I get are:
2019/04/30 08:13:42 [error] 25#25: *2 connect() failed (111: Connection refused) while connecting to upstream, client: <IP_ADDRESS>, server: 669e6910d657, request: "GET / HTTP/2.0", upstream: "https://<IP_ADDRESS>:443/", host: "misp.mysite.com"
misp.mysite.com - <IP_ADDRESS> - - [30/Apr/2019:08:13:42 +0000] "GET / HTTP/2.0" 502 150 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0" "-"

hum, it works again and I did not touch anything, just time...
there is something here, I am not sure where to start debugging

I am closing this and will re-open if I find this again. Thanks!


/POH wont work when minion busy

🐛 Bug Report

also there is no command to show what you have built currently in your poh, it used to be =poh list

Fixed in next update.


refactor(emotion-utils): union type reused by predefined type

Overview
in emotion-utils
they have type CSSPixelValue which is union type string and number
type CSSPixelValue = string | number;
Some file didn't use the CSSPixelValue in a specific part.
I thought this would undermine the unity of the project, so I improved it to use the defined type(CSSPixelValue).
PR Checklist

[x] I read and included theses actions below

I have read the Contributing Guide
I have written documents and tests, if needed.

thx !


[Runtime] Introduce runtime::Array

This PR introduces the data structure tvm:runtime::Array, which replaces the original tvm::Array.
Related discussion: https://discuss.tvm.ai/t/discuss-runtime-array-containers-array-adt-string/4582.
Features

Removes dependency to std::vector
The new array is POD-C compatible in terms of Itanium C++ ABI
Copy-on-write semantic is preserved in Array
make_object is specialized and overloaded to properly support creating ArrayNode
New features on Array that mimics std::vector, including Array::insert, Array::erase, Array::resize, Array::reserve, Array::clear, etc

Breaking changes

ArrayNode no longer has the field std::vector data
Read-only member access in ArrayNode is supported via ArrayNode::at, which comes with proper boundary checking
Capacity change is no longer supported in ArrayNode
In-place changing an item is supported via ArrayNode::SetItem, but it is never recommended even before this PR (because ArrayNode doesn't have copy-on-write semantic like Array does)
Iterating through ArrayNode is supported with a raw constant pointer

Performance impact

We ran several end-to-end workloads, and didn't find any significant performance change
This shouldn't affect the size of libtvm_runtime, because the registration logic remains outside of tvm::runtime.
The new array requires more stack memory not any more, see my post below

Future work

Move registration logic from src/node to src/runtime, and closely monitor the change of binary size
Refactor/Remove IterAdaptor, make it more correct, and add more features (e.g. -=)

Could you help review the PR? Thanks! @tqchen @joshpoll @jroesch @zhiics @icemelon9 @yzhliu @wweic

@tqchen @zhiics Review comments addressed, please take another look :-)

I will add cpptest after the main part is finalized :-)

Just to share some interesting updates on the stack utilization issue:
I dig around with gcc -fstack-usage.
# before this change
virtual tvm::relay::Expr tvm::relay::CommonSubexprEliminator::VisitExpr_(const tvm::relay::CallNode*)	1072	static
# after this change
virtual tvm::relay::Expr tvm::relay::CommonSubexprEliminator::VisitExpr_(const tvm::relay::CallNode*)	4720	dynamic,bounded

The takeaway is that the stack frame changes from the one with static size to the one with dynamic but bounded size. The worst case utilization 4720 becomes much larger than the constant size 1072 before

So the takeaway is that if a method that intends to be inlined by the compiler, we should take extreme care about the CHECKs inside, in case that the code in dmlc-core be inlined as well, which will bloat stack utilization significantly

Will add container tests after the CI is green

Given the fact that dmlc::LogMessageFatal causes significant amount of increase in stack size, we investigated into dmlc-core. The initial results shows that we can directly reduce (upper bound of) the stack frame size from 4720 to 560, if we change dmlc::LogMessageFatal to std::unique_ptr<dmlc::LogMessageFatal>.
# master
virtual tvm::relay::Expr tvm::relay::CommonSubexprEliminator::VisitExpr_(const tvm::relay::CallNode*)	1072	static
# before patch dmlc-core
virtual tvm::relay::Expr tvm::relay::CommonSubexprEliminator::VisitExpr_(const tvm::relay::CallNode*)	4720	dynamic,bounded
# after patch dmlc-core
virtual tvm::relay::Expr tvm::relay::CommonSubexprEliminator::VisitExpr_(const tvm::relay::CallNode*)	560	dynamic,bounded

Please rebase to retrigger the CI

The CI error is not relevant to this PR

LGTM, great work @junrushao1994!

Thanks @junrushao1994 ! Thanks @jwfromm @zhiics !


Opt non compat

Experimental branch with manually optimizing comment/whitespace leaf rules / regexes.
About a ~20% perf boost currently but loses some coffeeCompat options
Ideally these optimizations could be done in Hera automatically but this is a good proof of concept.

[ ] Allow Hera to compile the parser on the fly, pruning branches based on config (to handle CoffeeCompat)
[ ] Enhance Hera to merge rules / regex to reduce the number of
[ ] Update some Civet handlers to be more robust with the merged whitespace output
[ ] Simplify Civet AST where possible and defer handlings until after parse

There are also some grammar simplifications that can be cherry picked onto the main branch.
References
Mimic atomic groups

Closing this in favor of the optimizations that were already done here:

https://github.com/DanielXMoore/Civet/pull/711
https://github.com/DanielXMoore/Civet/pull/764
https://github.com/DanielXMoore/Civet/pull/770
https://github.com/DanielXMoore/Civet/pull/771
https://github.com/DanielXMoore/Civet/pull/772
https://github.com/DanielXMoore/Civet/pull/781

Cherry picked some changes from this branch here: https://github.com/DanielXMoore/Civet/pull/749


Error during login

It seems, that a server does not respond

Sorry, this service can only be accessed in China, wait for me to change one

it's OK now


Query Builder making wrong query when using UNION with Pagination

Hello,
I tried to make the following paginated UNION query with Query Builder:
$search2 = $search."%";

$query1 = DB::table('fl_foods')
        ->select('id', 'desc')
        ->where('desc', 'LIKE', $search2);

$query = DB::table('fl_foods')
        ->select('id', 'desc')
        ->where('desc', '=', $search)
        ->unionAll($query1)
        ->paginate(10);

For some reason it generates the following aggregate query + error message:
SQLSTATE[21000]: Cardinality violation: 1222 The used SELECT statements have a different number of columns (SQL: select count(*) as aggregate from fl_foods where desc = ? union all select id, desc from fl_foods where desc LIKE ?) (Bindings: array ( 0 => 'but', 1 => 'but%', ))
This error only happens when I'm trying to paginate the results, it makes a proper UNION query when I use ->limit(10)->get();
Also the same thing happens with SELECT * in both queries.
Is there a way to get this to work, or should I just write a some raw query with custom pagination?

@ravigehlot Hi, are you solved this problem which load all raw from database for pagination?

Can this issue be re-opened? It's still not possible to use the paginator without workarounds.

This has been fixed in Laravel 5.7.13 (#26365).


Password a file

How can I password a file created with the outputAsync function?

Please read the docs. Usage questions can be asked on StackOverflow.


fix(souce-contentful): define all types before creating nodes

this should fix issue #14

Thanks! Works great :)


Remove brackets from sni str to prevent endpoint.connect from getting…

When the client use an IPv6 address of server, endpoint.connect() would get an server_name like "[::1]" , recognize it as a hostname and throw an error. Now it will get "::1" and works correctly.

Thx


about MenuLabel width

Can you open a interface to change the MenuLabel width

you can use this code:
self.sectionBar.itemSize = CGSizeMake(100, 30);


Feature/slow growth nested

files for the adaptive slow growth, which has been tested and designed with nested basis functions in mind as per the paper 'Slow Exponential Growth for Clenshaw Curtis Sparse Grids' by John Burkardt

This PR can be revisited with the new API and refactor branch.


Little help? Could not open library 'glib-2.0.0': dlopen(glib-2.0.0, 5): image not found.

Hi team (John? Anyone?) Hoping for some help. I've spent hours on github/stackoverflow trying to triage this issue. Admittedly, I'm new to ruby and very new to getting development environments set up. I am on an M1 mac.
My VIPs-related unit tests fail with the following error:
LoadError: Could not open library 'glib-2.0.0': dlopen(glib-2.0.0, 5): image not found.
Could not open library 'libglib-2.0.0.dylib': dlopen(libglib-2.0.0.dylib, 5): image not found
Would really appreciate any help here. Also would be happy to jump on a zoom call and report findings back here!
Notes from my investigation/previous issues:
(1) https://github.com/libvips/ruby-vips/issues/130 - libglib-2.0.dylib is on my system, in a few different places actually. Is the code looking for it somewhere else?
$ locate libglib-2.0.dylib
/opt/homebrew/Cellar/glib/2.66.7/lib/libglib-2.0.dylib
/opt/homebrew/lib/libglib-2.0.dylib
/usr/local/lib/libglib-2.0.dylib
/usr/local/libglib-2.0.dylib
I see the suggestion that I should check:
you have glib and libvips in /usr/local/lib - should they really be here if I'm primarily using brew, which puts things elsewhere? I've tried copying a bunch of files into /usr/local/lib, but I'm not sure exactly which files should be here for l
you can run command-line vips stuff correctly - irb > require 'vips' fails with the error mentioned above.
your gem and Ruby know about /usr/local - how can I check this?
(2) vips --version output:
vips-8.10.5-Fri Dec 18 10:14:09 UTC 2020
(3) I saw some other suggestions (I can't find them now) to modify lib/ffi/library.rb to use a direct path. However,
LIBC = '/usr/lib/libc.dylib' #original value
#LIBC = '/System/DriverKit/usr/lib/system/libsystem_c.dylib' - tried this, didn't work
#LIBC = '/opt/homebrew/Cellar/tcl-tk/8.6.11_1/lib/tcllibc/macosx-arm-clang/tcllibc.dylib' - tried this, didn't work
Interestingly, the output of  $ locate libc.dylib is below.
/opt/homebrew/Cellar/tcl-tk/8.6.11_1/lib/tcllibc/macosx-arm-clang/tcllibc.dylib
Looking for any guidance or suggestions. Thank you so much! Apologies if this is posted incorrectly, happy to remove it elsewhere. Thank you!

Hi @bdhartz,
It used to "just work", but I've not tried ruby-vips on macos for a while, perhaps things have changed. I'll have a go later today.

Hi @bdhartz,
It used to "just work", but I've not tried ruby-vips on macos for a while, perhaps things have changed. I'll have a go later today.

Thanks John, I look forward to hearing back! Let me know if you'd like to hop on a call or if I can provide any further info.

Oh, an M1 mac, I just noticed. I think brew is still a bit wobbly on the M1, you might need to wait a few months more before it'll work smoothly.
On this old imac I see:
21:45 $ brew install vips
==> Downloading https://homebrew.bintray.com/bottles/vips-8.10.5_2.catalina.bott
Already downloaded: /Users/john/Library/Caches/Homebrew/downloads/f57d2661c5701c4dfd7dc1bd9c4b9d068a75e845caa9ed5c1abedce79f8f33a7--vips-8.10.5_2.catalina.bottle.tar.gz
==> Pouring vips-8.10.5_2.catalina.bottle.tar.gz
Warning: vips dependency gcc was built with a different C++ standard
library (libstdc++ from clang). This may cause problems at runtime.
🍺  /usr/local/Cellar/vips/8.10.5_2: 167 files, 13.9MB
✔ ~
21:46 $ ls -l /usr/local/lib/*vips*
lrwxr-xr-x  1 john  admin  48  8 Mar 21:46 /usr/local/lib/libvips-cpp.42.dylib -> ../Cellar/vips/8.10.5_2/lib/libvips-cpp.42.dylib
lrwxr-xr-x  1 john  admin  41  8 Mar 21:46 /usr/local/lib/libvips-cpp.a -> ../Cellar/vips/8.10.5_2/lib/libvips-cpp.a
lrwxr-xr-x  1 john  admin  45  8 Mar 21:46 /usr/local/lib/libvips-cpp.dylib -> ../Cellar/vips/8.10.5_2/lib/libvips-cpp.dylib
lrwxr-xr-x  1 john  admin  44  8 Mar 21:46 /usr/local/lib/libvips.42.dylib -> ../Cellar/vips/8.10.5_2/lib/libvips.42.dylib
lrwxr-xr-x  1 john  admin  37  8 Mar 21:46 /usr/local/lib/libvips.a -> ../Cellar/vips/8.10.5_2/lib/libvips.a
lrwxr-xr-x  1 john  admin  41  8 Mar 21:46 /usr/local/lib/libvips.dylib -> ../Cellar/vips/8.10.5_2/lib/libvips.dylib
✔ ~
21:49 $ gem install ruby-vips
Fetching ruby-vips-2.1.0.gem
Successfully installed ruby-vips-2.1.0
Parsing documentation for ruby-vips-2.1.0
Installing ri documentation for ruby-vips-2.1.0
Done installing documentation for ruby-vips after 0 seconds
1 gem installed
✔ ~
21:49 $ irb
irb(main):001:0' require 'vips'
=> true
irb(main):002:0>

I have the same problem, with an M1 as well. Let me know if you find a solution. Thank you

Sorry, I don't know what's wrong with your system. I did the most basic install and it all worked. Are you maybe attempting to use the Apple ruby? It blocks third party libraries for security. You must use the homebrew ruby.
On my mac (2012 imac), I see this:
10:49 $ which ruby
/usr/local/opt/ruby/bin/ruby
✔ ~
10:49 $ which vips
/usr/local/bin/vips
✔ ~

So I used brew to install vips and ruby and they are both in /usr/local.
10:50 $ ls /usr/local/lib/libglib*
/usr/local/lib/libglib-2.0.0.dylib /usr/local/lib/libglib-2.0.dylib
/usr/local/lib/libglib-2.0.a
✔ ~
10:50 $ ls /usr/local/lib/libvips*
/usr/local/lib/libvips-cpp.42.dylib /usr/local/lib/libvips.42.dylib
/usr/local/lib/libvips-cpp.a        /usr/local/lib/libvips.a
/usr/local/lib/libvips-cpp.dylib    /usr/local/lib/libvips.dylib
✔ ~

The relevant libraries are in there too.
10:50 $ vips --help
Usage:
  vips [OPTION…] [ACTION] [OPTIONS] [PARAMETERS] - VIPS driver program
...

I can run the vips command-line stuff.
10:50 $ irb
irb(main):001:0> require 'vips'
=> true
irb(main):002:0>

And I can gem install ruby-vips and require it.

I think @jonfer is having an issue on a mac with M1/silicon architecture, similar to me above. I don't believe there was a solution for now.

Having the same problem using ruby-vips with Jekyll Picture Tag on an M1 Macbook.

Hi @DotIN13, you need to give a lot more information. What error did you get, how did you install everything, what versions are you running, where is your glib installed, which ruby are you using etc. etc.
Could it perhaps be a native vs. x86 problem? For example, if glib has been built for x86 and ruby is native it obviously won't work.

I think PR https://github.com/ffi/ffi/pull/882 might fix this. As a workaround, you could try to symlink the whole /opt/homebrew/lib directory to /opt/local/lib (untested).

Error
Dependency Error: Yikes! It looks like you don't have jekyll_picture_tag or one of its dependencies installed. In order to use Jekyll as currently configured, you'll need to install this gem. If you've run Jekyll with `bundle exec`, ensure that you have included the jekyll_picture_tag gem in your Gemfile as well. The full error message from Ruby is: 'Could not open library 'glib-2.0.0': dlopen(glib-2.0.0, 5): image not found. Could not open library 'libglib-2.0.0.dylib': dlopen(libglib-2.0.0.dylib, 5): image not found' If you run into trouble, you can find helpful resources at https://jekyllrb.com/help/!
                    ------------------------------------------------
      Jekyll 4.2.0   Please append `--trace` to the `serve` command
                     for any additional information or backtrace.
                    ------------------------------------------------

How did I install everything?
brew: official install script, arm64
glib, vips: via brew, arm64
ruby: via rbenv, arm64
Ruby Version
ruby 2.7.2p137 (2020-10-01 revision 5445e04352) [arm64-darwin20]
glib
glib: stable 2.68.0 (bottled)
Core application library for C
https://developer.gnome.org/glib/
/opt/homebrew/Cellar/glib/2.68.0 (442 files, 22.0MB) *

vips info
vips: stable 8.10.6 (bottled)
Image processing library
https://github.com/libvips/libvips
/opt/homebrew/Cellar/vips/8.10.6 (167 files, 14.2MB) *

So I guess it's all native but something just went wrong.

I think PR ffi/ffi#882 might fix this. As a workaround, you could try to symlink the whole /opt/homebrew/lib directory to /opt/local/lib (untested).

After symlinking with the following command, it worked like butter, thanks a lot.
sudo ln -s /opt/homebrew/lib /opt/local/lib

Ah thanks for that Kleis, I hadn't realized homebrew had moved the lib area.
Related:  https://github.com/ioquatix/ffi-module
A more modern interface to ruby-ffi which has much better library searching. It might be useful to experiment with something similar.

@DotIN13 @kleisauke Yes, this works. M1 strikes again!

@rdetert @DotIN13 @kleisauke - thanks for your work on this! For whatever reason, I don't have a /opt/local directory, so sudo ln -s /opt/homebrew/lib /opt/local/lib fails with ln: /opt/local/lib: No such file or directory. My /opt/ only has homebrew in it, nothing else. Should I have a /opt/local and is there a way you know of that I can get this back to how it should be? Thanks a bunch!

@bdhartz You could try creating /opt/local with mkdir -p /opt/local/lib.

I think PR ffi/ffi#882 might fix this. As a workaround, you could try to symlink the whole /opt/homebrew/lib directory to /opt/local/lib (untested).

After symlinking with the following command, it worked like butter, thanks a lot.
sudo ln -s /opt/homebrew/lib /opt/local/lib

This was close for me, but I had to do sudo ln -s /opt/homebrew/lib /usr/local/lib to get it to work. I'd tried to install the older homebrew so this path already existed for me; you might have to manually create it

I followed the instructions to create a symlink and I got the following error on my m1 machine.
❯ rails c
Running via Spring preloader in process 13791
Loading development environment (Rails <IP_ADDRESS>)
2.6.5 :001 > require 'vips'
objc[13791]: +[__NSCFConstantString initialize] may have been in progress in another thread when fork() was called.
objc[13791]: +[__NSCFConstantString initialize] may have been in progress in another thread when fork() was called. We cannot safely call it or ignore it in the fork() child process. Crashing instead. Set a breakpoint on objc_initializeAfterForkError to debug.

I also get the same error if I used the ffi with ffi/ffi#882 fix implemented.
Is anyone else getting that?

I followed the instructions to create a symlink and I got the following error on my m1 machine.
❯ rails c
Running via Spring preloader in process 13791
Loading development environment (Rails <IP_ADDRESS>)
2.6.5 :001 > require 'vips'
objc[13791]: +[__NSCFConstantString initialize] may have been in progress in another thread when fork() was called.
objc[13791]: +[__NSCFConstantString initialize] may have been in progress in another thread when fork() was called. We cannot safely call it or ignore it in the fork() child process. Crashing instead. Set a breakpoint on objc_initializeAfterForkError to debug.

I also get the same error if I used the ffi with ffi/ffi#882 fix implemented.
Is anyone else getting that?

@mmhan I might be wrong but try adding "export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES" to your .bashrc or .zshrc

I ran into this as well. Also on M1. Had to modify the symlimk comments from above because I couldn't directly link the entire directory. What I used:
 sudo ln -s /opt/homebrew/lib/libglib-2.0.0.dylib /usr/local/lib/
 sudo ln -s /opt/homebrew/lib/libvips.42.dylib /usr/local/lib/
 sudo ln -s /opt/homebrew/lib/libgobject-2.0.0.dylib /usr/local/lib/

I managed to solve it like this:
sudo ln -s /opt/homebrew/lib /opt/local/lib
Then I removed all installed gems:
yes Y | gem uninstall -a -I
Then I installed the bundle
gem install bundler
Then I installed all the gems again:
bundle install

$ bundle update ffi

might fix it. v1.15.0 doesn't look in /opt/homebrew/lib. v1.15.3+ does.

I did all the fixes but had no luck. Fixed using the command
brew install vips
Maybe this could help1

@Adverbly's solution worked perfectly for me. I didn't quite understand what was going on, so I looked around a bit and learned:

Files in /opt/... are arm architecture, whereas files in /usr/local/lib are intel.
If ever unsure, you can find a dylib's architecture using the file command, example:

file /opt/homebrew/lib/libglib-2.0.0.dylib
# /opt/homebrew/lib/libglib-2.0.0.dylib: Mach-O 64-bit dynamically linked shared library arm64

super handy!

ln -s creates a symbolic link.

If the destination (second argument) already exists, it may not let you create the symbolic link, (which was the case for me). Since I already had libraries of the names of the symbolic links in /usr/local/lib, I moved them to the desktop; in hindsight, I could have simply deleted them, but I was being risk-averse.

Hope it's useful.

I just had this issue on a new M2 mac and solved it by removing the old x86 homebrew:
curl -fsSL -o /tmp/uninstall.sh https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh
arch -x86_64 /bin/bash /tmp/uninstall.sh --path=/usr/local

There has been an ongoing discussion in multiple PRs about how to fix the Homebrew path issue. One notable PR that was merged, offering a more general solution, can be found at https://github.com/ffi/ffi/pull/968
While the fix has been merged, there hasn't been a new release yet. To address the glib problem, I used the master branch of ffi in my Bundler:
gem 'ffi', git: 'https://github.com/ffi/ffi.git', branch: 'master'

If you prefer a more stable commit instead of the latest master, you can specify that. With this solution, there's no need to create symlinks between the arm64 and the Rosetta 2 (x86_64) versions of Homebrew.

I did all the fixes but had no luck. Fixed using the command
brew install vips
Maybe this could help1

This has completely thrown my system configuration and now I'm not able to locally run any project that leverages the vips library...

While the fix has been merged, there hasn't been a new release yet.

It appears that the Ruby-FFI gem has recently released v1.16.0, which should address this issue.

Someone help me please. I've had the vips library running smoothly with all my projects until running the brew update vips command on my shell. I currently get the following error when running bundle exec jekyll s -l:
bundle exec jekyll s -l
bundler: failed to load command: jekyll (/Users/gschiavon/.gem/ruby/2.7.3/bin/jekyll)
/Users/gschiavon/.gem/ruby/2.7.3/gems/ffi-1.16.1/lib/ffi/dynamic_library.rb:65:in `load_library': Could not open library 'vips.42': dlopen(vips.42, 0x0005): tried: 'vips.42' (no such file), '/System/Volumes/Preboot/Cryptexes/OSvips.42' (no such file), '/usr/lib/vips.42' (no such file, not in dyld cache), 'vips.42' (no such file), '/usr/local/lib/vips.42' (no such file), '/usr/lib/vips.42' (no such file, not in dyld cache). (LoadError)
Could not open library 'libvips.42.dylib': dlopen(libvips.42.dylib, 0x0005): Library not loaded: /opt/homebrew/opt/hdf5/lib/libhdf5.200.dylib
  Referenced from: <555C8E69-E957-3A35-BB01-AF28A62E44B4> /opt/homebrew/Cellar/libmatio/1.5.23/lib/libmatio.11.dylib
  Reason: tried: '/opt/homebrew/opt/hdf5/lib/libhdf5.200.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/opt/hdf5/lib/libhdf5.200.dylib' (no such file), '/opt/homebrew/opt/hdf5/lib/libhdf5.200.dylib' (no such file), '/usr/local/lib/libhdf5.200.dylib' (no such file), '/usr/lib/libhdf5.200.dylib' (no such file, not in dyld cache), '/opt/homebrew/Cellar/hdf5/1.14.2/lib/libhdf5.200.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/Cellar/hdf5/1.14.2/lib/libhdf5.200.dylib' (no such file), '/opt/homebrew/Cellar/hdf5/1.14.2/lib/libhdf5.200.dylib' (no such file), '/usr/local/lib/libhdf5.200.dylib' (no such file), '/usr/lib/libhdf5.200.dylib' (no such file, not in dyld cache).
Could not open library '/usr/local/lib/libvips.42.dylib': dlopen(/usr/local/lib/libvips.42.dylib, 0x0005): Library not loaded: /opt/homebrew/opt/hdf5/lib/libhdf5.200.dylib
  Referenced from: <555C8E69-E957-3A35-BB01-AF28A62E44B4> /opt/homebrew/Cellar/libmatio/1.5.23/lib/libmatio.11.dylib
  Reason: tried: '/opt/homebrew/opt/hdf5/lib/libhdf5.200.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/opt/hdf5/lib/libhdf5.200.dylib' (no such file), '/opt/homebrew/opt/hdf5/lib/libhdf5.200.dylib' (no such file), '/usr/local/lib/libhdf5.200.dylib' (no such file), '/usr/lib/libhdf5.200.dylib' (no such file, not in dyld cache), '/opt/homebrew/Cellar/hdf5/1.14.2/lib/libhdf5.200.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/Cellar/hdf5/1.14.2/lib/libhdf5.200.dylib' (no such file), '/opt/homebrew/Cellar/hdf5/1.14.2/lib/libhdf5.200.dylib' (no such file), '/usr/local/lib/libhdf5.200.dylib' (no such file), '/usr/lib/libhdf5.200.dylib' (no such file, not in dyld cache).
Could not open library '/opt/homebrew/lib/libvips.42.dylib': dlopen(/opt/homebrew/lib/libvips.42.dylib, 0x0005): Library not loaded: /opt/homebrew/opt/hdf5/lib/libhdf5.200.dylib
  Referenced from: <555C8E69-E957-3A35-BB01-AF28A62E44B4> /opt/homebrew/Cellar/libmatio/1.5.23/lib/libmatio.11.dylib
  Reason: tried: '/opt/homebrew/opt/hdf5/lib/libhdf5.200.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/opt/hdf5/lib/libhdf5.200.dylib' (no such file), '/opt/homebrew/opt/hdf5/lib/libhdf5.200.dylib' (no such file), '/usr/local/lib/libhdf5.200.dylib' (no such file), '/usr/lib/libhdf5.200.dylib' (no such file, not in dyld cache), '/opt/homebrew/Cellar/hdf5/1.14.2/lib/libhdf5.200.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/Cellar/hdf5/1.14.2/lib/libhdf5.200.dylib' (no such file), '/opt/homebrew/Cellar/hdf5/1.14.2/lib/libhdf5.200.dylib' (no such file), '/usr/local/lib/libhdf5.200.dylib' (no such file), '/usr/lib/libhdf5.200.dylib' (no such file, not in dyld cache).
Searched in <system library path>, /usr/lib, /usr/local/lib, /opt/local/lib, /opt/homebrew/lib
        from /Users/gschiavon/.gem/ruby/2.7.3/gems/ffi-1.16.1/lib/ffi/library.rb:95:in `block in ffi_lib'
        from /Users/gschiavon/.gem/ruby/2.7.3/gems/ffi-1.16.1/lib/ffi/library.rb:94:in `map'
        from /Users/gschiavon/.gem/ruby/2.7.3/gems/ffi-1.16.1/lib/ffi/library.rb:94:in `ffi_lib'
        from /Users/gschiavon/.gem/ruby/2.7.3/gems/ruby-vips-2.0.17/lib/vips.rb:528:in `<module:Vips>'
        from /Users/gschiavon/.gem/ruby/2.7.3/gems/ruby-vips-2.0.17/lib/vips.rb:525:in `<top (required)>'
        from /Users/gschiavon/.gem/ruby/2.7.3/gems/ruby-vips-2.0.17/lib/ruby-vips.rb:1:in `require'
        from /Users/gschiavon/.gem/ruby/2.7.3/gems/ruby-vips-2.0.17/lib/ruby-vips.rb:1:in `<top (required)>'
        from /Users/gschiavon/.gem/ruby/2.7.3/gems/jekyll_picture_tag-2.0.4/lib/jekyll_picture_tag/images/generated_image.rb:1:in `require'
        from /Users/gschiavon/.gem/ruby/2.7.3/gems/jekyll_picture_tag-2.0.4/lib/jekyll_picture_tag/images/generated_image.rb:1:in `<top (required)>'
        from /Users/gschiavon/.gem/ruby/2.7.3/gems/jekyll_picture_tag-2.0.4/lib/jekyll_picture_tag/images.rb:2:in `require_relative'
        from /Users/gschiavon/.gem/ruby/2.7.3/gems/jekyll_picture_tag-2.0.4/lib/jekyll_picture_tag/images.rb:2:in `<top (required)>'
        from /Users/gschiavon/.gem/ruby/2.7.3/gems/jekyll_picture_tag-2.0.4/lib/jekyll_picture_tag.rb:5:in `require_relative'
        from /Users/gschiavon/.gem/ruby/2.7.3/gems/jekyll_picture_tag-2.0.4/lib/jekyll_picture_tag.rb:5:in `<top (required)>'
        from /Users/gschiavon/.gem/ruby/2.7.3/gems/bundler-2.3.6/lib/bundler/runtime.rb:60:in `require'
        from /Users/gschiavon/.gem/ruby/2.7.3/gems/bundler-2.3.6/lib/bundler/runtime.rb:60:in `block (2 levels) in require'
        from /Users/gschiavon/.gem/ruby/2.7.3/gems/bundler-2.3.6/lib/bundler/runtime.rb:55:in `each'
        from /Users/gschiavon/.gem/ruby/2.7.3/gems/bundler-2.3.6/lib/bundler/runtime.rb:55:in `block in require'
        from /Users/gschiavon/.gem/ruby/2.7.3/gems/bundler-2.3.6/lib/bundler/runtime.rb:44:in `each'
        from /Users/gschiavon/.gem/ruby/2.7.3/gems/bundler-2.3.6/lib/bundler/runtime.rb:44:in `require'
        from /Users/gschiavon/.gem/ruby/2.7.3/gems/bundler-2.3.6/lib/bundler.rb:176:in `require'
        from /Users/gschiavon/.gem/ruby/2.7.3/gems/jekyll-4.3.2/lib/jekyll/plugin_manager.rb:53:in `require_from_bundler'
        from /Users/gschiavon/.gem/ruby/2.7.3/gems/jekyll-4.3.2/exe/jekyll:11:in `<top (required)>'
        from /Users/gschiavon/.gem/ruby/2.7.3/bin/jekyll:25:in `load'
        from /Users/gschiavon/.gem/ruby/2.7.3/bin/jekyll:25:in `<top (required)>'
        from /Users/gschiavon/.gem/ruby/2.7.3/gems/bundler-2.3.6/lib/bundler/cli/exec.rb:58:in `load'
        from /Users/gschiavon/.gem/ruby/2.7.3/gems/bundler-2.3.6/lib/bundler/cli/exec.rb:58:in `kernel_load'
        from /Users/gschiavon/.gem/ruby/2.7.3/gems/bundler-2.3.6/lib/bundler/cli/exec.rb:23:in `run'
        from /Users/gschiavon/.gem/ruby/2.7.3/gems/bundler-2.3.6/lib/bundler/cli.rb:484:in `exec'
        from /Users/gschiavon/.gem/ruby/2.7.3/gems/bundler-2.3.6/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
        from /Users/gschiavon/.gem/ruby/2.7.3/gems/bundler-2.3.6/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
        from /Users/gschiavon/.gem/ruby/2.7.3/gems/bundler-2.3.6/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
        from /Users/gschiavon/.gem/ruby/2.7.3/gems/bundler-2.3.6/lib/bundler/cli.rb:31:in `dispatch'
        from /Users/gschiavon/.gem/ruby/2.7.3/gems/bundler-2.3.6/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
        from /Users/gschiavon/.gem/ruby/2.7.3/gems/bundler-2.3.6/lib/bundler/cli.rb:25:in `start'
        from /Users/gschiavon/.gem/ruby/2.7.3/gems/bundler-2.3.6/exe/bundle:48:in `block in <top (required)>'
        from /Users/gschiavon/.gem/ruby/2.7.3/gems/bundler-2.3.6/lib/bundler/friendly_errors.rb:103:in `with_friendly_errors'
        from /Users/gschiavon/.gem/ruby/2.7.3/gems/bundler-2.3.6/exe/bundle:36:in `<top (required)>'
        from /Users/gschiavon/.gem/ruby/3.0.0/bin/bundle:23:in `load'
        from /Users/gschiavon/.gem/ruby/3.0.0/bin/bundle:23:in `<main>'

To me, it looks like it's a missing file or misconfigured path to the library, am I correct assuming this?
I really need the library in order to leverage the jekyll_picture_tag plugin.
I can provide additional info as required.

v1.16.0

Still having the issue with ffi 1.16.3 and Ventura 13.5 on an M1 Macbook Air

It was working fine on my M2 mac mini last time I tested it, I'll try again to verify.

I tried just now on my M2 mac mini, and it all worked. Here's what I did:

I use bash as my shell
I uninstalled all of homebrew to make sure I had a clean slate, I emptied my .bash_profile
Ran the usual /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" to install homebrew
I added homebrew to my path in the usual way.

Here's my .bash_profile:
export CLICOLOR=1

eval "$(/opt/homebrew/bin/brew shellenv)"

I also ran eval "$(/opt/homebrew/bin/brew shellenv)" directly to make sure everything was set up.

I ran brew install vips
I used the apple ruby (2.6.0) for testing, but I'm sure you should use the homebrew one. I ran gem install ruby-vips --user-install to install everything to ~/.gem.

To verify it worked, I tried:
$ irb

WARNING: This version of ruby is included in macOS for compatibility with legacy software.
In future versions of macOS the ruby runtime will not be available by
default, and may require you to install an additional package.

irb(main):002:0> require "vips"
=> true
irb(main):003:0> Vips::Image.black(10,10)
=> #<Image 10x10 uchar, 1 bands, multiband>
irb(main):004:0> ^D

I have the various glib libraries in /opt/homebrew, and nothing in /usr/local:
$ ls /opt/homebrew/lib/libgob*
/opt/homebrew/lib/libgobject-2.0.0.dylib
/opt/homebrew/lib/libgobject-2.0.a
/opt/homebrew/lib/libgobject-2.0.dylib
$ ls /opt/homebrew/lib/libglib*
/opt/homebrew/lib/libglib-2.0.0.dylib /opt/homebrew/lib/libglib-2.0.dylib
/opt/homebrew/lib/libglib-2.0.a
$ ls /opt/homebrew/lib/libvip*
/opt/homebrew/lib/libvips-cpp.42.dylib /opt/homebrew/lib/libvips.42.dylib
/opt/homebrew/lib/libvips-cpp.dylib    /opt/homebrew/lib/libvips.dylib
$ ls /usr/local
$

I tried just now on my M2 mac mini, and it all worked. Here's what I did:

I use bash as my shell
I uninstalled all of homebrew to make sure I had a clean slate, I emptied my .bash_profile
Ran the usual /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" to install homebrew
I added homebrew to my path in the usual way.

Here's my .bash_profile:
export CLICOLOR=1

eval "$(/opt/homebrew/bin/brew shellenv)"

I also ran eval "$(/opt/homebrew/bin/brew shellenv)" directly to make sure everything was set up.

I ran brew install vips
I used the apple ruby (2.6.0) for testing, but I'm sure you should use the homebrew one. I ran gem install ruby-vips --user-install to install everything to ~/.gem.

To verify it worked, I tried:
$ irb

WARNING: This version of ruby is included in macOS for compatibility with legacy software.
In future versions of macOS the ruby runtime will not be available by
default, and may require you to install an additional package.

irb(main):002:0> require "vips"
=> true
irb(main):003:0> Vips::Image.black(10,10)
=> #<Image 10x10 uchar, 1 bands, multiband>
irb(main):004:0> ^D

I have the various glib libraries in /opt/homebrew, and nothing in /usr/local:
$ ls /opt/homebrew/lib/libgob*
/opt/homebrew/lib/libgobject-2.0.0.dylib
/opt/homebrew/lib/libgobject-2.0.a
/opt/homebrew/lib/libgobject-2.0.dylib
$ ls /opt/homebrew/lib/libglib*
/opt/homebrew/lib/libglib-2.0.0.dylib /opt/homebrew/lib/libglib-2.0.dylib
/opt/homebrew/lib/libglib-2.0.a
$ ls /opt/homebrew/lib/libvip*
/opt/homebrew/lib/libvips-cpp.42.dylib /opt/homebrew/lib/libvips.42.dylib
/opt/homebrew/lib/libvips-cpp.dylib    /opt/homebrew/lib/libvips.dylib
$ ls /usr/local
$

It worked for me.
Macbook M1

brew reinstall glib fixed it on my M1, so maybe some folks can avoid a bigger reinstall.
Details
My Homebrew packages have been installed to /opt/homebrew with arm64 brew for many months, and vips was working, but I noticed the .dylibs folks mentioned were missing until I reinstalled glib:
# glib is installed but missing dylibs:
$ brew info glib
==> glib: stable 2.80.0 (bottled)
Core application library for C
https://developer.gnome.org/glib/
/opt/homebrew/Cellar/glib/2.80.0_2 (524 files, 36MB)
  Poured from bottle using the formulae.brew.sh API on 2024-03-31 at 19:30:11
...
$ ls /opt/homebrew/lib/libgob*
ls: /opt/homebrew/lib/libgob*: No such file or directory

# Reinstalled and now dylibs are found:
$ brew reinstall glib
$ ls /opt/homebrew/lib/libgob*
/opt/homebrew/lib/libgobject-2.0.0.dylib /opt/homebrew/lib/libgobject-2.0.dylib
/opt/homebrew/lib/libgobject-2.0.a

# Now vips loads without errors again:
$ ruby -e 'require "vips"'

(While I still have a few things installed with a separate x86_64 homebrew install, neither glib nor vips were. That didn't seem to be an issue.)

In my case, I'm using Mac OS 14.0 with M2, what I did is just to:

brew install glib
brew install vips

worked for me. I'm using rails 7.1.3 on mac M1 chip.


Added namespaced scopes

Changes introduced with this PR
This PR adds namespaced references, allowing scopes only under a certain namespace to apply.
This allows referencing objects from other scopes without ID collisions.
To make this work, references have an optional namespace field, and ApplyScope has a namespace field so that it knows which refs it applies to.
Since an apply scope may happen after initial construction of the scope, an additional method, ValidateReferences, is added to ensure that all scopes are applied.
As designed, an empty string is considered the default scope. Let me know if you think that should be changed.
Example of use: https://github.com/arcalot/arcaflow-engine/pull/167
By contributing to this repository, I agree to the contribution guidelines.

I updated the link to point to a draft PR instead.


[BUG] Error when installing: "could not build wheels for faiss-cpu"

Describe the bug
A clear and concise description of what the bug is.
When I try to install I get an error.
To Reproduce
Steps to reproduce the behavior:
On Windows 11, inside conda environment:
Python version: 3.12
pip install swarms
Building wheels for collected packages: faiss-cpu
  Building wheel for faiss-cpu (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for faiss-cpu (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [8 lines of output]
      running bdist_wheel
      running build
      running build_py
      running build_ext
      building 'faiss._swigfaiss' extension
      swigging faiss\faiss\python\swigfaiss.i to faiss\faiss\python\swigfaiss_wrap.cpp
      swig.exe -python -c++ -Doverride= -I/usr/local/include -Ifaiss -doxygen -DSWIGWIN -module swigfaiss -o faiss\faiss\python\swigfaiss_wrap.cpp faiss\faiss\python\swigfaiss.i
      error: command 'swig.exe' failed: None
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for faiss-cpu
Failed to build faiss-cpu
ERROR: Could not build wheels for faiss-cpu, which is required to install pyproject.toml-based projects

Expected behavior
A clear and concise description of what you expected to happen.
Install normally
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.

Upvote & Fund

We're using Polar.sh so you can upvote and help fund this issue.
We receive the funding once the issue is completed & confirmed by you.
Thank you in advance for helping prioritize & fund our backlog.

@JiHa-Kim what is your platform?

i think this can be closed. 3.11 is a good version, very nice.


#10 Docker Container

Fixes #10

@ChrisCates please take a look

@iamonuwa, this looks excellent and well done.
Would it be possible to test it as a Dockerfile instead in Travis?
Once that change is made I will make sure to have the money released to your account.

Would it be possible to test it as a Dockerfile instead in Travis?

Hi can you explain what you mean by test as Dockerfile and not travis please?

In the travis CI builds. The program should be run in Linux, Unix, and Windows.
This link may prove useful: https://docs.travis-ci.com/user/docker/

@ChrisCates ATM, docker for macos is not supported. Will it be okay to work with windows and linux?

@iamonuwa, yes, it's okay. As long as I am able to run it on my own Mac OS computer.
Thank you for catching that. Appreciated.

Sweet! Making changes now

@ChrisCates please take a look

@iamonuwa, almost at the finish line: https://travis-ci.org/ChrisCates/CommonCrawler/jobs/528564834
Once that's sorted out. Will close and pay you the bounty. Keep up the great work, will have more coming next week.

@iamonuwa, almost at the finish line: https://travis-ci.org/ChrisCates/CommonCrawler/jobs/528564834
Also, the Travis-CI config should be able to run it as go run src/*.go and pass, I've left it up to you to decide how that should be executed as a Docker container. I've updated the repository to ensure that you can compile it with the specified command I provided, so please pull from the master branch if you have any questions we can discuss further.
Once that's sorted out. Will close and pay you the bounty. Keep up the great work, will have more coming next week.
Review #1 and #5 and let me know if you are interested in those tasks.

For the failure, its because docker is currently not supported on macos.
Do you need me to allow it to run through go run src/*.go if its OSX?
I'll go through the issues.

@ChrisCates I'll start with #5 now.

The CI test you provided for OSX was great and what I wanted.
Keep it up, we will discuss #1, #5, #13 Friday.


feat(TensorProduct): change of base ring in tensor product of algebras

A follow up to #18744, adding more contents about tensor product of algebras.
In LinearAlgebra/TensorProduct/Basic.lean: change the argument order of mapOfCompatibleSMul from R M N A to the more natural R A M N; add lidOfCompatibleSMul.
In RingTheory/TensorProduct/Basic.lean: add a CompatibleSMul section for algebras completely analogous to the CompatibleSMul section in LinearAlgebra/TensorProduct/Basic.lean added in #18744.
In RingTheory/Localization/BaseChange.lean: promote various examples to defs, and generalize tensorSelfEquiv to algebraLid.

Thanks :tada:
bors merge


WhatIf should not very input items.

I found several cmdlets will verify the existence of an item and ignore the WhatIf. If it doesn't exist an exception is returned. Having to wrap Copy-Item in a ShouldProcess seems redundant for that case.
Was this a design choice? Is WhatIf the equivalent to what it could have actually completed sucessfully?
Note that this occurs in Windows PowerShell as well.
Steps to reproduce
Copy-Item -Path /tmp/doesnotexist.txt -Destination /somepath -WhatIf

Expected behavior
What if: Performing the operation "Copy Directory" on target "Item: /tmp/doesnotexist.txt Destination: /somepath".

Actual behavior
Copy-Item : Cannot find path '/tmp/doesnotexist.txt' because it does not exist.
At line:1 char:1
+ Copy-Item -Path /tmp/doesnotexist.txt -Destination /somepath -WhatIf
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : ObjectNotFound: (/tmp/doesnotexist.txt:String) [Copy-Item], ItemNotFoundException
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.CopyItemCommand

Environment data
Name                           Value
----                           -----
PSVersion                      6.0.1
PSEdition                      Core
GitCommitId                    v6.0.1
OS                             Darwin 17.4.0 Darwin Kernel Version 17.4.0: Sun Dec 17 09:19:54 PST 2017; root:xnu-4570.41.2~1/RE...
Platform                       Unix
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
PSRemotingProtocolVersion      2.3
SerializationVersion           <IP_ADDRESS>
WSManStackVersion              3.0

Copy-Item -WhatIf has to look at the source items so it can tell you what will be copied. Consider
Copy-Item -whatif foo/*.txt bar
This command will tell you all of the files in directory foo that will be copied into bar. It has to look to know what will be copied. If the source item doesn't exist, do you really want whatif to tell you that it will be copied even though it won't?

I’m my use case I have to create a set of dynamically folders names for a build script and work with them so it made sense. Youre explanation makes perfect sense. I’ll works around it with  shouldprocess. Thanks.


1.5.43 cloud login invalid email FI string missing

Description:
User has language FI in Ruuvi Station and chooses to Sign In to Ruuvi Cloud
He sends empty form with no email address by accident
Error shown in English: "Invalid e-mail address."
Expected fi string: "Virheellinen sähköpostiosoite."

1.5.44

QA passed


[TRI-1301] Add support for Deno

This would require adding an adaptor, docs and CLI support.
From SyncLinear.com | TRI-1301

replied in #515

This is duplicated by #515


host approval list

Hi Pedro,
Can you make the list of host not changing order when you are logged in as an admin?
thanks
David

Done!


[XVideos] Fix quickies extractor

IMPORTANT: PRs without the template will be CLOSED
Description of your pull request and other information

XVideos changed their quickies URL format, as such the extractor needs to be updated. The code has been checked using flake8 and the test has been updated and passes.
This pull request introduces the following modifications:

Updates the quickies URL transformation to conform with the new XVideos URL format https://www.xvideos.com/video.QUICKIES_ID/_.
Updates the quickies URL filter to be more lenient, since the quickies URL has quite a few variants (e.g. can optionally include: profiles/, amateur-channels/).
Updates ID match group to allow for letters as well, since XVideos updated their IDs to include letters.

Example valid URLs with this fix:

https://www.xvideos.com/lili_love#quickies/a/ipdtikh1a4c
https://www.xvideos.com/profiles/lili_love#quickies/a/ipdtikh1a4c
https://www.xvideos.com/amateur-channels/lili_love#quickies/a/ipdtikh1a4c

Fixes #6356
Template

Before submitting a pull request make sure you have:

[x] At least skimmed through contributing guidelines including yt-dlp coding conventions
[x] Searched the bugtracker for similar pull requests
[x] Checked the code with flake8 and ran relevant tests

In order to be accepted and merged into yt-dlp each piece of code must be in public domain or released under Unlicense. Check all of the following options that apply:

[x] I am the original author of this code and I am willing to release it under Unlicense
[ ] I am not the original author of this code but it is in public domain or released under Unlicense (provide reliable evidence)

What is the purpose of your pull request?

[x] Fix or improvement to an extractor (Make sure to add/update tests)
[ ] New extractor (Piracy websites will not be accepted)
[ ] Core bug fix/improvement
[ ] New feature (It is strongly recommended to open an issue first)

(e.g. can optionally include: profiles/, amateur-channels/).

Pls add tests for each

btw, is there any way to get the old numeric id of a video?

btw, is there any way to get the old numeric id of a video?

It does seem that you can still use the old video ID for downloading the videos, but the URL format must be the old one apparently... e.g. https://www.xvideos.com/video47258683/_, so It seems that they still have legacy support for the old ID. From what I can tell their whole site has moved over to the new ID so new occurrences of the old ID should not happen.
I went ahead and added support for the old numeric IDs as well, I'm not sure if it's implemented in a way that follows yt-dlp's standards, but it works and the old test passes as well.
Also the video in the old test has an updated ID now in their system, so I'm guessing they completely swapped out their IDs (old test video ID: 47258683, new ID for the same video: idhhckbf429). As such when you go to https://www.xvideos.com/video47258683/_ it turns into https://www.xvideos.com/video.idhhckbf429/verification_video.

What is the status on getting this merged? Is there something blocking this getting merged?

Alright the code has been updated to use isdigit() and all tests pass and flake8 shows no problems. Any further changes that are needed? Or can this be merged?

LGTM 👍


[SPARK-43575][BUILD][SS] Exclude duplicated classes from kafka assembly jar

What changes were proposed in this pull request?

Exclude javax.activation:activation:jar:1.1.1 and org.apache.logging.log4j:log4j-slf4j2-impl:jar:2.20.0 from spark-streaming-kafka-0-10-assembly_2.12-<version>.jar
Why are the changes needed?

We should not include the jar which already exists in Spark binary artifact into the assembly jar of optional component.
Does this PR introduce any user-facing change?

No.
How was this patch tested?

build/mvn dependency:list -pl :spark-streaming-kafka-0-10-assembly_2.12

before
[INFO] --- maven-dependency-plugin:3.5.0:list (default-cli) @ spark-streaming-kafka-0-10-assembly_2.12 ---
[INFO]
[INFO] The following files have been resolved:
[INFO]    org.apache.spark:spark-streaming-kafka-0-10_2.12:jar:3.5.0-SNAPSHOT:compile
[INFO]    org.apache.spark:spark-token-provider-kafka-0-10_2.12:jar:3.5.0-SNAPSHOT:compile
[INFO]    org.apache.kafka:kafka-clients:jar:3.4.0:compile
[INFO]    org.apache.spark:spark-tags_2.12:jar:3.5.0-SNAPSHOT:compile
[INFO]    javax.activation:activation:jar:1.1.1:compile
[INFO]    org.apache.logging.log4j:log4j-slf4j2-impl:jar:2.20.0:compile
[INFO]    org.spark-project.spark:unused:jar:1.0.0:compile

after
[INFO] --- maven-dependency-plugin:3.5.0:list (default-cli) @ spark-streaming-kafka-0-10-assembly_2.12 ---
[INFO]
[INFO] The following files have been resolved:
[INFO]    org.apache.spark:spark-streaming-kafka-0-10_2.12:jar:3.5.0-SNAPSHOT:compile
[INFO]    org.apache.spark:spark-token-provider-kafka-0-10_2.12:jar:3.5.0-SNAPSHOT:compile
[INFO]    org.apache.kafka:kafka-clients:jar:3.4.0:compile
[INFO]    org.apache.spark:spark-tags_2.12:jar:3.5.0-SNAPSHOT:compile
[INFO]    org.spark-project.spark:unused:jar:1.0.0:compile

cc @LuciferYang


User-scripts error-handling, commands and tests

Raise RuntimeErrors when user-scripts exit with an error (previously it was just a warning)
Move run user-script code to payu.fsops out of Experiment class so it's easier to test
Use shell=True for subprocess commands needing a shell, e.g. file redirections, pipes
Add tests for running userscripts

To be able to run commands such as echo "some_data" > input.txt that are in payu documentation, it requires use of shell=True. So there's some security issues with using shell=True (https://docs.python.org/3/library/subprocess.html#security-considerations). However as the user scripts have typically been user defined .sh files run with /bin/bash, it could contain malicious code anyway..
I added a needs_subprocess_shell function that checks for any shell specific values. The list I've added might not be exhaustive. The question I am not sure on is that function even needed, and should all the user script commands just be run with shell=True?
Closes #448, #444

Hello @jo-basevi! Thanks for opening this PR. We checked the lines you've touched for PEP 8 issues, and found:

In the file payu/experiment.py:

Line 891:40: E203 whitespace before ':'

In the file payu/fsops.py:

Line 260:1: E302 expected 2 blank lines, found 1
Line 280:1: E302 expected 2 blank lines, found 1


STO doc reorganization v1 STO-7609

Preview link

Security Testing Orchestration

Prepub checks

[ ] Successful preview build.
[ ] Code owner review.
[ ] No merge conflicts.
[ ] Release notes/new features docs: Feature/version released to at least one prod environment.

Please check the Execution Link of the Pipeline for the Website Draft URL. This is located in the Preview Step behind the Harness VPN and also is available in #hdh_alerts. E.g Website Draft URL: https://unique-id--harness-developer.netlify.app. Current Draft URL is: https://664d0d0b93cb4b317b4d6e68--harness-developer.netlify.app

Please check the Execution Link of the Pipeline for the Website Draft URL. This is located in the Preview Step behind the Harness VPN and also is available in #hdh_alerts. E.g Website Draft URL: https://unique-id--harness-developer.netlify.app. Current Draft URL is: https://664fb14b1841b079fe75a9a9--harness-developer.netlify.app

Please check the Execution Link of the Pipeline for the Website Draft URL. This is located in the Preview Step behind the Harness VPN and also is available in #hdh_alerts. E.g Website Draft URL: https://unique-id--harness-developer.netlify.app. Current Draft URL is: https://665097e035be9902447499e4--harness-developer.netlify.app

Please check the Execution Link of the Pipeline for the Website Draft URL. This is located in the Preview Step behind the Harness VPN and also is available in #hdh_alerts. E.g Website Draft URL: https://unique-id--harness-developer.netlify.app. Current Draft URL is: https://6650d67039c2b04ddeac129e--harness-developer.netlify.app

Please check the Execution Link of the Pipeline for the Website Draft URL. This is located in the Preview Step behind the Harness VPN and also is available in #hdh_alerts. E.g Website Draft URL: https://unique-id--harness-developer.netlify.app. Current Draft URL is: https://6657aa199c7aef53a1a8ea20--harness-developer.netlify.app

Please check the Execution Link of the Pipeline for the Website Draft URL. This is located in the Preview Step behind the Harness VPN and also is available in #hdh_alerts. E.g Website Draft URL: https://unique-id--harness-developer.netlify.app. Current Draft URL is: https://6657dfc6be0c9e7e953b8399--harness-developer.netlify.app

Please check the Execution Link of the Pipeline for the Website Draft URL. This is located in the Preview Step behind the Harness VPN and also is available in #hdh_alerts. E.g Website Draft URL: https://unique-id--harness-developer.netlify.app. Current Draft URL is: https://665e6b67a3d21d9ba67c6556--harness-developer.netlify.app

Please check the Execution Link of the Pipeline for the Website Draft URL. This is located in the Preview Step behind the Harness VPN and also is available in #hdh_alerts. E.g Website Draft URL: https://unique-id--harness-developer.netlify.app. Current Draft URL is: https://666a23885d96854a64f23224--harness-developer.netlify.app

Please check the Execution Link of the Pipeline for the Website Draft URL. This is located in the Preview Step behind the Harness VPN and also is available in #hdh_alerts. E.g Website Draft URL: https://unique-id--harness-developer.netlify.app. Current Draft URL is: https://6670ba71fbccd8598b92be7b--harness-developer.netlify.app

Please check the Execution Link of the Pipeline for the Website Draft URL. This is located in the Preview Step behind the Harness VPN and also is available in #hdh_alerts. E.g Website Draft URL: https://unique-id--harness-developer.netlify.app. Current Draft URL is: https://66739eb2769adad0f758e025--harness-developer.netlify.app

Please check the Execution Link of the Pipeline for the Website Draft URL. This is located in the Preview Step behind the Harness VPN and also is available in #hdh_alerts. E.g Website Draft URL: https://unique-id--harness-developer.netlify.app. Current Draft URL is: https://66746596ab5bad90707b0312--harness-developer.netlify.app

Please check the Execution Link of the Pipeline for the Website Draft URL. This is located in the Preview Step behind the Harness VPN and also is available in #hdh_alerts. E.g Website Draft URL: https://unique-id--harness-developer.netlify.app. Current Draft URL is: https://66747efeb8e00cb312986467--harness-developer.netlify.app

Please check the Execution Link of the Pipeline for the Website Draft URL. This is located in the Preview Step behind the Harness VPN and also is available in #hdh_alerts. E.g Website Draft URL: https://unique-id--harness-developer.netlify.app. Current Draft URL is: https://667492fbff107bbf053e505b--harness-developer.netlify.app

Please check the Execution Link of the Pipeline for the Website Draft URL. This is located in the Preview Step behind the Harness VPN and also is available in #hdh_alerts. E.g Website Draft URL: https://unique-id--harness-developer.netlify.app. Current Draft URL is: https://66749929a79a96c7d7798e95--harness-developer.netlify.app

Please check the Execution Link of the Pipeline for the Website Draft URL. This is located in the Preview Step behind the Harness VPN and also is available in #hdh_alerts. E.g Website Draft URL: https://unique-id--harness-developer.netlify.app. Current Draft URL is: https://6675a758a47af8ab72d36b9c--harness-developer.netlify.app

Please check the Execution Link of the Pipeline for the Website Draft URL. This is located in the Preview Step behind the Harness VPN and also is available in #hdh_alerts. E.g Website Draft URL: https://unique-id--harness-developer.netlify.app. Current Draft URL is: https://6675b05ff310b6b72c50e70d--harness-developer.netlify.app

Please check the Execution Link of the Pipeline for the Website Draft URL. This is located in the Preview Step behind the Harness VPN and also is available in #hdh_alerts. E.g Website Draft URL: https://unique-id--harness-developer.netlify.app. Current Draft URL is: https://6675b0eaf310b6b78b50e7f4--harness-developer.netlify.app


Link to SharePoint Admin Center

Is there an aka.ms link for SharePoint Admin Center?
The closest I can find is
https://aka.ms/spmt-odb
Which takes you to the right portal (but not the homepage)

Looks like https://aka.ms/spoadmin goes to the right place.

@fatalicus Indeed! Thanks


Value of loc should not be appended to alternate href

Hello,
I am trying to implement custom entry generation with generateEntries function on sitemap handle, but I am not able to generate what I want because loc value is appended to alternate href. Here is the problem:
https://github.com/fedeya/remix-sitemap/blob/eeafd0add07ea138eda91fe21e0909dd98c5be05/src/utils/xml.ts#L161
According to this: [https://developers.google.com/search/docs/specialty/international/localized-versions#sitemap](Google's sitemap guide), I should have all localized versions as locs, and also all localized versions as alternate hrefs for every loc (makes no sense to me, but that's how Google want's it).
So, what I am trying to return as entries is this:
{     loc: '/',      alternateRefs: [         { href: '/', hreflang: 'sr' },         { href: '/en', hreflang: 'en' },     ] }, {     loc: '/en',      alternateRefs: [         { href: '/', hreflang: 'sr' },         { href: '/en', hreflang: 'en' },     ] }
But generated sitemap is not valid, because I get /en/en for alternate href for second entry.

Hey, tnx for fast reply!
I think that would be great solution :)

@vdjurdjevic this should be working on v1.3.1


test: Add regenerate SSH key tests

Description
This PR contains cypress tests for regenerate SSH key flow and fixes few flaky tests.
How Has This Been Tested?
locally
Checklist:

[X] My code follows the style guidelines of this project
[ ] I have performed a self-review of my own code
[X] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[X] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes

/ok-to-test sha=d51c077

/ok-to-test sha=0a25a49

Merging in since ui-test-result is not updating.


[REGRESSION]: Java Tool Installer task

New issue checklist

[X] I searched for existing GitHub issues
[X] I read pipeline troubleshooting guide
[X] I checked how to collect logs

Task name
JavaToolInstaller
Breaking task version
0.245.3
Last working task version
0.243.3
Regression Description
Java tool installer fails
Environment type (Please select at least one enviroment where you face this issue)

[X] Self-Hosted
[ ] Microsoft Hosted
[ ] VMSS Pool
[ ] Container

Azure DevOps Server type
dev.azure.com (formerly visualstudio.com)
Azure DevOps Server Version (if applicable)
No response
Operation system
Oracle Linux 8
Relevant log output
2024-09-09T05:09:09.7201506Z ##[section]Starting: Install JDK
2024-09-09T05:09:09.7224953Z ==============================================================================
2024-09-09T05:09:09.7225501Z Task         : Java tool installer
2024-09-09T05:09:09.7226038Z Description  : Acquire a specific version of Java from a user-supplied Azure blob or the tool cache and sets JAVA_HOME
2024-09-09T05:09:09.7226727Z Version      : 0.245.3
2024-09-09T05:09:09.7227118Z Author       : Microsoft Corporation
2024-09-09T05:09:09.7227602Z Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/tool/java-tool-installer
2024-09-09T05:09:09.7228177Z ==============================================================================
2024-09-09T05:09:10.0511195Z ##[error]Unhandled: Cannot find module 'node:os'
2024-09-09T05:09:10.0552710Z ##[error]Error: Cannot find module 'node:os'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
    at Function.Module._load (internal/modules/cjs/loader.js:562:25)
    at Module.require (internal/modules/cjs/loader.js:692:17)
    at require (internal/modules/cjs/helpers.js:25:18)
    at Object.<anonymous> (/home/opc/agent-1/_work/_tasks/JavaToolInstaller_c0e0b74f-0931-47c7-ac27-7c5a19456a36/0.245.3/node_modules/@azure/logger/dist/commonjs/log.js:7:19)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
2024-09-09T05:09:10.0558757Z ##[section]Finishing: Install JDK

Full task logs with system.debug enabled
2024-09-09T05:09:09.7201506Z ##[section]Starting: Install JDK
2024-09-09T05:09:09.7224953Z ==============================================================================
2024-09-09T05:09:09.7225501Z Task         : Java tool installer
2024-09-09T05:09:09.7226038Z Description  : Acquire a specific version of Java from a user-supplied Azure blob or the tool cache and sets JAVA_HOME
2024-09-09T05:09:09.7226727Z Version      : 0.245.3
2024-09-09T05:09:09.7227118Z Author       : Microsoft Corporation
2024-09-09T05:09:09.7227602Z Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/tool/java-tool-installer
2024-09-09T05:09:09.7228177Z ==============================================================================
2024-09-09T05:09:10.0511195Z ##[error]Unhandled: Cannot find module 'node:os'
2024-09-09T05:09:10.0552710Z ##[error]Error: Cannot find module 'node:os'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
at Function.Module._load (internal/modules/cjs/loader.js:562:25)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object. (/home/opc/agent-1/_work/_tasks/JavaToolInstaller_c0e0b74f-0931-47c7-ac27-7c5a19456a36/0.245.3/node_modules/@azure/logger/dist/commonjs/log.js:7:19)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
2024-09-09T05:09:10.0558757Z ##[section]Finishing: Install JDK
Repro steps
- task<EMAIL_ADDRESS>  inputs:
    versionSpec: $(JDK_VERSION)
    jdkArchitectureOption: x64
    jdkSourceOption: LocalDirectory
    jdkFile: $(Agent.TempDirectory)/jdk.tar.gz
  displayName: Install JDK

Hi @pfoote, thank you for your issue. Seems like the error happens because the agent run the task using node10 which don't have node:os module.
To mitigate the issue could you please update your agent and/or remove AGENT_USE_NODE10 knob as it forces to run all tasks using node10 to check that this will resolve the error?

Hi @pfoote, thank you for your issue. Seems like the error happens because the agent run the task using node10 which don't have node:os module. To mitigate the issue could you please update your agent and/or remove AGENT_USE_NODE10 knob as it forces to run all tasks using node10 to check that this will resolve the error?

Agent update fixed the issue, thank you

Agent update fixed the issue, thank you