Issue with Validator with multiple masks on same Input

I'm having an issue with the input mask handling certain combinations.  Because I'm trying to validate the date by culture allowing 1-2 characters for the month/day and 2/4 characters for the year, I generated the code below based off of the current culture:
Inputmask.extendDefinitions(
  { 'D':
    {
      validator:   '[1-9]',
      cardinality: 1,
    },
    prevalidator: null
  });
Inputmask.extendDefinitions(
  { 'E':
    {
      validator:   '0[1-9]|1[0-2]',
      cardinality: 2,
      prevalidator:
      [
        {
          validator:   '[0-1]',
          cardinality: 1,
        }
      ]
    }
  });
Inputmask.extendDefinitions(
  { 'A':
    {
      validator:   '[1-9]',
      cardinality: 1,
    },
    prevalidator: null
  });
Inputmask.extendDefinitions(
  { 'B':
    {
      validator:   '0[1-9]|[1-2][0-9]|3[0-1]',
      cardinality: 2,
      prevalidator:
      [
        {
          validator:   '[0-3]',
          cardinality: 1,
        }
      ]
    }
  });
Inputmask.extendDefinitions(
  { 'P':
    {  /*Year-120->Year->Year+120*/
      validator:   '1(89[5-9]|9[0-9][0-9])|2(0[0-9][0-9]|1([0-2][0-9]|3[0-5]))',
      cardinality: 4,
      prevalidator:
      [
        {
          validator:   '[1-2]',
          cardinality: 1,
        },
        {
          validator:   '1[8-9]|2[0-1]',
          cardinality: 2,
        },
        {
          validator:   '1(89|9[0-9])|2(0[0-9]|1[0-3])',
          cardinality: 3,
        }
      ]
    }
  });

Inputmask.extendDefinitions(
  { 'G':
    {
      validator:   '[0-9][0-9]',
      cardinality: 2,
      prevalidator:
      [
        {
          validator:   '[0-9]',
          cardinality: 1,
        }
      ]
    }
  });

The issue I'm having is I set the following as the mask:
$('#idOfTarget').inputmask({
  mask: [
    'E/B/P',
    'E/A/P',
    'E/B/G',
    'E/A/G',
    'D/B/P',
    'D/A/P',
    'D/B/G',
    'D/A/G',
  ]});

The issue I have is when I enter: 5/1_/____ <-- entering 8 where the cursor is there, it fails to continue, as though the second digit in the day of the month is using a cardinality of 1, because 0-3 work here, but 4-9 does not.  Further, if you enter: 33, it allows that for the month, even though the definition of B notes, under cardinality 2, 0[1-9]|[1-2][0-9]|3[0-1]
Is there an issue with my understanding of how to structure of the validator/prevalidators, or is this a bug in the input mask itself?

Ah, do note: names of the groups are seemingly random because it iterates through the valid combinations of multiple facets (Abbreviated Month Names, full month names, and other aspects) and generates conceptual identifiers for items that may not be present in that culture's short date format.  It then only emits the extendDefinitions of what's relevant for that given culture.

@AlexanderMorou ,
Do the individual masks work as expected?
It is possible that there is a problem in the alternation logic in inputmask.js.
I will have a look.

Each individual mask works as expected, it's when they're used in combination that the issue occurs.  I'm thinking it's guessing an improper cardinality. If I force two digits for day/month, the altnernation for year works as expected; however, if memory serves it still has issues when you type: MM/DD/YY the trailing '__' stays in place when the control is tabbed away from, is there another mechanism to allow two and four digit years where it re-determines the selected pattern upon movement away from that control?  Something a little more complete than just finding the closest match and running with that?
My javascript experience isn't sufficient at this point to diagnose the issue fully myself, else I would try my hand at it.


PR for additional units.

Dear Mr Amrhein.
I your project is great and was wondering if I could contribute some additional units for distance, time, and mass, for better functionality with astronomical workloads.
I have a working implementation ready, am open to change or drop it (in part or in full) if it's out of the scope of this repository, and I am still pretty new to contributing to open source software, so I would appreciate any notes or critiques you have.
Units added in the fork:

Duration

Sidereal Day
Julian Year
Gregorian Year
Earth Period

Length

Light Second
Light Year
Astronomical Unit
Parsec

Mass

Solar Mass
Earth Mass
Lunar Mass
Jupiter Mass

Speed

Speed of Light

— Luke.

Hi Luke,
thanks for your PR. I appreciate your proposal to make this package usable for astronomers.
But I'm somewhat reluctant to integrate the new units into the already defined quantities. I think someone dealing with light-years doesn't care about millimeters and vice versa. The currently pre-defined quantities are meant for "earth-bound" measures. Adding units of astronomical scale would raise the range of magnitude between the largest and the smallest unit up to 10^30 or even more. That does far exceed the precision of the types used for the numerical part of quantities. ('f64' has less then 16 significant decimal digits!)
Instead, I would prefer to define separate quantities with units of astronomical scale:
AstroTime:
ref-unit = Day
units = your proposed additions
AstroLength:
ref-unit: astronomical unit?
units: your proposed additions, plus kilometer as smallest unit? and Kiloparsec? / Megaparsec?
AstroMass:
ref-unit = Solar Mass?
units = your proposed additions
Is there also a unit at galactic scale?
For Speed I would add 'Speed of Light' as a unit to the existing quantity.
If you agree I would add three modules with the proposed quantities.
In any case, I would like you to review and double-check the definitions!
Best regards,
Michael

Hi Luke,
the proposal above jumps too short. Having additional quantities for the same base concept would render the derived quantities inconsistent. Dividing AstroLength by AstroTime wouldn't give Speed.
Providing quantities with units at a different scale needs to have a consistent set of base and derived quantities. I think this could best be done with a new crate, based on 'quantities', and providing an own definition of 'Length', 'Mass', 'Duration' etc., including all of the derived SI quantities. (A similar approach could be used for example with units at atomic and sub-atomic scale, usable for atomic and quantum physics.)
I will start a new package ('astronomical_quantities') and keep you posted. I still would like you to review the definitions and - if possible - provide some real-life test cases.
Best regards,
Michael

Hi Luke,
I created the crate 'astronomical-quantities' in a new branch named 'astro'.
May I ask you to have a look at the definitions and give me some feedback?
Thx in advance,
Michael

No feedback from OP.
Closing this.

Hey, thanks for taking the time to reviewing my pull request, and I totally understand your rational.
Sorry for not responding sooner. I'll take a look at astronomical_quantities ASAP.


gl_engine: element with gradient transparency rendered incorrectly

Lights of police strobe rendered incorrectly in Telegram police car animated sticker
Software or WebGpu rendered version has beautiful neat glowing
Gl rendered version has excessive glowing

Animation: https://gist.github.com/AlTeveDev/504ea59f8158fb955eb6c55bbc6913b1

+ @RuiwenTang

@AlTeveDev Hello, the fix will be in v0.15.7. Thanks.


Column widths get changed on continous maximize and restore of Browser Window

Hi,
First of all, thanks for this awesome utility.
We using the latest version of FloatHeader on IE 10. But this issue happens on Chrome also.
When keep maximize and restore browsers continuously after the FloatHeader is applied then widths of some of the columns in the grid gets reduced and some get increased.
Could you please check this issue. This seems to happen only with Grids that have textboxes inside TD.
(not to bother you but we are waiting on this issue for production migration)
Here is the Jsfiddle for the Grid Design
[https://jsfiddle.net/zLu0jhe1/]

IE/10 (happens in Chrome also)
Windows 7
jQuery v2.1.4
using floatThead version latest

Thank you once again !!

I haven't had a chance to look, but I suggest you try the latest 1.3 version while you wait for me

your jsfiddle did not include any javascript so i couldnt run it.
i made a jsfiddle that i could run here:
https://jsfiddle.net/4zwhwfyy/8/
I cant reproduce your issue. Please update your fiddle to include javascript code and any relevant css.

Thanks so much !!
I was able to fix this issue by adding padding to those column headers (TH) that were shrinking in width during maximize and restore.
/* To fix the column width so that on maximize and restore widths do not change*/
#thId_Case_1 {
padding: 0 1em 0 1em !important;
white-space: nowrap;
}
#thDt_Installment {
    padding: 0 2em 0 2em !important;
}

great


runpy.py errors with 4.4.4rc1 ValueError: path is on mount 'C:', start on mount 'F:'

