Skip to content

Conversation

@shajrawi
Copy link

This change the order the configuration file to something that makes more sense: the platform_module_dir value was being set in the middle of the config.substitutions phase.
We needed said value for setting the DYLD_LIBRARY_PATH, so that code was added right after it.

The problem is that by that time config.substitutions.append(('%target-run', config.target_run)) has already happened for local targets

This change moves all said code to just before the substitutions phase, much cleaner and resolves rdar://problem/49835064

@shajrawi
Copy link
Author

@swift-ci Please smoke test and merge

test/lit.cfg Outdated
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would be nice to sink this into the single use below to avoid this value being left around since the name is unclear whether it is static or dynamic.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I kept it separate but changed the name to make it clear that it is static.

test/lit.cfg Outdated
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will break the Windows test suite.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am unfamiliar with the Windows test suite, from what I can gather the windows environment variable is PATH? Changed the PR accordingly.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changing PATH is not a good idea. I am gonna enable this change just on non-windows platforms for now.

…tutions This change the order the configuration file to something that makes more sense: the platform_module_dir value was being set in the middle of the config.substitutions phase. We needed said value for setting the DYLD_LIBRARY_PATH, so that code was added right after it. The problem is that by that time config.substitutions.append(('%target-run', config.target_run)) has already happened for local targets This change moves all said code to just before the substitutions phase, much cleaner and resolves rdar://problem/49835064
@shajrawi
Copy link
Author

@swift-ci Please smoke test and merge

@shajrawi
Copy link
Author

On Linux

17:14:28 ERROR: Error fetching remote repo 'origin' 17:14:28 hudson.plugins.git.GitException: Failed to fetch from git@github.com:apple/swift.git 17:14:28	at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:894) 17:14:28	at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1161) 17:14:28	at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1192) 17:14:28	at org.jenkinsci.plugins.multiplescms.MultiSCM.checkout(MultiSCM.java:143) 17:14:28	at hudson.scm.SCM.checkout(SCM.java:504) 17:14:28	at hudson.model.AbstractProject.checkout(AbstractProject.java:1208) 17:14:28	at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:574) 17:14:28	at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) 17:14:28	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499) 17:14:28	at hudson.model.Run.execute(Run.java:1810) 17:14:28	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) 17:14:28	at hudson.model.ResourceController.execute(ResourceController.java:97) 17:14:28	at hudson.model.Executor.run(Executor.java:429) 17:14:28 Caused by: hudson.plugins.git.GitException: Command "git config remote.origin.url git@github.com:apple/swift.git" returned status code 4: 17:14:28 stdout: 17:14:28 stderr: error: failed to write new configuration file /home/buildnode/jenkins/workspace/swift-PR-Linux-smoke-test/branch-master/swift/.git/config.lock 17:14:28 
@shajrawi
Copy link
Author

@swift-ci Please smoke test linux

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants