-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Resolve multiple environment variables in configuration values #75
Resolve multiple environment variables in configuration values #75
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Were you able to build this and run mvn:verify? Locally I found a build issue in the stats module, did you encounter that as well?
bootstrap/src/main/java/com/facebook/airlift/bootstrap/Bootstrap.java
Outdated
Show resolved
Hide resolved
bootstrap/src/main/java/com/facebook/airlift/bootstrap/Bootstrap.java
Outdated
Show resolved
Hide resolved
bootstrap/src/main/java/com/facebook/airlift/bootstrap/Bootstrap.java
Outdated
Show resolved
Hide resolved
Wow we should set up CI for this. We have no guarantee now that build and tests pass for new PRs. |
Agreed (see #64). |
@tdcmeehan It doesn't work with Broken for $ export JAVA_HOME='C:\Users\dnskr\.jdks\temurin-11.0.22' && mvn verify -DskipTests
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
...
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] C:\Users\dnskr\IdeaProjects\airlift\stats\src\main\java\com\facebook\airlift\stats\JmxGcMonitor.java:[21,23] error: cannot find symbol
symbol: class PostConstruct
location: package javax.annotation
[ERROR] C:\Users\dnskr\IdeaProjects\airlift\stats\src\main\java\com\facebook\airlift\stats\JmxGcMonitor.java:[22,23] error: cannot find symbol
symbol: class PreDestroy
location: package javax.annotation
[ERROR] C:\Users\dnskr\IdeaProjects\airlift\stats\src\main\java\com\facebook\airlift\stats\PauseMeter.java:[24,23] error: cannot find symbol
symbol: class PostConstruct
location: package javax.annotation
[ERROR] C:\Users\dnskr\IdeaProjects\airlift\stats\src\main\java\com\facebook\airlift\stats\PauseMeter.java:[25,23] error: cannot find symbol
symbol: class PreDestroy
location: package javax.annotation
[ERROR] C:\Users\dnskr\IdeaProjects\airlift\stats\src\main\java\com\facebook\airlift\stats\JmxGcMonitor.java:[62,5] error: cannot find symbol
symbol: class PostConstruct
location: class JmxGcMonitor
[ERROR] C:\Users\dnskr\IdeaProjects\airlift\stats\src\main\java\com\facebook\airlift\stats\JmxGcMonitor.java:[80,5] error: cannot find symbol
symbol: class PreDestroy
location: class JmxGcMonitor
[ERROR] C:\Users\dnskr\IdeaProjects\airlift\stats\src\main\java\com\facebook\airlift\stats\PauseMeter.java:[63,5] error: cannot find symbol
symbol: class PostConstruct
location: class PauseMeter
[ERROR] C:\Users\dnskr\IdeaProjects\airlift\stats\src\main\java\com\facebook\airlift\stats\PauseMeter.java:[69,5] error: cannot find symbol
symbol: class PreDestroy
location: class PauseMeter
[INFO] 8 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for airlift 0.211-SNAPSHOT:
[INFO]
[INFO] airlift ............................................ SUCCESS [ 4.828 s]
[INFO] log ................................................ SUCCESS [ 2.067 s]
[INFO] testing ............................................ SUCCESS [ 1.006 s]
[INFO] configuration ...................................... SUCCESS [ 1.215 s]
[INFO] log-manager ........................................ SUCCESS [ 0.974 s]
[INFO] bootstrap .......................................... SUCCESS [ 0.867 s]
[INFO] concurrent ......................................... SUCCESS [ 0.813 s]
[INFO] http-utils ......................................... SUCCESS [ 0.598 s]
[INFO] json ............................................... SUCCESS [ 1.085 s]
[INFO] stats .............................................. FAILURE [ 2.861 s]
[INFO] security ........................................... SKIPPED
[INFO] trace-token ........................................ SKIPPED
[INFO] http-client ........................................ SKIPPED
[INFO] node ............................................... SKIPPED
[INFO] discovery .......................................... SKIPPED
[INFO] dbpool ............................................. SKIPPED
[INFO] event .............................................. SKIPPED
[INFO] http-server ........................................ SKIPPED
[INFO] jaxrs .............................................. SKIPPED
[INFO] jaxrs-testing ...................................... SKIPPED
[INFO] jmx-http-rpc ....................................... SKIPPED
[INFO] jmx-http ........................................... SKIPPED
[INFO] jmx ................................................ SKIPPED
[INFO] launcher ........................................... SKIPPED
[INFO] packaging .......................................... SKIPPED
[INFO] skeleton-server .................................... SKIPPED
[INFO] sample-server ...................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 16.930 s
[INFO] Finished at: 2024-04-17T20:45:48+02:00
[INFO] ------------------------------------------------------------------------ Works for $ export JAVA_HOME='C:\Users\dnskr\.jdks\temurin-1.8.0_382' && mvn verify -DskipTests
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for airlift 0.211-SNAPSHOT:
[INFO]
[INFO] airlift ............................................ SUCCESS [ 3.723 s]
[INFO] log ................................................ SUCCESS [ 1.853 s]
[INFO] testing ............................................ SUCCESS [ 0.959 s]
[INFO] configuration ...................................... SUCCESS [ 1.179 s]
[INFO] log-manager ........................................ SUCCESS [ 1.018 s]
[INFO] bootstrap .......................................... SUCCESS [ 1.063 s]
[INFO] concurrent ......................................... SUCCESS [ 0.854 s]
[INFO] http-utils ......................................... SUCCESS [ 0.581 s]
[INFO] json ............................................... SUCCESS [ 1.048 s]
[INFO] stats .............................................. SUCCESS [ 2.929 s]
[INFO] security ........................................... SUCCESS [ 0.801 s]
[INFO] trace-token ........................................ SUCCESS [ 0.573 s]
[INFO] http-client ........................................ SUCCESS [ 1.704 s]
[INFO] node ............................................... SUCCESS [ 0.725 s]
[INFO] discovery .......................................... SUCCESS [ 1.283 s]
[INFO] dbpool ............................................. SUCCESS [ 1.299 s]
[INFO] event .............................................. SUCCESS [ 1.185 s]
[INFO] http-server ........................................ SUCCESS [ 1.519 s]
[INFO] jaxrs .............................................. SUCCESS [ 1.752 s]
[INFO] jaxrs-testing ...................................... SUCCESS [ 1.577 s]
[INFO] jmx-http-rpc ....................................... SUCCESS [ 1.125 s]
[INFO] jmx-http ........................................... SUCCESS [ 1.390 s]
[INFO] jmx ................................................ SUCCESS [ 1.081 s]
[INFO] launcher ........................................... SUCCESS [ 0.337 s]
[INFO] packaging .......................................... SUCCESS [ 0.433 s]
[INFO] skeleton-server .................................... SUCCESS [ 3.211 s]
[INFO] sample-server ...................................... SUCCESS [ 2.622 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 38.306 s
[INFO] Finished at: 2024-04-17T20:44:15+02:00
[INFO] ------------------------------------------------------------------------ |
Created issue #79 related to failing build on Java 11. |
d54153c
to
3a9f1c8
Compare
Description
The PR adds support for multiple environment variables in configuration values.
For example, the following value is valid if
$HOSTNAME
and$USERNAME
environment variables defined:The change is continuation #63 and similar to airlift#872.
Test