Describe the bug
Script bug
To Reproduce
Steps to reproduce the behavior:
instaloader -l xxxx -p xxxx +list.txt --fast-update --no-profile-pic --no-captions --no-metadata-json --no-video-thumbnails --filename-pattern "{profile}{mediaid}{date_utc}"
Traceback (most recent call last):
File "c:\python\python38\lib\runpy.py", line 193, in run_module_as_main
return run_code(code, main_globals, None,
File "c:\python\python38\lib\runpy.py", line 86, in run_code
exec(code, run_globals)
File "C:\Python\Python38\Scripts\instaloader.exe_main.py", line 7, in
File "c:\python\python38\lib\site-packages\instaloader_main.py", line 239, in main
parser = ArgumentParser(description=doc, add_help=False, usage=usage_string(),
File "c:\python\python38\lib\site-packages\instaloader_main.py", line 32, in usage_string
argv0 = get_simple_argv0()
File "c:\python\python38\lib\site-packages\instaloader_main_.py", line 23, in get_simple_argv0
dirname = os.path.relpath(os.path.dirname(sys.argv[0]))
File "c:\python\python38\lib\ntpath.py", line 703, in relpath
raise ValueError("path is on mount %r, start on mount %r" % (
ValueError: path is on mount 'C:', start on mount 'F:'
Expected behavior
download profiles with the highest resolution
Error messages and tracebacks
If applicable, add error messages and tracebacks to help explain your problem.
Instaloader version
instaloader 4.4.4rc1
Additional context
instaloader 4.4.3 works perfectly fine. I just wanted to upgrade to download the highest resolution.

Duplicate of #671.


Bulk schema updates

We should generalize the schema API to allow POST with a JSON document containing one or more schemas with one or more tables and create all schema elements in one request.

[x] Need to handle arbitrary foreign key constraints between tables.
[x] Need to handle collisions with existing schema elements

One form supports creating schemas and their constituent tables all at once
One form supports adding tables to existing schemas

@chiragsanghvi  this is implemented with basic tests and documentation in 91055a9e78f09c858400a4d9af5c7f07aaa59a49
The interface is to POST to the "schema" collective resource with one of two document formats:

The same {"schemas": { ... }} structure which is returned by GET

All specified schemas are added to the catalog or raise a conflict if they exist

A list [ ... ] of individual schema and/or table documents

Allows adding tables to existing schemas

In both cases, the schema documents can contain embedded table definitions which are also added. The tables MAY have circular foreign key dependencies and the server builds the new model elements in two phases to first define all tables and then add the reference constraints.

Hopefully @chiragsanghvi can review that the interface spec makes sense and is usable for his purposes.

I think this has gotten enough exercise in other test scenarios so I am closing it in spite of lack of feedback here...


lint-staged hang for npm run test

Description
I have created app using create-react-app and I have been trying to set up lint-staged with husky. I have 4 stages but it hangs on npm run test.

Steps to reproduce
create react app using create-react-app and then replace following package.json into project directory.
{
  "name": "dsp-admin-fe",
  "version": "0.1.0",
  "private": true,
  "jest": {
    "collectCoverageFrom": ["src/**/*.js"],
    "coverageThreshold": {
      "global": {
        "branches": 80,
        "functions": 80,
        "lines": 80,
        "statements": 80
      }
    }
  },
  "dependencies": {
    "axios": "^0.18.0",
    "react": "^16.8.4",
    "react-dom": "^16.8.4",
    "react-redux": "^6.0.1",
    "react-router-dom": "^5.0.0",
    "react-scripts": "2.1.8",
    "redux": "^4.0.1",
    "redux-thunk": "^2.3.0",
    "standard-http-error": "^2.0.1",
    "styled-components": "^4.1.3"
  },
  "scripts": {
    "start": "react-scripts start",
    "build": "react-scripts build",
    "test": "react-scripts test",
    "eject": "react-scripts eject"
  },
  "eslintConfig": {
    "extends": "react-app"
  },
  "browserslist": [
    ">0.2%",
    "not dead",
    "not ie <= 11",
    "not op_mini all"
  ],
  "devDependencies": {
    "eslint-config-airbnb": "^17.1.0",
    "eslint-config-prettier": "^4.1.0",
    "eslint-plugin-import": "^2.16.0",
    "eslint-plugin-jsx-a11y": "^6.2.1",
    "eslint-plugin-prettier": "^3.0.1",
    "eslint-plugin-react": "^7.12.4",
    "husky": "^1.3.1",
    "install": "^0.12.2",
    "lint-staged": "^8.1.5",
    "prettier": "1.16.4"
  },
  "husky": {
    "hooks": {
      "pre-commit": "lint-staged"
    }
  },
  "lint-staged": {
    "*.js": [
      "prettier --write",
      "eslint src/ --fix",
      "npm run test",
      "git add"
    ]
  }
}

Debug Logs

expand to view
COPY THE DEBUG LOGS HERE

Environment

OS:  macOS High Sierra
Node.js: v10.12.0
lint-staged: "^8.1.5"

I’m closing since there are no debug logs attached. Unless these are provided I believe we can’t help any further.

@okonet I had my lint-staged and it works!. I don't what was the issue but its seems fine now. But still if i use npm run test it hangs forever. Might be CI=true is doing some magic.
"scripts": {
    ...
    "test": "react-scripts test",
    "test:staged": "cross-env CI=true react-scripts test --coverage --env=jsdom --findRelatedTests"
  },

"lint-staged": {
    "*.js": [
      "prettier --write",
      "eslint src/ --fix",
      "npm run test:staged",
      "git add"
    ]
  }

Just add in package.json:
  "scripts": {
     ...
    "test:staged": "CI=true npm test",
     ...
  },

and add to .lintstagedrc:
{
    "*.js": [
      ...
      "npm run test:staged"
    ]
}


Left Menu Overlapping Content on Medium Screens (About Page)

Tell us what happened
On medium-sized screens, the left menu overlaps the main content, making it difficult to view or interact with the underlying items.
Affected components
The left menu and the main content layout.
How do we reproduce it?
1-Open the website on a medium screen (e.g., 768px - 1024px width).
2-Navigate to a page with the left menu visible.
3-Observe how the left menu overlaps the main content instead of properly resizing or staying aligned.
Screenshots

thanks for reporting @Aymen-drid, it's related to the magic portfolio repo and we have another issue reported already, so i'm closing this one


[DO NOT MERGE] test promote charm workflow

Applicable spec:
Overview

Rationale

Juju Events Changes

Module Changes

Library Changes

Checklist

[ ] The charm style guide was applied
[ ] The contributing guide was applied
[ ] The changes are compliant with ISD054 - Managing Charm Complexity
[ ] The documentation is generated using src-docs
[ ] The documentation for charmhub is updated.
[ ] The PR is tagged with appropriate label (urgent, trivial, complex)

Testing done


alarms

hi
it wont apply the 2nd alarm, just goes back to blank once its clicked, tried unticked first alarm to use 2nd alarm incase that stopped it but it seems to be an issue with just the 2nd alarm.
also not a bug not sure where to ask, but could we add option to show threads icon timer please
many thanks

Does Threads of Fate show up as a debuff while on cooldown? If so I should be able to get it added (and honestly more useful than Living Death - which was added as a request).
I'm about to push an update that should fix the 2nd alarm. I had a class äudio-file instead of audio-file. Woops. :) You should be able to select an audio file once it is live.

Yh it does pop up on buffs I get so lost never know when it's gone x it's amazing I only found it today reminds me of wow, really needed this for zuk thanks so much for your time Sent from my GalaxySent from my Galaxy
-------- Original message --------From: Nadya @.> Date: 24/09/2023  03:02  (GMT+00:00) To: NadyaNayme/NyusNecroJobGauge @.> Cc: Lsapphire @.>, Author @.> Subject: Re: [NadyaNayme/NyusNecroJobGauge] alarms (Issue #1)
Does Threads of Fate show up as a debuff while on cooldown? If so I should be able to get it added (and honestly more useful than Living Death - which was added as a request).
I'm about to push an update that should fix the 2nd alarm. I had a class äudio-file instead of audio-file. Woops. :) You should be able to select an audio file once it is live.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

It shows up on buffs for the 8s it lasts but it doesn't show up as a debuff. This means tracking it would be pretty inconsistent over the duration of the cooldown. It could drift off by a few ticks or even a few seconds depending on server lag.
If you use it and then immediately attack it might also be possible that I don't see the buff at all. I'll need to test that but incantations taking a GCD might be the saving grace here. A GCD should be long enough for the buff to at least appear on the buffs bar.


Option to add additional AR Foundation components

Describe the problem
The AR Foundation wants many of its components to sit on the Camera Parent or the Camera.
But, adding components to the MixedRealityPlayspace and Main Camera is risky as the tooling code makes them easy to replace (using Add to Scene and Configure) and each MRTK version update recommends (has recommended) deleting and re-adding them.
The current MRTK AR solution allows you to add the AR Session, Camera Manager, et.al. to the MixedRealityPlayspace and Main Camera using the Toolkit.
However, there are many more components that may need to be included:
AR Point Cloud Manager, AR Plane Manager, AR Anchor Manager, AR Occlusion Manager, and many others
In addition, there are additional configuration options that may need to be set even on the components already being added (e.g. a custom material is needed for the AR Camera Background when using the Universal Render Pipeline).
Currently the solution seems to be either:
a) add all the components in the scene to the MRP or Main Camera and deal with the risk of accidental replacement... essentially the same situation that existed prior to the introduction of the MRTK AR package.
b) Manually edit the UnityARCameraSettings file to change which AR Foundation components are added which has the risk of the file being overwritten on a release update (or if you have created a new file having the reference to your new file replaced in the UnityARCameraSettingsProfile, etc.).
We need a way to configure an arbitrary list of components to be added  to each (the MixedRealityPlayspace and Main Camera), either in code or via prefabs.

We appreciate your feedback and thank you for reporting this issue.
Microsoft Mixed Reality Toolkit version 2 (MRTK2) is currently in limited support. This means that Microsoft is only fixing high priority security issues. Unfortunately, this issue does not meet the necessary priority and will be closed. If you strongly feel that this issue deserves more attention, please open a new issue and explain why it is important.
Microsoft recommends that all new HoloLens 2 Unity applications use MRTK3 instead of MRTK2.
Please note that MRTK3 was released in August 2023. It features an all-new architecture for developing rich mixed reality experiences and has a minimum requirement of Unity 2021.3 LTS. For more information about MRTK3, please visit https://www.mixedrealitytoolkit.org.
Thank you for your continued support of the Mixed Reality Toolkit!


[jvm-packages]Error in running java Demo code

I am running the java Demo code copied from https://github.com/dmlc/xgboost/blob/master/jvm-packages/xgboost4j-example/src/main/java/ml/dmlc/xgboost4j/java/example/BasicWalkThrough.java
But an error is given. The error information appears:
七月 02, 2016 10:46:22 下午 ml.dmlc.xgboost4j.java.NativeLibLoader smartLoad
严重: failed to load library from both native path and jar
七月 02, 2016 10:46:22 下午 ml.dmlc.xgboost4j.java.DMatrix
严重: load native library failed.
七月 02, 2016 10:46:22 下午 ml.dmlc.xgboost4j.java.DMatrix
严重: java.io.FileNotFoundException: File /lib/libxgboost4j.dylib was not found inside JAR.
Exception in thread "main" java.lang.UnsatisfiedLinkError: ml.dmlc.xgboost4j.java.XGBoostJNI.XGDMatrixCreateFromFile(Ljava/lang/String;I[J)I
at ml.dmlc.xgboost4j.java.XGBoostJNI.XGDMatrixCreateFromFile(Native Method)
at ml.dmlc.xgboost4j.java.DMatrix.(DMatrix.java:83)
at newtest.mytest.main(mytest.java:27)
the code is :
package newtest;
import java.io.File;
import java.io.IOException;
import java.util.Arrays;
import java.util.HashMap;
import ml.dmlc.xgboost4j.java.Booster;
import ml.dmlc.xgboost4j.java.DMatrix;
import ml.dmlc.xgboost4j.java.XGBoost;
import ml.dmlc.xgboost4j.java.XGBoostError;
//import ml.dmlc.xgboost4j.java.example.util.DataLoader;
public class mytest {
public static boolean checkPredicts(float[][] fPredicts, float[][] sPredicts) {
if (fPredicts.length != sPredicts.length) {
return false;
}
    for (int i = 0; i < fPredicts.length; i++) {
      if (!Arrays.equals(fPredicts[i], sPredicts[i])) {
        return false;
      }
    }

    return true;
  }
public static void main(String []  args) throws XGBoostError{
    System.out.println("test");
    DMatrix trainMat = new DMatrix("/Users/huzikun/xgboost/demo/data/agaricus.txt.train");
    DMatrix testMat = new DMatrix("/Users/huzikun/xgboost/demo/data/agaricus.txt.test");

    HashMap<String, Object> params = new HashMap<String, Object>();
    params.put("eta", 1.0);
    params.put("max_depth", 2);
    params.put("silent", 1);
    params.put("objective", "binary:logistic");

    HashMap<String, DMatrix> watches = new HashMap<String, DMatrix>();
    watches.put("train", trainMat);
    watches.put("test", testMat);

    //set round
    int round = 2;

    //train a boost model
    Booster booster = XGBoost.train(trainMat, params, round, watches, null, null);

    //predict
    float[][] predicts = booster.predict(testMat);

    //save model to modelPath
    File file = new File("./model");
    if (!file.exists()) {
      file.mkdirs();
    }

    String modelPath = "./model/xgb.model";
    booster.saveModel(modelPath);

    //dump model
    booster.getModelDump("./model/dump.raw.txt", false);

    //dump model with feature map
    booster.getModelDump("../../demo/data/featmap.txt", false);

    //save dmatrix into binary buffer
    testMat.saveBinary("./model/dtest.buffer");

    //reload model and data
    Booster booster2 = XGBoost.loadModel("./model/xgb.model");
    DMatrix testMat2 = new DMatrix("./model/dtest.buffer");
    float[][] predicts2 = booster2.predict(testMat2);

    //check the two predicts
    System.out.println(checkPredicts(predicts, predicts2));

    System.out.println("start build dmatrix from csr sparse data ...");
    //build dmatrix from CSR Sparse Matrix
    /*DataLoader.CSRSparseData spData;

		spData = DataLoader.loadSVMFile("/Users/huzikun/xgboost/demo/data/agaricus.txt.train");

    DMatrix trainMat2 = new DMatrix(spData.rowHeaders, spData.colIndex, spData.data,
            DMatrix.SparseType.CSR);
    trainMat2.setLabel(spData.labels);

    //specify watchList
    HashMap<String, DMatrix> watches2 = new HashMap<String, DMatrix>();
    watches2.put("train", trainMat2);
    watches2.put("test", testMat2);
    Booster booster3 = XGBoost.train(trainMat2, params, round, watches2, null, null);
    float[][] predicts3 = booster3.predict(testMat2);

    //check predicts
    System.out.println(checkPredicts(predicts, predicts3));*/
	System.out.println("fuckyou");
}

}
It appears that the error happens when this line is running:
DMatrix trainMat = new DMatrix("/Users/huzikun/xgboost/demo/data/agaricus.txt.train");
DMatrix testMat = new DMatrix("/Users/huzikun/xgboost/demo/data/agaricus.txt.test");
This problem has bothered me for two days. I would appreciate it if anyone could help.
Thanks a lot.

have you build the library successfully by running mvn package?

After running mvn package under ivm-packages, it shows error information as follows:
ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test (default-test) on project xgboost4j: There are test failures.
[ERROR]
So I run mvn -DskipTests=true package. And get xgboos4j-0.5.jar file in jam-package/x4jboost/target. I use it in my DEMO.java's lib. But it doesn't work.

you have to ensure that you can pass the unit test before you use it in your proj.....so when you found some error in your local side, you'd find out the reason such as native lib did not get compiled successfully instead of skipping

Set my JAVA_HOME as /Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk/Contents/Home. So I suppose I have set it correctly. I couldn't find out why I can run mvn package successfully. Is there any guide to follow under such situation?

sorry....I didn't understand your comments....

I'm sorry that I didn't make it clear. After running mvn package under jam-packages, I see error information below:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test (default-test) on project xgboost4j:
I don't know what does this error information means.

would you post complete output in your screen?

The complete output after running mvn package is as follow:
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for ml.dmlc:xgboost4j:jar:0.5
[WARNING] 'build.plugins.plugin.version' for org.codehaus.mojo:exec-maven-plugin is missing. @ line 32, column 21
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] xgboost-jvm
[INFO] xgboost4j
[INFO] xgboost4j-spark
[INFO] xgboost4j-flink
[INFO] xgboost4j-example
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building xgboost-jvm 0.5
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- scalastyle-maven-plugin:0.8.0:check (checkstyle) @ xgboost-jvm ---
[WARNING] sourceDirectory is not specified or does not exist value=/Users/huzikun/xgboost/jvm-packages/src/main/scala
[WARNING] testSourceDirectory is not specified or does not exist value=/Users/huzikun/xgboost/jvm-packages/src/test/scala
Processed 0 file(s)
Found 0 errors
Found 0 warnings
Found 0 infos
Finished in 68 ms
[INFO]
[INFO] --- maven-checkstyle-plugin:2.17:check (checkstyle) @ xgboost-jvm ---
[INFO]
[INFO] --- scala-maven-plugin:3.2.2:compile (default) @ xgboost-jvm ---
[WARNING]  Expected all dependencies to require Scala version: 2.10.5
[WARNING]  ml.dmlc:xgboost-jvm:0.5 requires scala version: 2.10.5
[WARNING]  org.scala-lang:scala-compiler:2.10.5 requires scala version: 2.10.5
[WARNING]  org.scala-lang:scala-reflect:2.10.5 requires scala version: 2.10.5
[WARNING]  ml.dmlc:xgboost-jvm:0.5 requires scala version: 2.10.5
[WARNING]  org.scalatest:scalatest_2.10:2.2.6 requires scala version: 2.10.6
[WARNING] Multiple versions of scala libraries detected!
[INFO] No sources to compile
[INFO]
[INFO] --- scala-maven-plugin:3.2.2:compile (compile) @ xgboost-jvm ---
[WARNING]  Expected all dependencies to require Scala version: 2.10.5
[WARNING]  ml.dmlc:xgboost-jvm:0.5 requires scala version: 2.10.5
[WARNING]  org.scala-lang:scala-compiler:2.10.5 requires scala version: 2.10.5
[WARNING]  org.scala-lang:scala-reflect:2.10.5 requires scala version: 2.10.5
[WARNING]  ml.dmlc:xgboost-jvm:0.5 requires scala version: 2.10.5
[WARNING]  org.scalatest:scalatest_2.10:2.2.6 requires scala version: 2.10.6
[WARNING] Multiple versions of scala libraries detected!
[INFO] No sources to compile
[INFO]
[INFO] --- scala-maven-plugin:3.2.2:testCompile (test-compile) @ xgboost-jvm ---
[WARNING]  Expected all dependencies to require Scala version: 2.10.5
[WARNING]  ml.dmlc:xgboost-jvm:0.5 requires scala version: 2.10.5
[WARNING]  org.scala-lang:scala-compiler:2.10.5 requires scala version: 2.10.5
[WARNING]  org.scala-lang:scala-reflect:2.10.5 requires scala version: 2.10.5
[WARNING]  ml.dmlc:xgboost-jvm:0.5 requires scala version: 2.10.5
[WARNING]  org.scalatest:scalatest_2.10:2.2.6 requires scala version: 2.10.6
[WARNING] Multiple versions of scala libraries detected!
[INFO] No sources to compile
[INFO]
[INFO] --- scalatest-maven-plugin:1.0:test (test) @ xgboost-jvm ---
Discovery starting.
Discovery completed in 39 milliseconds.
Run starting. Expected test count is: 0
DiscoverySuite:
Run completed in 97 milliseconds.
Total number of tests run: 0
Suites: completed 1, aborted 0
Tests: succeeded 0, failed 0, canceled 0, ignored 0, pending 0
No tests were executed.
[INFO]
[INFO] --- maven-assembly-plugin:2.6:single (make-assembly) @ xgboost-jvm ---
[INFO] Assemblies have been skipped per configuration of the skipAssembly parameter.
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building xgboost4j 0.5
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- scalastyle-maven-plugin:0.8.0:check (checkstyle) @ xgboost4j ---
Processed 7 file(s)
Found 0 errors
Found 0 warnings
Found 0 infos
Finished in 448 ms
[INFO]
[INFO] --- maven-checkstyle-plugin:2.17:check (checkstyle) @ xgboost4j ---
[INFO]
[INFO] --- exec-maven-plugin:1.5.0:exec (native) @ xgboost4j ---
build java wrapper
c++ -std=c++0x -Wall -O3 -msse2  -Wno-unknown-pragmas -funroll-loops -Iinclude   -Idmlc-core/include -Irabit/include -fPIC -fopenmp -I/Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk/Contents/Home/include -I./java -I/Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk/Contents/Home/include/darwin -shared -o jvm-packages/lib/libxgboost4j.so jvm-packages/xgboost4j/src/native/xgboost4j.cpp build/learner.o build/logging.o build/c_api/c_api.o build/c_api/c_api_error.o build/common/common.o build/data/data.o build/data/simple_csr_source.o build/data/simple_dmatrix.o build/data/sparse_page_dmatrix.o build/data/sparse_page_raw_format.o build/data/sparse_page_source.o build/data/sparse_page_writer.o build/gbm/gblinear.o build/gbm/gbm.o build/gbm/gbtree.o build/metric/elementwise_metric.o build/metric/metric.o build/metric/multiclass_metric.o build/metric/rank_metric.o build/objective/multiclass_obj.o build/objective/objective.o build/objective/rank_obj.o build/objective/regression_obj.o build/tree/tree_model.o build/tree/tree_updater.o build/tree/updater_colmaker.o build/tree/updater_histmaker.o build/tree/updater_prune.o build/tree/updater_refresh.o build/tree/updater_skmaker.o build/tree/updater_sync.o dmlc-core/libdmlc.a rabit/lib/librabit.a -pthread -lm  -fopenmp
In file included from jvm-packages/xgboost4j/src/native/xgboost4j.cpp:16:
In file included from include/xgboost/base.h:10:
dmlc-core/include/dmlc/omp.h:13:9: warning: Warning: OpenMP is not available, project will be compiled into single-thread code. Use OpenMP-enabled compiler to get benefit of multi-threading. [-W#pragma-messages]
#pragma message("Warning: OpenMP is not available, "
^
1 warning generated.
ld: library not found for -lgomp
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [jvm-packages/lib/libxgboost4j.so] Error 1
move native lib
mv: rename lib/libxgboost4j.so to xgboost4j/src/main/resources/lib/libxgboost4j.dylib: No such file or directory
complete
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ xgboost4j ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO]
[INFO] --- scala-maven-plugin:3.2.2:compile (default) @ xgboost4j ---
[WARNING]  Expected all dependencies to require Scala version: 2.10.5
[WARNING]  ml.dmlc:xgboost4j:0.5 requires scala version: 2.10.5
[WARNING]  org.scala-lang:scala-compiler:2.10.5 requires scala version: 2.10.5
[WARNING]  org.scala-lang:scala-reflect:2.10.5 requires scala version: 2.10.5
[WARNING]  ml.dmlc:xgboost4j:0.5 requires scala version: 2.10.5
[WARNING]  org.scalatest:scalatest_2.10:2.2.6 requires scala version: 2.10.6
[WARNING] Multiple versions of scala libraries detected!
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ xgboost4j ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- scala-maven-plugin:3.2.2:compile (compile) @ xgboost4j ---
[WARNING]  Expected all dependencies to require Scala version: 2.10.5
[WARNING]  ml.dmlc:xgboost4j:0.5 requires scala version: 2.10.5
[WARNING]  org.scala-lang:scala-compiler:2.10.5 requires scala version: 2.10.5
[WARNING]  org.scala-lang:scala-reflect:2.10.5 requires scala version: 2.10.5
[WARNING]  ml.dmlc:xgboost4j:0.5 requires scala version: 2.10.5
[WARNING]  org.scalatest:scalatest_2.10:2.2.6 requires scala version: 2.10.6
[WARNING] Multiple versions of scala libraries detected!
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ xgboost4j ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/huzikun/xgboost/jvm-packages/xgboost4j/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ xgboost4j ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- scala-maven-plugin:3.2.2:testCompile (test-compile) @ xgboost4j ---
[WARNING]  Expected all dependencies to require Scala version: 2.10.5
[WARNING]  ml.dmlc:xgboost4j:0.5 requires scala version: 2.10.5
[WARNING]  org.scala-lang:scala-compiler:2.10.5 requires scala version: 2.10.5
[WARNING]  org.scala-lang:scala-reflect:2.10.5 requires scala version: 2.10.5
[WARNING]  ml.dmlc:xgboost4j:0.5 requires scala version: 2.10.5
[WARNING]  org.scalatest:scalatest_2.10:2.2.6 requires scala version: 2.10.6
[WARNING] Multiple versions of scala libraries detected!
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.19.1:test (default-test) @ xgboost4j ---

T E S T S
Running TestSuite
[ERROR]: No test suite found.  Nothing to run
org.testng.TestNGException:
Failure in JUnit mode for class ml.dmlc.xgboost4j.java.BoosterImplTest: could not create/run JUnit test suite:
cannot retrieve JUnit method
at org.testng.junit.JUnitTestRunner.runFailed(JUnitTestRunner.java:230)
at org.testng.junit.JUnitTestRunner.start(JUnitTestRunner.java:223)
at org.testng.junit.JUnitTestRunner.run(JUnitTestRunner.java:204)
at org.testng.TestRunner$2.run(TestRunner.java:639)
at org.testng.TestRunner.runWorkers(TestRunner.java:1030)
at org.testng.TestRunner.privateRunJUnit(TestRunner.java:664)
at org.testng.TestRunner.run(TestRunner.java:576)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:331)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:326)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:288)
at org.testng.SuiteRunner.run(SuiteRunner.java:193)
at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:910)
at org.testng.TestNG.runSuitesLocally(TestNG.java:879)
at org.testng.TestNG.run(TestNG.java:787)
at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:132)
at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeMulti(TestNGDirectoryTestSuite.java:198)
at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:94)
at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:147)
at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:290)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:242)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:121)
org.testng.TestNGException:
Failure in JUnit mode for class ml.dmlc.xgboost4j.java.DMatrixTest: could not create/run JUnit test suite:
cannot retrieve JUnit method
at org.testng.junit.JUnitTestRunner.runFailed(JUnitTestRunner.java:230)
at org.testng.junit.JUnitTestRunner.start(JUnitTestRunner.java:223)
at org.testng.junit.JUnitTestRunner.run(JUnitTestRunner.java:204)
at org.testng.TestRunner$2.run(TestRunner.java:639)
at org.testng.TestRunner.runWorkers(TestRunner.java:1030)
at org.testng.TestRunner.privateRunJUnit(TestRunner.java:664)
at org.testng.TestRunner.run(TestRunner.java:576)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:331)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:326)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:288)
at org.testng.SuiteRunner.run(SuiteRunner.java:193)
at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:910)
at org.testng.TestNG.runSuitesLocally(TestNG.java:879)
at org.testng.TestNG.run(TestNG.java:787)
at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:132)
at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeMulti(TestNGDirectoryTestSuite.java:198)
at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:94)
at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:147)
at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:290)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:242)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:121)
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.281 sec - in TestSuite
Results :
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO] --- scalatest-maven-plugin:1.0:test (test) @ xgboost4j ---
Discovery starting.
Discovery completed in 98 milliseconds.
Run starting. Expected test count is: 7
ScalaBoosterImplSuite:
七月 07, 2016 12:09:29 上午 ml.dmlc.xgboost4j.java.NativeLibLoader smartLoad
严重: failed to load library from both native path and jar
七月 07, 2016 12:09:29 上午 ml.dmlc.xgboost4j.java.DMatrix
严重: load native library failed.
七月 07, 2016 12:09:29 上午 ml.dmlc.xgboost4j.java.DMatrix
严重: java.io.FileNotFoundException: File /lib/libxgboost4j.dylib was not found inside JAR.
*** RUN ABORTED ***
java.lang.UnsatisfiedLinkError: ml.dmlc.xgboost4j.java.XGBoostJNI.XGDMatrixCreateFromFile(Ljava/lang/String;I[J)I
at ml.dmlc.xgboost4j.java.XGBoostJNI.XGDMatrixCreateFromFile(Native Method)
at ml.dmlc.xgboost4j.java.DMatrix.(DMatrix.java:83)
at ml.dmlc.xgboost4j.scala.DMatrix.(DMatrix.scala:31)
at ml.dmlc.xgboost4j.scala.ScalaBoosterImplSuite$$anonfun$1.apply$mcV$sp(ScalaBoosterImplSuite.scala:81)
at ml.dmlc.xgboost4j.scala.ScalaBoosterImplSuite$$anonfun$1.apply(ScalaBoosterImplSuite.scala:80)
at ml.dmlc.xgboost4j.scala.ScalaBoosterImplSuite$$anonfun$1.apply(ScalaBoosterImplSuite.scala:80)
at org.scalatest.Transformer$$anonfun$apply$1.apply$mcV$sp(Transformer.scala:22)
at org.scalatest.OutcomeOf$class.outcomeOf(OutcomeOf.scala:85)
at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
at org.scalatest.Transformer.apply(Transformer.scala:22)
...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] xgboost-jvm ........................................ SUCCESS [  2.374 s]
[INFO] xgboost4j .......................................... FAILURE [  3.378 s]
[INFO] xgboost4j-spark .................................... SKIPPED
[INFO] xgboost4j-flink .................................... SKIPPED
[INFO] xgboost4j-example .................................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.866 s
[INFO] Finished at: 2016-07-07T00:09:29+08:00
[INFO] Final Memory: 23M/457M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.scalatest:scalatest-maven-plugin:1.0:test (test) on project xgboost4j: There are test failures -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn  -rf :xgboost4j

so, it says
ld: library not found for -lgomp clang: error: linker command failed with exit code 1 (use -v to see invocation)
run export CXX=clang-omp++   then compile

Thanks for advice.
After run export CXX=clang-omp++, I run mvn compile, it succeed.
But then I run mvn package, it still failed, the error information is as follows:
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for ml.dmlc:xgboost4j:jar:0.5
[WARNING] 'build.plugins.plugin.version' for org.codehaus.mojo:exec-maven-plugin is missing. @ line 32, column 21
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] xgboost-jvm
[INFO] xgboost4j
[INFO] xgboost4j-spark
[INFO] xgboost4j-flink
[INFO] xgboost4j-example
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building xgboost-jvm 0.5
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- scalastyle-maven-plugin:0.8.0:check (checkstyle) @ xgboost-jvm ---
[WARNING] sourceDirectory is not specified or does not exist value=/Users/huzikun/xgboost/jvm-packages/src/main/scala
[WARNING] testSourceDirectory is not specified or does not exist value=/Users/huzikun/xgboost/jvm-packages/src/test/scala
Processed 0 file(s)
Found 0 errors
Found 0 warnings
Found 0 infos
Finished in 67 ms
[INFO]
[INFO] --- maven-checkstyle-plugin:2.17:check (checkstyle) @ xgboost-jvm ---
[INFO]
[INFO] --- scala-maven-plugin:3.2.2:compile (default) @ xgboost-jvm ---
[WARNING]  Expected all dependencies to require Scala version: 2.10.5
[WARNING]  ml.dmlc:xgboost-jvm:0.5 requires scala version: 2.10.5
[WARNING]  org.scala-lang:scala-compiler:2.10.5 requires scala version: 2.10.5
[WARNING]  org.scala-lang:scala-reflect:2.10.5 requires scala version: 2.10.5
[WARNING]  ml.dmlc:xgboost-jvm:0.5 requires scala version: 2.10.5
[WARNING]  org.scalatest:scalatest_2.10:2.2.6 requires scala version: 2.10.6
[WARNING] Multiple versions of scala libraries detected!
[INFO] No sources to compile
[INFO]
[INFO] --- scala-maven-plugin:3.2.2:compile (compile) @ xgboost-jvm ---
[WARNING]  Expected all dependencies to require Scala version: 2.10.5
[WARNING]  ml.dmlc:xgboost-jvm:0.5 requires scala version: 2.10.5
[WARNING]  org.scala-lang:scala-compiler:2.10.5 requires scala version: 2.10.5
[WARNING]  org.scala-lang:scala-reflect:2.10.5 requires scala version: 2.10.5
[WARNING]  ml.dmlc:xgboost-jvm:0.5 requires scala version: 2.10.5
[WARNING]  org.scalatest:scalatest_2.10:2.2.6 requires scala version: 2.10.6
[WARNING] Multiple versions of scala libraries detected!
[INFO] No sources to compile
[INFO]
[INFO] --- scala-maven-plugin:3.2.2:testCompile (test-compile) @ xgboost-jvm ---
[WARNING]  Expected all dependencies to require Scala version: 2.10.5
[WARNING]  ml.dmlc:xgboost-jvm:0.5 requires scala version: 2.10.5
[WARNING]  org.scala-lang:scala-compiler:2.10.5 requires scala version: 2.10.5
[WARNING]  org.scala-lang:scala-reflect:2.10.5 requires scala version: 2.10.5
[WARNING]  ml.dmlc:xgboost-jvm:0.5 requires scala version: 2.10.5
[WARNING]  org.scalatest:scalatest_2.10:2.2.6 requires scala version: 2.10.6
[WARNING] Multiple versions of scala libraries detected!
[INFO] No sources to compile
[INFO]
[INFO] --- scalatest-maven-plugin:1.0:test (test) @ xgboost-jvm ---
Discovery starting.
Discovery completed in 35 milliseconds.
Run starting. Expected test count is: 0
DiscoverySuite:
Run completed in 97 milliseconds.
Total number of tests run: 0
Suites: completed 1, aborted 0
Tests: succeeded 0, failed 0, canceled 0, ignored 0, pending 0
No tests were executed.
[INFO]
[INFO] --- maven-assembly-plugin:2.6:single (make-assembly) @ xgboost-jvm ---
[INFO] Assemblies have been skipped per configuration of the skipAssembly parameter.
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building xgboost4j 0.5
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- scalastyle-maven-plugin:0.8.0:check (checkstyle) @ xgboost4j ---
Processed 7 file(s)
Found 0 errors
Found 0 warnings
Found 0 infos
Finished in 488 ms
[INFO]
[INFO] --- maven-checkstyle-plugin:2.17:check (checkstyle) @ xgboost4j ---
[INFO]
[INFO] --- exec-maven-plugin:1.5.0:exec (native) @ xgboost4j ---
build java wrapper
clang-omp++ -std=c++0x -Wall -O3 -msse2  -Wno-unknown-pragmas -funroll-loops -Iinclude   -Idmlc-core/include -Irabit/include -fPIC -fopenmp -I/Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk/Contents/Home/include -I./java -I/Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk/Contents/Home/include/darwin -shared -o jvm-packages/lib/libxgboost4j.so jvm-packages/xgboost4j/src/native/xgboost4j.cpp build/learner.o build/logging.o build/c_api/c_api.o build/c_api/c_api_error.o build/common/common.o build/data/data.o build/data/simple_csr_source.o build/data/simple_dmatrix.o build/data/sparse_page_dmatrix.o build/data/sparse_page_raw_format.o build/data/sparse_page_source.o build/data/sparse_page_writer.o build/gbm/gblinear.o build/gbm/gbm.o build/gbm/gbtree.o build/metric/elementwise_metric.o build/metric/metric.o build/metric/multiclass_metric.o build/metric/rank_metric.o build/objective/multiclass_obj.o build/objective/objective.o build/objective/rank_obj.o build/objective/regression_obj.o build/tree/tree_model.o build/tree/tree_updater.o build/tree/updater_colmaker.o build/tree/updater_histmaker.o build/tree/updater_prune.o build/tree/updater_refresh.o build/tree/updater_skmaker.o build/tree/updater_sync.o dmlc-core/libdmlc.a rabit/lib/librabit.a -pthread -lm  -fopenmp
make: clang-omp++: No such file or directory
make: *** [jvm-packages/lib/libxgboost4j.so] Error 1
move native lib
mv: rename lib/libxgboost4j.so to xgboost4j/src/main/resources/lib/libxgboost4j.dylib: No such file or directory
complete
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ xgboost4j ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO]
[INFO] --- scala-maven-plugin:3.2.2:compile (default) @ xgboost4j ---
[WARNING]  Expected all dependencies to require Scala version: 2.10.5
[WARNING]  ml.dmlc:xgboost4j:0.5 requires scala version: 2.10.5
[WARNING]  org.scala-lang:scala-compiler:2.10.5 requires scala version: 2.10.5
[WARNING]  org.scala-lang:scala-reflect:2.10.5 requires scala version: 2.10.5
[WARNING]  ml.dmlc:xgboost4j:0.5 requires scala version: 2.10.5
[WARNING]  org.scalatest:scalatest_2.10:2.2.6 requires scala version: 2.10.6
[WARNING] Multiple versions of scala libraries detected!
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ xgboost4j ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- scala-maven-plugin:3.2.2:compile (compile) @ xgboost4j ---
[WARNING]  Expected all dependencies to require Scala version: 2.10.5
[WARNING]  ml.dmlc:xgboost4j:0.5 requires scala version: 2.10.5
[WARNING]  org.scala-lang:scala-compiler:2.10.5 requires scala version: 2.10.5
[WARNING]  org.scala-lang:scala-reflect:2.10.5 requires scala version: 2.10.5
[WARNING]  ml.dmlc:xgboost4j:0.5 requires scala version: 2.10.5
[WARNING]  org.scalatest:scalatest_2.10:2.2.6 requires scala version: 2.10.6
[WARNING] Multiple versions of scala libraries detected!
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ xgboost4j ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/huzikun/xgboost/jvm-packages/xgboost4j/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ xgboost4j ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- scala-maven-plugin:3.2.2:testCompile (test-compile) @ xgboost4j ---
[WARNING]  Expected all dependencies to require Scala version: 2.10.5
[WARNING]  ml.dmlc:xgboost4j:0.5 requires scala version: 2.10.5
[WARNING]  org.scala-lang:scala-compiler:2.10.5 requires scala version: 2.10.5
[WARNING]  org.scala-lang:scala-reflect:2.10.5 requires scala version: 2.10.5
[WARNING]  ml.dmlc:xgboost4j:0.5 requires scala version: 2.10.5
[WARNING]  org.scalatest:scalatest_2.10:2.2.6 requires scala version: 2.10.6
[WARNING] Multiple versions of scala libraries detected!
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.19.1:test (default-test) @ xgboost4j ---

T E S T S
Running TestSuite
[ERROR]: No test suite found.  Nothing to run
org.testng.TestNGException:
Failure in JUnit mode for class ml.dmlc.xgboost4j.java.BoosterImplTest: could not create/run JUnit test suite:
cannot retrieve JUnit method
at org.testng.junit.JUnitTestRunner.runFailed(JUnitTestRunner.java:230)
at org.testng.junit.JUnitTestRunner.start(JUnitTestRunner.java:223)
at org.testng.junit.JUnitTestRunner.run(JUnitTestRunner.java:204)
at org.testng.TestRunner$2.run(TestRunner.java:639)
at org.testng.TestRunner.runWorkers(TestRunner.java:1030)
at org.testng.TestRunner.privateRunJUnit(TestRunner.java:664)
at org.testng.TestRunner.run(TestRunner.java:576)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:331)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:326)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:288)
at org.testng.SuiteRunner.run(SuiteRunner.java:193)
at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:910)
at org.testng.TestNG.runSuitesLocally(TestNG.java:879)
at org.testng.TestNG.run(TestNG.java:787)
at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:132)
at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeMulti(TestNGDirectoryTestSuite.java:198)
at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:94)
at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:147)
at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:290)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:242)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:121)
org.testng.TestNGException:
Failure in JUnit mode for class ml.dmlc.xgboost4j.java.DMatrixTest: could not create/run JUnit test suite:
cannot retrieve JUnit method
at org.testng.junit.JUnitTestRunner.runFailed(JUnitTestRunner.java:230)
at org.testng.junit.JUnitTestRunner.start(JUnitTestRunner.java:223)
at org.testng.junit.JUnitTestRunner.run(JUnitTestRunner.java:204)
at org.testng.TestRunner$2.run(TestRunner.java:639)
at org.testng.TestRunner.runWorkers(TestRunner.java:1030)
at org.testng.TestRunner.privateRunJUnit(TestRunner.java:664)
at org.testng.TestRunner.run(TestRunner.java:576)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:331)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:326)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:288)
at org.testng.SuiteRunner.run(SuiteRunner.java:193)
at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:910)
at org.testng.TestNG.runSuitesLocally(TestNG.java:879)
at org.testng.TestNG.run(TestNG.java:787)
at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:132)
at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeMulti(TestNGDirectoryTestSuite.java:198)
at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:94)
at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:147)
at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:290)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:242)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:121)
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.261 sec - in TestSuite
Results :
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO] --- scalatest-maven-plugin:1.0:test (test) @ xgboost4j ---
Discovery starting.
Discovery completed in 96 milliseconds.
Run starting. Expected test count is: 7
ScalaBoosterImplSuite:
七月 07, 2016 12:29:26 上午 ml.dmlc.xgboost4j.java.NativeLibLoader smartLoad
严重: failed to load library from both native path and jar
七月 07, 2016 12:29:26 上午 ml.dmlc.xgboost4j.java.DMatrix
严重: load native library failed.
七月 07, 2016 12:29:26 上午 ml.dmlc.xgboost4j.java.DMatrix
严重: java.io.FileNotFoundException: File /lib/libxgboost4j.dylib was not found inside JAR.
*** RUN ABORTED ***
java.lang.UnsatisfiedLinkError: ml.dmlc.xgboost4j.java.XGBoostJNI.XGDMatrixCreateFromFile(Ljava/lang/String;I[J)I
at ml.dmlc.xgboost4j.java.XGBoostJNI.XGDMatrixCreateFromFile(Native Method)
at ml.dmlc.xgboost4j.java.DMatrix.(DMatrix.java:83)
at ml.dmlc.xgboost4j.scala.DMatrix.(DMatrix.scala:31)
at ml.dmlc.xgboost4j.scala.ScalaBoosterImplSuite$$anonfun$1.apply$mcV$sp(ScalaBoosterImplSuite.scala:81)
at ml.dmlc.xgboost4j.scala.ScalaBoosterImplSuite$$anonfun$1.apply(ScalaBoosterImplSuite.scala:80)
at ml.dmlc.xgboost4j.scala.ScalaBoosterImplSuite$$anonfun$1.apply(ScalaBoosterImplSuite.scala:80)
at org.scalatest.Transformer$$anonfun$apply$1.apply$mcV$sp(Transformer.scala:22)
at org.scalatest.OutcomeOf$class.outcomeOf(OutcomeOf.scala:85)
at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
at org.scalatest.Transformer.apply(Transformer.scala:22)
...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] xgboost-jvm ........................................ SUCCESS [  2.417 s]
[INFO] xgboost4j .......................................... FAILURE [  2.786 s]
[INFO] xgboost4j-spark .................................... SKIPPED
[INFO] xgboost4j-flink .................................... SKIPPED
[INFO] xgboost4j-example .................................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.308 s
[INFO] Finished at: 2016-07-07T00:29:26+08:00
[INFO] Final Memory: 23M/448M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.scalatest:scalatest-maven-plugin:1.0:test (test) on project xgboost4j: There are test failures -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn  -rf :xgboost4j

so, when you met error, go back to the output log, you will find the reason
make: clang-omp++: No such file or directory
your system does not have a complete compiler tool chain, would you install that before you install xgboost?

I'm totally new to java and mvn. Could you suggest which complier tool chain should I install? Actually, I don't know what is complier tool chain. Thanks a lot.

you can install clang (http://llvm.org/releases/download.html#3.8.0)

I installed clang-mop by running brew install clang-omp.
But there is still an error:
1 error generated.
make: *** [jvm-packages/lib/libxgboost4j.so] Error 1
move native lib
mv: rename lib/libxgboost4j.so to xgboost4j/src/main/resources/lib/libxgboost4j.dylib: No such file or directory
complete
Why does this this error happen? Here is the full report below:
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for ml.dmlc:xgboost4j:jar:0.5
[WARNING] 'build.plugins.plugin.version' for org.codehaus.mojo:exec-maven-plugin is missing. @ line 32, column 21
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] xgboost-jvm
[INFO] xgboost4j
[INFO] xgboost4j-spark
[INFO] xgboost4j-flink
[INFO] xgboost4j-example
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building xgboost-jvm 0.5
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- scalastyle-maven-plugin:0.8.0:check (checkstyle) @ xgboost-jvm ---
[WARNING] sourceDirectory is not specified or does not exist value=/Users/huzikun/xgboost/jvm-packages/src/main/scala
[WARNING] testSourceDirectory is not specified or does not exist value=/Users/huzikun/xgboost/jvm-packages/src/test/scala
Processed 0 file(s)
Found 0 errors
Found 0 warnings
Found 0 infos
Finished in 76 ms
[INFO]
[INFO] --- maven-checkstyle-plugin:2.17:check (checkstyle) @ xgboost-jvm ---
[INFO]
[INFO] --- scala-maven-plugin:3.2.2:compile (default) @ xgboost-jvm ---
[WARNING]  Expected all dependencies to require Scala version: 2.10.5
[WARNING]  ml.dmlc:xgboost-jvm:0.5 requires scala version: 2.10.5
[WARNING]  org.scala-lang:scala-compiler:2.10.5 requires scala version: 2.10.5
[WARNING]  org.scala-lang:scala-reflect:2.10.5 requires scala version: 2.10.5
[WARNING]  ml.dmlc:xgboost-jvm:0.5 requires scala version: 2.10.5
[WARNING]  org.scalatest:scalatest_2.10:2.2.6 requires scala version: 2.10.6
[WARNING] Multiple versions of scala libraries detected!
[INFO] No sources to compile
[INFO]
[INFO] --- scala-maven-plugin:3.2.2:compile (compile) @ xgboost-jvm ---
[WARNING]  Expected all dependencies to require Scala version: 2.10.5
[WARNING]  ml.dmlc:xgboost-jvm:0.5 requires scala version: 2.10.5
[WARNING]  org.scala-lang:scala-compiler:2.10.5 requires scala version: 2.10.5
[WARNING]  org.scala-lang:scala-reflect:2.10.5 requires scala version: 2.10.5
[WARNING]  ml.dmlc:xgboost-jvm:0.5 requires scala version: 2.10.5
[WARNING]  org.scalatest:scalatest_2.10:2.2.6 requires scala version: 2.10.6
[WARNING] Multiple versions of scala libraries detected!
[INFO] No sources to compile
[INFO]
[INFO] --- scala-maven-plugin:3.2.2:testCompile (test-compile) @ xgboost-jvm ---
[WARNING]  Expected all dependencies to require Scala version: 2.10.5
[WARNING]  ml.dmlc:xgboost-jvm:0.5 requires scala version: 2.10.5
[WARNING]  org.scala-lang:scala-compiler:2.10.5 requires scala version: 2.10.5
[WARNING]  org.scala-lang:scala-reflect:2.10.5 requires scala version: 2.10.5
[WARNING]  ml.dmlc:xgboost-jvm:0.5 requires scala version: 2.10.5
[WARNING]  org.scalatest:scalatest_2.10:2.2.6 requires scala version: 2.10.6
[WARNING] Multiple versions of scala libraries detected!
[INFO] No sources to compile
[INFO]
[INFO] --- scalatest-maven-plugin:1.0:test (test) @ xgboost-jvm ---
Discovery starting.
Discovery completed in 36 milliseconds.
Run starting. Expected test count is: 0
DiscoverySuite:
Run completed in 100 milliseconds.
Total number of tests run: 0
Suites: completed 1, aborted 0
Tests: succeeded 0, failed 0, canceled 0, ignored 0, pending 0
No tests were executed.
[INFO]
[INFO] --- maven-assembly-plugin:2.6:single (make-assembly) @ xgboost-jvm ---
[INFO] Assemblies have been skipped per configuration of the skipAssembly parameter.
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building xgboost4j 0.5
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- scalastyle-maven-plugin:0.8.0:check (checkstyle) @ xgboost4j ---
Processed 7 file(s)
Found 0 errors
Found 0 warnings
Found 0 infos
Finished in 489 ms
[INFO]
[INFO] --- maven-checkstyle-plugin:2.17:check (checkstyle) @ xgboost4j ---
[INFO]
[INFO] --- exec-maven-plugin:1.5.0:exec (native) @ xgboost4j ---
build java wrapper
clang-omp++ -std=c++0x -Wall -O3 -msse2  -Wno-unknown-pragmas -funroll-loops -Iinclude   -Idmlc-core/include -Irabit/include -fPIC -fopenmp -I/Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk/Contents/Home/include -I./java -I/Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk/Contents/Home/include/darwin -shared -o jvm-packages/lib/libxgboost4j.so jvm-packages/xgboost4j/src/native/xgboost4j.cpp build/learner.o build/logging.o build/c_api/c_api.o build/c_api/c_api_error.o build/common/common.o build/data/data.o build/data/simple_csr_source.o build/data/simple_dmatrix.o build/data/sparse_page_dmatrix.o build/data/sparse_page_raw_format.o build/data/sparse_page_source.o build/data/sparse_page_writer.o build/gbm/gblinear.o build/gbm/gbm.o build/gbm/gbtree.o build/metric/elementwise_metric.o build/metric/metric.o build/metric/multiclass_metric.o build/metric/rank_metric.o build/objective/multiclass_obj.o build/objective/objective.o build/objective/rank_obj.o build/objective/regression_obj.o build/tree/tree_model.o build/tree/tree_updater.o build/tree/updater_colmaker.o build/tree/updater_histmaker.o build/tree/updater_prune.o build/tree/updater_refresh.o build/tree/updater_skmaker.o build/tree/updater_sync.o dmlc-core/libdmlc.a rabit/lib/librabit.a -pthread -lm  -fopenmp
In file included from jvm-packages/xgboost4j/src/native/xgboost4j.cpp:15:
include/xgboost/c_api.h:16:10: fatal error: 'stdio.h' file not found
#include <stdio.h>
^
1 error generated.
make: *** [jvm-packages/lib/libxgboost4j.so] Error 1
move native lib
mv: rename lib/libxgboost4j.so to xgboost4j/src/main/resources/lib/libxgboost4j.dylib: No such file or directory
complete
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ xgboost4j ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO]
[INFO] --- scala-maven-plugin:3.2.2:compile (default) @ xgboost4j ---
[WARNING]  Expected all dependencies to require Scala version: 2.10.5
[WARNING]  ml.dmlc:xgboost4j:0.5 requires scala version: 2.10.5
[WARNING]  org.scala-lang:scala-compiler:2.10.5 requires scala version: 2.10.5
[WARNING]  org.scala-lang:scala-reflect:2.10.5 requires scala version: 2.10.5
[WARNING]  ml.dmlc:xgboost4j:0.5 requires scala version: 2.10.5
[WARNING]  org.scalatest:scalatest_2.10:2.2.6 requires scala version: 2.10.6
[WARNING] Multiple versions of scala libraries detected!
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ xgboost4j ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- scala-maven-plugin:3.2.2:compile (compile) @ xgboost4j ---
[WARNING]  Expected all dependencies to require Scala version: 2.10.5
[WARNING]  ml.dmlc:xgboost4j:0.5 requires scala version: 2.10.5
[WARNING]  org.scala-lang:scala-compiler:2.10.5 requires scala version: 2.10.5
[WARNING]  org.scala-lang:scala-reflect:2.10.5 requires scala version: 2.10.5
[WARNING]  ml.dmlc:xgboost4j:0.5 requires scala version: 2.10.5
[WARNING]  org.scalatest:scalatest_2.10:2.2.6 requires scala version: 2.10.6
[WARNING] Multiple versions of scala libraries detected!
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ xgboost4j ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/huzikun/xgboost/jvm-packages/xgboost4j/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ xgboost4j ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- scala-maven-plugin:3.2.2:testCompile (test-compile) @ xgboost4j ---
[WARNING]  Expected all dependencies to require Scala version: 2.10.5
[WARNING]  ml.dmlc:xgboost4j:0.5 requires scala version: 2.10.5
[WARNING]  org.scala-lang:scala-compiler:2.10.5 requires scala version: 2.10.5
[WARNING]  org.scala-lang:scala-reflect:2.10.5 requires scala version: 2.10.5
[WARNING]  ml.dmlc:xgboost4j:0.5 requires scala version: 2.10.5
[WARNING]  org.scalatest:scalatest_2.10:2.2.6 requires scala version: 2.10.6
[WARNING] Multiple versions of scala libraries detected!
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.19.1:test (default-test) @ xgboost4j ---

T E S T S
Running TestSuite
[ERROR]: No test suite found.  Nothing to run
org.testng.TestNGException:
Failure in JUnit mode for class ml.dmlc.xgboost4j.java.BoosterImplTest: could not create/run JUnit test suite:
cannot retrieve JUnit method
at org.testng.junit.JUnitTestRunner.runFailed(JUnitTestRunner.java:230)
at org.testng.junit.JUnitTestRunner.start(JUnitTestRunner.java:223)
at org.testng.junit.JUnitTestRunner.run(JUnitTestRunner.java:204)
at org.testng.TestRunner$2.run(TestRunner.java:639)
at org.testng.TestRunner.runWorkers(TestRunner.java:1030)
at org.testng.TestRunner.privateRunJUnit(TestRunner.java:664)
at org.testng.TestRunner.run(TestRunner.java:576)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:331)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:326)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:288)
at org.testng.SuiteRunner.run(SuiteRunner.java:193)
at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:910)
at org.testng.TestNG.runSuitesLocally(TestNG.java:879)
at org.testng.TestNG.run(TestNG.java:787)
at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:132)
at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeMulti(TestNGDirectoryTestSuite.java:198)
at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:94)
at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:147)
at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:290)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:242)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:121)
org.testng.TestNGException:
Failure in JUnit mode for class ml.dmlc.xgboost4j.java.DMatrixTest: could not create/run JUnit test suite:
cannot retrieve JUnit method
at org.testng.junit.JUnitTestRunner.runFailed(JUnitTestRunner.java:230)
at org.testng.junit.JUnitTestRunner.start(JUnitTestRunner.java:223)
at org.testng.junit.JUnitTestRunner.run(JUnitTestRunner.java:204)
at org.testng.TestRunner$2.run(TestRunner.java:639)
at org.testng.TestRunner.runWorkers(TestRunner.java:1030)
at org.testng.TestRunner.privateRunJUnit(TestRunner.java:664)
at org.testng.TestRunner.run(TestRunner.java:576)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:331)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:326)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:288)
at org.testng.SuiteRunner.run(SuiteRunner.java:193)
at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:910)
at org.testng.TestNG.runSuitesLocally(TestNG.java:879)
at org.testng.TestNG.run(TestNG.java:787)
at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:132)
at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeMulti(TestNGDirectoryTestSuite.java:198)
at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:94)
at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:147)
at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:290)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:242)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:121)
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.262 sec - in TestSuite
Results :
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO] --- scalatest-maven-plugin:1.0:test (test) @ xgboost4j ---
Discovery starting.
Discovery completed in 107 milliseconds.
Run starting. Expected test count is: 7
ScalaBoosterImplSuite:
七月 08, 2016 11:54:35 上午 ml.dmlc.xgboost4j.java.NativeLibLoader smartLoad
严重: failed to load library from both native path and jar
七月 08, 2016 11:54:35 上午 ml.dmlc.xgboost4j.java.DMatrix
严重: load native library failed.
七月 08, 2016 11:54:35 上午 ml.dmlc.xgboost4j.java.DMatrix
严重: java.io.FileNotFoundException: File /lib/libxgboost4j.dylib was not found inside JAR.
*** RUN ABORTED ***
java.lang.UnsatisfiedLinkError: ml.dmlc.xgboost4j.java.XGBoostJNI.XGDMatrixCreateFromFile(Ljava/lang/String;I[J)I
at ml.dmlc.xgboost4j.java.XGBoostJNI.XGDMatrixCreateFromFile(Native Method)
at ml.dmlc.xgboost4j.java.DMatrix.(DMatrix.java:83)
at ml.dmlc.xgboost4j.scala.DMatrix.(DMatrix.scala:31)
at ml.dmlc.xgboost4j.scala.ScalaBoosterImplSuite$$anonfun$1.apply$mcV$sp(ScalaBoosterImplSuite.scala:81)
at ml.dmlc.xgboost4j.scala.ScalaBoosterImplSuite$$anonfun$1.apply(ScalaBoosterImplSuite.scala:80)
at ml.dmlc.xgboost4j.scala.ScalaBoosterImplSuite$$anonfun$1.apply(ScalaBoosterImplSuite.scala:80)
at org.scalatest.Transformer$$anonfun$apply$1.apply$mcV$sp(Transformer.scala:22)
at org.scalatest.OutcomeOf$class.outcomeOf(OutcomeOf.scala:85)
at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
at org.scalatest.Transformer.apply(Transformer.scala:22)
...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] xgboost-jvm ........................................ SUCCESS [  2.490 s]
[INFO] xgboost4j .......................................... FAILURE [  3.427 s]
[INFO] xgboost4j-spark .................................... SKIPPED
[INFO] xgboost4j-flink .................................... SKIPPED
[INFO] xgboost4j-example .................................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.024 s
[INFO] Finished at: 2016-07-08T11:54:35+08:00
[INFO] Final Memory: 28M/453M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.scalatest:scalatest-maven-plugin:1.0:test (test) on project xgboost4j: There are test failures -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn  -rf :xgboost4j
huzikundeMacBook-Pro:jvm-packages huzikun$ brew install clang-omp

I guess the problem above is because that I didn't successfully build the shared library.
So I delete my xgboost document and restart from the beginning.
I download xgboost again. But when I am running make -j4, it shows error.
(I have set CC=clang-omp++; CXX=clang-omp++;
and I have installed clang-omp by run: brew install clang-mop
and I have Xcode on my mac)
clang-omp++ -std=c++0x -Wall -O3 -msse2  -Wno-unknown-pragmas -funroll-loops -Iinclude   -Idmlc-core/include -Irabit/include -fPIC -DDISABLE_OPENMP -MM -MT build/learner.o src/learner.cc >build/learner.d
clang-omp++ -std=c++0x -Wall -O3 -msse2  -Wno-unknown-pragmas -funroll-loops -Iinclude   -Idmlc-core/include -Irabit/include -fPIC -DDISABLE_OPENMP -MM -MT build/logging.o src/logging.cc >build/logging.d
clang-omp++ -std=c++0x -Wall -O3 -msse2  -Wno-unknown-pragmas -funroll-loops -Iinclude   -Idmlc-core/include -Irabit/include -fPIC -DDISABLE_OPENMP -MM -MT build/c_api/c_api.o src/c_api/c_api.cc >build/c_api/c_api.d
clang-omp++ -std=c++0x -Wall -O3 -msse2  -Wno-unknown-pragmas -funroll-loops -Iinclude   -Idmlc-core/include -Irabit/include -fPIC -DDISABLE_OPENMP -MM -MT build/c_api/c_api_error.o src/c_api/c_api_error.cc >build/c_api/c_api_error.d
In file included from src/c_api/c_api_error.cc:6:
In file included from src/c_api/./c_api_error.h:9:
dmlc-core/include/dmlc/base.h:136:10: fatal error: 'sys/types.h' file not foundIn file included from
src/c_api/c_api.cc:3:
In file included from include/xgboost/data.h:10:
dmlc-core/include/dmlc/base.h:136:In file included from 10src/logging.cc:: 7:
In file included from fatal errorinclude/xgboost/logging.h: :11:
In file included from 'sys/types.h'dmlc-core/include/dmlc/logging.h: 10file:
not/usr/local/Cellar/clang-omp/2015-04-01/libexec/bin/../include/c++/v1/cstdio#include <sys/types.h>
:found100         ^
:
10: fatal error: In file included from
src/learner.cc'stdio.h': 7file:
In file included from notinclude/xgboost/logging.h :found11:
In file included from dmlc-core/include/dmlc/logging.h:10:
/usr/local/Cellar/clang-omp/2015-04-01/libexec/bin/../include/c++/v1/cstdio:100#include <sys/types.h>:
10:         ^
fatal error:
'stdio.h'#include <stdio.h>
file          ^not
found
#include <stdio.h>
^
1 error generated.
make: *** [build/c_api/c_api_error.o] Error 1
make: *** Waiting for unfinished jobs....
1 error generated.
make: *** [build/logging.o] Error 1
1 error generated.
make: *** [build/c_api/c_api.o] Error 1
1 error generated.
make: *** [build/learner.o] Error 1

it seems that your system does not even have stdio.h,
I'm not sure why this happens and it has beyond the scope of xgboost....

you'd ensure that you can do normal c++ dev work in your system....

When I'm using Xcode, it is easy to include stdio.h.....

and what does it mean by:
make: *** [jvm-packages/lib/libxgboost4j.so] Error 1
move native lib
mv: rename lib/libxgboost4j.so to xgboost4j/src/main/resources/lib/libxgboost4j.dylib: No such file or directory
complete

When I'm using Xcode, it is easy to include stdio.h.....

yes, so you need to ensure that your local env enables you to do the basic dev work outside of IDE, like vi,
and what does it mean by:
make: *** [jvm-packages/lib/libxgboost4j.so] Error 1
move native lib
mv: rename lib/libxgboost4j.so to xgboost4j/src/main/resources/lib/libxgboost4j.dylib: No such file or directory
complete

it means that you did not compile native lib correctly

I encountered the same error as yours, and solved by the following command as stated in the installation guide:
brew install gcc --without-multilib
The detailed installation step:

brew install gcc --without-multilib
git clone --recursive https://github.com/dmlc/xgboost
git pull && git submodule init && git submodule update && git submodule status
cd xgboost; cp make/minimum.mk ./config.mk; make -j4
mvn package
I still got an error when packaging in xgboost4j-spark, but jar in xgboost4j works.
Hope it helps.

Thank you, I have solved this problem in a similar way as you did.


Player.getLevel() not work?

function modTick() {
if(Player.getLevel() >= 40){
Entity.addEffect(getPlayerEnt(), MobEffect.digSpeed, 5*20, 1, false, true);
say("You have Reached Tier 1 Lvl");
}}
Or maybe im doing the code wrong?

Don't double post.

duplicate of #383.


remove obsolete stuff

Removed stuff that's been obsolete for ages.
Keeping it as draft until I've made sure all mods are updated so this is safe.

Tested?

Tested?

Yep, just now. Tested with all mods, except NomaiVR. Played around a bit, had no issues.


Revert "Reduce the strength of some pinch gestures, for better usability"

When using Cesium on mobile the pinch to zoom speed is very slow. You have to pinch multiple times to zoom in / out. I tracked this down this commit from 2012: https://github.com/AnalyticalGraphicsInc/cesium/commit/84927fbfd518fae17e024e1e1d2bce1e9b05ae93
When undoing this commit the motion feels correct again.

@puckey, thanks for the pull request! Maintainers, we have a signed CLA from @puckey, so you can review this at any time.
:warning: I noticed that CHANGES.md has not been updated. If this change updates the public API in any way, fixes a bug, or makes any non-trivial update, please add a bullet point to CHANGES.md and comment on this pull request so we know it was updated. For more info, see the Pull Request Guidelines.

I am a bot who helps you make Cesium awesome! Contributions to my configuration are welcome.
:earth_africa: :earth_americas: :earth_asia:

Thanks @puckey!  It looks like you have some failing unit tests.  You can find instructions for running the tests locally in our Build Guide
@emackey what do you think of this change?

Odd.  The usual complaint is that the gestures are too strong.  Also this change is from way back in 2012, at the start of Cesium 1.0.
@puckey Is this change intended for an app where the camera is free, or tracking an entity, or both?  Have you tested on different DPI devices?

It is intended for both.
I have been running this on http://radio.garden for over a year – never received a complaint.. Have indeed tested on different DPI devices.
To my mind, it reflects how zooming works elsewhere (Google Maps etc) on mobile..
I will set up a side by side example of how this looks on Radio Garden before and after this change.

I see now that in the CesiumViewer example of Cesium also rotates the view on the earth when pinching.. I see the reason for slowing down the pinch gesture, because otherwise users lose track of the globe, since it is not locked to the center of the screen. But still the pinch experience isn't very enjoyable.. You have to pinch and pinch and pinch in order to zoom in to the globe.
For Radio Garden we lock the globe to the center of the screen. I made two examples:
The current slow zooming behaviour:
http://rg-before.radio.garden/
The speeded up zooming behavior we use on Radio Garden:
http://rg-after.radio.garden/
(with both examples wait until it has placed the markers and has finished zooming in)
This being said, I can see it is outside the scope of the current state of the library to apply this pull request, so I will close it.


Blueprint support

Add blueprint support, as it makes maintaining and separating larger applications much easier.
I'm currently working on a prototype implementing basic blueprint functionality. For now, only uri's (with blueprint url prefixes) will be supported, not handling blueprint specific static/template endpoints.
I aim to have a PR ready some time tomorrow, but I need to formulate some tests and documentation first.
My current working example looks like this:
from sanic import Sanic
from sanic import Blueprint
from sanic.response import json, text

app = Sanic(__name__)
blueprint = Blueprint('name', url_prefix='/my_blueprint')
blueprint2 = Blueprint('name2', url_prefix='/my_blueprint2')

@blueprint.route('/foo')
async def foo(request):
    return json({'msg': 'hi from blueprint'})

@blueprint2.route('/foo')
async def foo2(request):
    return json({'msg': 'hi from blueprint2'})

app.register_blueprint(blueprint)
app.register_blueprint(blueprint2)

app.run(host="<IP_ADDRESS>", port=8000, debug=True)

Yielding the following routes to the application:
/my_blueprint/foo
/my_blueprint2/foo

Changes merged! :D

Awesome! :)

Awesome!!


Add log forwarding support for for semantic_logger

semantic_logger is a popular Ruby logging library. Currently, the Ruby agent does not support automatic forwarding for logging libraries that format their logs in JSON.
The work in #2399 is similar to this, since both libraries use JSON-style logs.
While working on this, also verify whether rails_semantic_logger needs additional work to support forwarding.

I don't suppose there's any progress or timeline on this? I'm looking at switching our regular Rails logs to one of the structured logging gems, and was leaning towards semantic_logger.

Semantic Logger has a New Relic appender which obviates the need for explicit support from New Relic. It was merged last year in 4.13.0. https://github.com/reidmorrison/semantic_logger/pull/248
It isn't mentioned on the Semantic Logger site, which made finding out about it difficult.
Im not particularly happy with how the json is structured.  @jdelStrother You could experiment with it while you wait for explicit support from NR.
Here's how I'm using it on Heroku:
   if ENV['RAILS_LOG_TO_STDOUT'].present?
      $stdout.sync = true
      config.rails_semantic_logger.add_file_appender = false
      config.semantic_logger.add_appender(io: $stdout, formatter: config.rails_semantic_logger.format)
      config.semantic_logger.add_appender(appender: :new_relic_logs, level: :info)
    end

@jon-rse ooh, thanks - will take a look

@jon-rse I see what you mean about the json mess. I find I need to switch to NewRelic's overly-verbose log_summary view to get the information I need, which is really clunky. I kind of wonder if it would be better if the message that was sent to NewRelic wasn't raw json, but instead was a string with interpolated payload values that you can later add query-time parsing rules for.
I'm not entirely sure though - would welcome some guidance from NewRelic on the best approach.

One option that we're currently implementing with another json logging library, LogStasher, is adding key/values as attributes on the log event, which show up as filterable values in the UI. LogStasher events don't include certain attributes like message unless added by a user, so we omit things like message if there isn't one. What do you think of this approach? Here's an example of how this appears in the New Relic UI.

(Apologies if we're getting off topic here - some of it is possibly more about the NewRelic Logs UI. But hopefully it's still relevant, since it might just be fixed by sending differently structured log data...)
I kind of miss my old-fashioned plain dumb text log workflow, where I could rely on having a single message column containing all the useful information, regardless of whether the log came from nginx or Rails:

When tracing an error in a specific transaction I often don't know what metadata columns might be needed ahead of time. With structured logs, if the app logs something like logger.error("Service failed", service: "foo", reason: "bar", retry_count: 3), the NewRelic 'message' column just gives me the bare "Service failed" message and I have to either click on it to open the details pane, or keep adding more and more columns to the log view.

SemanticLogger's NewRelic formatter nests the log message and metadata under the message key. So, if I call logger.info("Hello world", color: "red") the data sent to NewRelic is something along the lines of:
{
hostname:"app1-1",
level:"INFO",
logger.name:"Rails",
message.message:"Hello world",
message.payload.color: "red",
newrelic.source:"logs.APM",
timestamp:1720081806337
}

and I need to show the message.message column to view log messages. It sounds like that's maybe just a quirk in SemanticLogger's current implementation though... maybe to avoid collision with keys that NewRelic's already using at the top level? Not entirely sure.

We hear you on the question of how to organize json logs in the UI—we ran into similar challenges with LogStasher instrumentation.
We considered a few different ways to strucutre the data, but decided we didn't want to make decisions for all customers on field reporting or appearance. So instead we decided it would be best to report logs as close are we could to their original form, which means key/value pairs and filterable log attributes. SemanticLogger's instrumentation is inline with how we'd intend nested keys to be reported. Here is where we do it for LogStasher.
We have an open feature request to add custom attributes to logs, which would allow you to create an interpolated string with the values you want, for example. If you'd like to show support for this, I'd encourage you to comment or 'react' on that PR. That could help bump it in priority. We also always welcome PRs ◡̈

@jdelStrother @jon-rse @hannahramadan
The initial implementation of the NR Log Formatter for Semantic Logger incorrectly nested almost everything under messages which as noted, is very confusing. This was called out in the original PR but was simply missed before it was merged.
I've created a PR upstream to address this along with a few other changes I thought made sense (unnesting key/values from named_tags).
https://github.com/reidmorrison/semantic_logger/pull/307
Hope you folks have an excellent New Years.


"Cannot find type for ctor #" exception in Messages_GetHistory()

We retrieving messages via Messages_GetHistory() together with their media
Exception occurs in subsequent (not first) calls to Messages_GetHistory()
after media for messages were downloaded (the more media were downloaded the more probability to get exception)
Exception message may vary. I've seen
Cannot find type for ctor #24600
Cannot find type for ctor #800100
Cannot find type for ctor #108
Cannot find type for ctor #4680
Cannot find type for ctor #308108

Looks like something gets out of sync in telegram communication...
Stack trace is
   at TL.Serialization.ReadTLObject(BinaryReader reader, UInt32 ctorNb) in F:\dev\tg\WTelegramClient\src\TL.cs:line 82
   at TL.Serialization.ReadTLValue(BinaryReader reader, Type type) in F:\dev\tg\WTelegramClient\src\TL.cs:line 182
   at TL.Serialization.ReadTLObject(BinaryReader reader, UInt32 ctorNb) in F:\dev\tg\WTelegramClient\src\TL.cs:line 93
   at TL.Serialization.ReadTLValue(BinaryReader reader, Type type) in F:\dev\tg\WTelegramClient\src\TL.cs:line 182
   at TL.Serialization.ReadTLVector(BinaryReader reader, Type type) in F:\dev\tg\WTelegramClient\src\TL.cs:line 233
   at TL.Serialization.ReadTLValue(BinaryReader reader, Type type) in F:\dev\tg\WTelegramClient\src\TL.cs:line 171
   at TL.Serialization.ReadTLObject(BinaryReader reader, UInt32 ctorNb) in F:\dev\tg\WTelegramClient\src\TL.cs:line 93
   at TL.Serialization.ReadTLObject(BinaryReader reader, UInt32 ctorNb) in F:\dev\tg\WTelegramClient\src\TL.cs:line 80
   at TL.Serialization.ReadTLValue(BinaryReader reader, Type type) in F:\dev\tg\WTelegramClient\src\TL.cs:line 182
   at WTelegram.Client.ReadRpcResult(BinaryReader reader) in F:\dev\tg\WTelegramClient\src\Client.cs:line 515
--- End of stack trace from previous location ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at WTelegram.Client.<Invoke>d__110`1.MoveNext() in F:\dev\tg\WTelegramClient\src\Client.cs:line 1281
   at WTelegram.Client.<Reactor>d__87.MoveNext() in F:\dev\tg\WTelegramClient\src\Client.cs:line 308
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()

Are you using a third-party library like AutoMapper?
It is known to cause this kind of issue.

No, we don't use automapper.
Our project uses nhibernate & fluent migrator. I don't know if they can affect library internals somehow

It's almost certainly such an issue on your side.
Try to reproduce in a project without these third party.
I suspect fluent migrator or any library with code generation/metadata based on structure classes

Just wonder how and why unrelated libraries may affect WTelegramClient?

Unclear. They probably modify type information at runtime, adding fields in class or something. WTelegramClient is based it (reflection)

Have you been able to identify which third-party library is causing the problem?
Or reproduce the problem in a simple project without other libraries?

We've run our project on linux under mono 6.8. Worked stable for hours. With all third-party dependencies. This issue is not reproducible under mono.
So I may suggest it is related to framework (.net 4.8), not to third-party libraries

I cannot reproduce the problem with a simple .NET 4.8 project. If you have a sample project to reproduce the problem, you can reopen this issue.


Basic rate limit

Infra basic rate limit (before authentication) for all endpoints exposed by the underlying APIs. All endpoints share the same bucket, so if rate limit exceeded for one endpoint, it will also exceed for the remaining endpoints of the same APIProduct.
apiVersion: networking.kuadrant.io/v1beta1
kind: APIProduct
metadata:
  name: animaltoys
spec:
  information:
    description: My super nice API Product.
    owner<EMAIL_ADDRESS>  routing:
    hosts:
      - api.animaltoys.<IP_ADDRESS>.nip.io
    expose: true
  APIs:
    - name: dogs
      namespace: default
      tag: production
      mapping:
        prefix: /dogs
    - name: cats
      namespace: default
      tag: production
      mapping:
        prefix: /cats
  securityScheme:
    - name: MyAPIKey
      apiKeyAuth:
        location: authorization_header
        name: APIKEY
        credential_source:
          labelSelectors:
            secret.kuadrant.io/managed-by: authorino
            api: animaltoys
  rateLimit:
    max_value: 10
    period_in_seconds: 60

It reconcilliates changes in the rateLimit object, and even removing the rateLimit section will remove global rate limit.
It is specifically designed to be applied before auth http filter.
In order to run the controller in local mode (outside the cluster), port forwarding to Limitador is required
kubectl port-forward --namespace kuadrant-system service/limitador 8888:8080

What's the rate limit based on? client IP?

What's the rate limit based on? client IP?

Currently nothing. Based on hits from anywhere, anyone and anyhow. And only one shared counter for all the operations (method + path) for all the APIs included in the APIProduct.
What would be "nice to have"?

What's the rate limit based on? client IP?

Currently nothing. Based on hits from anywhere, anyone and anyhow. And only one shared counter for all the operations (method + path) for all the APIs included in the APIProduct.
What would be "nice to have"?

Ok, right now we are basically allowing one single actor to DoS the endpoint by just sending enough traffic to block ALL client traffic to it.
Can we define a rate limit based on some "source" information?  what are the options?

e define a rate limit based on some "source" information? what are the options?

I thought it as a hard limit, true infra rate limit. We can additionally add limits based on source info, like the source address.
If there is only limits based on source ip address, lets say X rps, then N IPs could create 2 * (N-1) rps and DoS on the upstream for saturation.
Yes, we can define a rate limit based on some "source" information.
Rate limit logic is based on

Requested "descriptor entries" created by Envoy based on [actions conf]
(https://www.envoyproxy.io/docs/envoy/latest/api-v3/config/route/v3/route_components.proto#envoy-v3-api-msg-config-route-v3-ratelimit-action)
Definition of the limits based on those descriptors.

What descriptors can Envoy generate from "source" information?

source_cluster
remote_address
any info in the HTTP request (path, host, method, ...)


Bug in displaying frequency in scanning mode in airband

Hello!
First of all I want to thank you for the great firmware which is amazing and I like it a lot!
I have noticed that after upgrading to version 3.3, broadcast version, scanning in airband zone works fine but
the frequency showed on display have a bug.
Starting at 107.99166 MHz the next step (8.33kHz) is showed on display 108.00000 and in next step is showed
18.00000 next one is 18.00833.
I haven't tested any further.
https://github.com/user-attachments/assets/b4b2d597-2ae8-41ce-9b39-6e345f1f6c76

Hello,
Thank you for your message.
Ok, so, in VFO mode, the BK4819 (radio chip) uses several frequency ranges :

01800000 to 10800000
10800000 to 13700000
13700000 to 17400000
17400000 to 35000000
35000000 to 40000000
40000000 to 47000000
47000000 to 130000000

So if you enter the frequency 10799166, you're in the first range ( 01800000 to 10800000). And when you reach the high limit (10800000), you're back at the low limit (01800000).
Hope this help :)
Armel F4HWN.

Ok, I get it.
Thank you!
I will close the issue!


AVRO-3165: Do not create workerGroup if NettyTransceiver created via internal Constructor

Otherwise it leaks the workerGroup for every connection, as it is never closed on server side.
Make sure you have checked all steps below.
Jira

[x] My PR addresses the following Avro Jira issues and references them in the PR title.

https://issues.apache.org/jira/browse/AVRO-3165

Tests

[x] My PR passes existing tests

Commits

[x] My commits all reference Jira issues in their subject lines. In addition, my commits follow the guidelines from "How to write a good git commit message":

Subject is separated from body by a blank line
Subject is limited to 50 characters (not including Jira issue reference)
Subject does not end with a period
Subject uses the imperative mood ("add", not "adding")
Body wraps at 72 characters
Body explains "what" and "why", not "how"

Documentation
N / A

Thanks for catching this!  LGTM, you should see this fix in the next major release!


[acs] define component interface

Subject
write here
Detail
write here
Reference
write here

I am going!


custom vmap: entry point, batching, and JVP

Introduces custom_vmap, backed by a corresponding primitive, and implements batching and JVP rules for it.
First step of #9073.

We should add a test which has a batching rule with a loop, since that models a use case we have in mind. But we can't make_jaxpr yet, as you pointed out, so we should add that later.


Update subitems helper to fix multilingual issue

What this PR does / why we need it:
subitems helper didn't identify page resources correctly in multilingual websites. The problem appeared in not default language pages.
Which issue this PR fixes:
fixes #799
Release note:
- Fix multilingual pages not showing subitems of fragments in non default language page

So what various ways of multilingual config work here?
faq.<lang>.md + faq/column1.<lang>.md
but not
faq.<lang>.md + faq.<lang>/column1.md
Do we wanna be specific with each column having the language or the subdirectory? What do you think?
Also needs better docs on how to do this or?

faq/index.<lang>.md + faq/column1.<lang>.md and faq.<lang>.md + faq.<lang>/column1.<lang>.md work. The best description I can come up with is that Hugo uses the language specific files in non default languages and assumes all other files and pages to be specific to the default language. In other words, user should create each page and resource for each language if they want that file or page to be available in that language. You can have pages for a language but not for the other and you can have pages for both languages, and the naming convention assumes pages without .<lang> to belong to the default language.
Definitely requires more documentation since I seem to forget this everytime I create multilingual websites.
Language directories are used for this very purpose but implementing them and not breaking most of our code is a challenge. I'll approach it some other time but can't think of a solution for it now.

Ok let's create an issue to get this documented.
Thanks for reminding me that the language directories is still on our radar, but not implemented.
lgtm


Panel: remove the "toggle location" action in the panel header and move to menu

fixes #58575
fyi @bpasero @misolori everything as we agreed in #58575
The only downside is that on the main side I can not figure the current panel location (since it is stored in storage service, not in configurations) so I always have to call it Toggle Panel Location

@isidorn works for me.

I have decided to also add the sidebar location action to the sidebar title area for consistency
IMHO this actions does not belong in the activity bar (since activity bar and sidebar are different example: we have there hide activity bar, no hide sidebar)

Yeah I was about to ask.

@bpasero I code faster than you ask questions 🤓