go_test: change directory before use init() functions run#2696
go_test: change directory before use init() functions run#2696jayconrod merged 6 commits intobazel-contrib:masterfrom
Conversation
Fixes bazel-contrib#1918 go_test: data not available in init()
|
Looks like I have some things to fix! |
jayconrod
left a comment
There was a problem hiding this comment.
Thanks for working on this. Couple comments below.
| "//go/platform:internal_cgo_off": None, | ||
| "//conditions:default": ":cgo_context_data", | ||
| }), | ||
| test_init = "//go/tools/test_init", |
There was a problem hiding this comment.
This should only be an implicit dependency of go_test.
coverdata is a little different, because every go_library might need to import it. test_init only needs to be imported by go_test archives.
There was a problem hiding this comment.
Sorry for being so dense, but how do I do that exactly? I tried doing that first, but I could never figure out exactly how and where to add this dep without following the coverdata pattern. I can try hacking at this more and give more detail on exactly what I ran into.
There was a problem hiding this comment.
_testmain_additional_srcs is a better pattern to follow. Add an attribute to go_test that starts with _. It should be an attr.label with a default value pointing to that go_library target.
There was a problem hiding this comment.
I think I'm close, but I'm missing something. I added this:
--- a/go/private/rules/test.bzl
+++ b/go/private/rules/test.bzl
@@ -137,12 +137,14 @@ def _go_test_impl(ctx):
resolve = None,
)
test_deps = external_archive.direct + [external_archive]
- test_deps.append(go.test_init)
+ print("test_deps[0]:", type(test_deps[0]), test_deps[0])
+ print("_testmain_additional_deps[0]:", type(ctx.files._testmain_additional_deps[0]), ctx.files._testmain_additional_deps[0])
+ print("go.coverdata:", type(go.coverdata), go.coverdata)
if ctx.configuration.coverage_enabled:
test_deps.append(go.coverdata)
test_source = go.library_to_source(go, struct(
srcs = [struct(files = [main_go] + ctx.files._testmain_additional_srcs)],
- deps = test_deps,
+ deps = test_deps + ctx.files._testmain_additional_deps,
), test_library, False)
test_archive, executable, runfiles = go.binary(
go,
@@ -201,6 +203,10 @@ _go_test_kwargs = {
default = ["@io_bazel_rules_go//go/tools/testwrapper:srcs"],
allow_files = go_exts,
),
+ "_testmain_additional_deps": attr.label_list(
+ providers = [GoLibrary],
+ default = ["@io_bazel_rules_go//go/tools/testinit"],
+ ),
# Workaround for bazelbuild/bazel#6293. See comment in lcov_merger.sh.
"_lcov_merger": attr.label(
executable = True,But the thing is, when I get to the print statements, the _testmain_additional_deps[0] is a File, whereas go.coverdata is a struct. I can't figure out how to make it be the kind of thing it needs to be. :/
There was a problem hiding this comment.
Resolved all the feedback except for this-- I'm a little out of my depth. :(
There was a problem hiding this comment.
Alright.. I finally stumbled my way through this! I needed ctx.attr._testmain_additional_deps to get the actual target, not ctx.files._testmain_additional_deps which only has the output file. Big oof!
|
@jayconrod does this repo not run correctly under OSX? I'm sorry to be asking such an off topic question, but I can't get things to build on my machine due to |
|
It should work on macOS. I do most of my development there. Sounds like a C/C++ toolchain configuration problem? Are you able to build a |
I was able to get past this-- the problem is only with |
|
All feedback should now be addressed. |
jayconrod
left a comment
There was a problem hiding this comment.
Looks good. Thanks again for working on this!
|
Sweet! Funny enough, I was meaning to add test coverage as well. So I went ahead and opened a new PR. |
There was a bug with init() but it was resolved in bazel-contrib/rules_go#2696 Changed to match other fixture methods. Change-Id: I882b8535e5c5c117fb10c41d34c8eed1ccdb74bb
There was a bug with init() but it was resolved in bazel-contrib/rules_go#2696 Changed to match other fixture methods. Change-Id: I882b8535e5c5c117fb10c41d34c8eed1ccdb74bb Kubernetes-commit: 77261377dec3a22fef6cc7b5eb38322539bddee6
There was a bug with init() but it was resolved in bazel-contrib/rules_go#2696 Changed to match other fixture methods. Change-Id: I882b8535e5c5c117fb10c41d34c8eed1ccdb74bb
…#2696) Bumps [babel](https://github.com/python-babel/babel) from 2.16.0 to 2.17.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/python-babel/babel/releases">babel's releases</a>.</em></p> <blockquote> <h2>v2.17.0</h2> <p>Happy 2025! This release is being made from FOSDEM 2025, in Brussels, Belgium. 🇧🇪</p> <p>Thank you to all contributors, new and old, and here's to another great year of internationalization and localization!</p> <hr /> <p>The changelog below is auto-generated by GitHub.</p> <p>Please see <a href="https://github.com/python-babel/babel/blob/b50a1d2186c20f3359f7e10853d2b2225a46ed40/CHANGES.rst">CHANGELOG.rst</a> for additional details.</p> <hr /> <h2>What's Changed</h2> <ul> <li>Fix deprecation warnings for <code>datetime.utcnow()</code> by <a href="https://github.com/tomasr8"><code>@tomasr8</code></a> in <a href="https://redirect.github.com/python-babel/babel/pull/1119">python-babel/babel#1119</a></li> <li>Enclose white spaces in references by <a href="https://github.com/Dunedan"><code>@Dunedan</code></a> in <a href="https://redirect.github.com/python-babel/babel/pull/1105">python-babel/babel#1105</a></li> <li>Replace <code>str.index</code> with <code>str.find</code> by <a href="https://github.com/tomasr8"><code>@tomasr8</code></a> in <a href="https://redirect.github.com/python-babel/babel/pull/1130">python-babel/babel#1130</a></li> <li>Replace more alternate characters in <code>format_skeleton</code> by <a href="https://github.com/tomasr8"><code>@tomasr8</code></a> in <a href="https://redirect.github.com/python-babel/babel/pull/1122">python-babel/babel#1122</a></li> <li>Fix extracted lineno with nested calls by <a href="https://github.com/dylankiss"><code>@dylankiss</code></a> in <a href="https://redirect.github.com/python-babel/babel/pull/1126">python-babel/babel#1126</a></li> <li>"Deleted duplicate code in test" by <a href="https://github.com/mattdiaz007"><code>@mattdiaz007</code></a> in <a href="https://redirect.github.com/python-babel/babel/pull/1138">python-babel/babel#1138</a></li> <li>Fix of list index out of range error in PoFileParser.add_message when translations is empty by <a href="https://github.com/gabe-sherman"><code>@gabe-sherman</code></a> in <a href="https://redirect.github.com/python-babel/babel/pull/1135">python-babel/babel#1135</a></li> <li>Make seconds optional in <code>parse_time</code> time formats by <a href="https://github.com/tomasr8"><code>@tomasr8</code></a> in <a href="https://redirect.github.com/python-babel/babel/pull/1141">python-babel/babel#1141</a></li> <li>Mark <code>wraptext</code> deprecated; use <code>TextWrapper</code> directly in <code>write_po</code> by <a href="https://github.com/akx"><code>@akx</code></a> in <a href="https://redirect.github.com/python-babel/babel/pull/1140">python-babel/babel#1140</a></li> <li>Fix the way obsolete messages are stored by <a href="https://github.com/tomasr8"><code>@tomasr8</code></a> in <a href="https://redirect.github.com/python-babel/babel/pull/1132">python-babel/babel#1132</a></li> <li>Replace <code>OrderedDict</code> with just <code>dict</code> by <a href="https://github.com/tomasr8"><code>@tomasr8</code></a> in <a href="https://redirect.github.com/python-babel/babel/pull/1149">python-babel/babel#1149</a></li> <li>Use CLDR 46 by <a href="https://github.com/tomasr8"><code>@tomasr8</code></a> in <a href="https://redirect.github.com/python-babel/babel/pull/1145">python-babel/babel#1145</a></li> <li>Update CI to use python 3.13 and Ubuntu 24.04 by <a href="https://github.com/tomasr8"><code>@tomasr8</code></a> in <a href="https://redirect.github.com/python-babel/babel/pull/1153">python-babel/babel#1153</a></li> <li>Adjust docs/conf.py to add compatibility with sphinx 8 by <a href="https://github.com/hrnciar"><code>@hrnciar</code></a> in <a href="https://redirect.github.com/python-babel/babel/pull/1155">python-babel/babel#1155</a></li> <li>Allow specifying an explicit format in parse_date/parse_time by <a href="https://github.com/tomasr8"><code>@tomasr8</code></a> in <a href="https://redirect.github.com/python-babel/babel/pull/1131">python-babel/babel#1131</a></li> <li>Simplify <code>read_mo</code> logic regarding <code>catalog.charset</code> by <a href="https://github.com/tomasr8"><code>@tomasr8</code></a> in <a href="https://redirect.github.com/python-babel/babel/pull/1148">python-babel/babel#1148</a></li> <li>Bump CI/tool versions by <a href="https://github.com/akx"><code>@akx</code></a> in <a href="https://redirect.github.com/python-babel/babel/pull/1160">python-babel/babel#1160</a></li> <li>fix: check_and_call_extract_file uses the first matching method and options, instead of the first matching method and last matching options by <a href="https://github.com/jpmckinney"><code>@jpmckinney</code></a> in <a href="https://redirect.github.com/python-babel/babel/pull/1121">python-babel/babel#1121</a></li> <li>Prevent wrapping file locations containing white space by <a href="https://github.com/tomasr8"><code>@tomasr8</code></a> in <a href="https://redirect.github.com/python-babel/babel/pull/1120">python-babel/babel#1120</a></li> <li>Add tzdata as dev dependency and sync with tox.ini by <a href="https://github.com/wandrew004"><code>@wandrew004</code></a> in <a href="https://redirect.github.com/python-babel/babel/pull/1159">python-babel/babel#1159</a></li> <li>Support short and narrow formats for format_timedelta when using <code>add_direction</code> by <a href="https://github.com/akx"><code>@akx</code></a> in <a href="https://redirect.github.com/python-babel/babel/pull/1163">python-babel/babel#1163</a></li> <li>Improve handling for <code>locale=None</code> by <a href="https://github.com/akx"><code>@akx</code></a> in <a href="https://redirect.github.com/python-babel/babel/pull/1164">python-babel/babel#1164</a></li> <li>Use <code>pytest.raises(match=...)</code> by <a href="https://github.com/akx"><code>@akx</code></a> in <a href="https://redirect.github.com/python-babel/babel/pull/1166">python-babel/babel#1166</a></li> <li>Strip extra leading slashes in <code>/etc/localtime</code> by <a href="https://github.com/akx"><code>@akx</code></a> in <a href="https://redirect.github.com/python-babel/babel/pull/1165">python-babel/babel#1165</a></li> <li>Remove redundant assignment in <code>Catalog.__setitem__</code> by <a href="https://github.com/tomasr8"><code>@tomasr8</code></a> in <a href="https://redirect.github.com/python-babel/babel/pull/1167">python-babel/babel#1167</a></li> <li>Small cleanups by <a href="https://github.com/akx"><code>@akx</code></a> in <a href="https://redirect.github.com/python-babel/babel/pull/1170">python-babel/babel#1170</a></li> <li>Small test cleanup by <a href="https://github.com/akx"><code>@akx</code></a> in <a href="https://redirect.github.com/python-babel/babel/pull/1172">python-babel/babel#1172</a></li> <li>Add <code>Message.python_brace_format</code> by <a href="https://github.com/tomasr8"><code>@tomasr8</code></a> in <a href="https://redirect.github.com/python-babel/babel/pull/1169">python-babel/babel#1169</a></li> <li>Import <code>Literal</code> from the typing module by <a href="https://github.com/tomasr8"><code>@tomasr8</code></a> in <a href="https://redirect.github.com/python-babel/babel/pull/1175">python-babel/babel#1175</a></li> <li>Prefer LC_MONETARY when formatting currencies by <a href="https://github.com/akx"><code>@akx</code></a> in <a href="https://redirect.github.com/python-babel/babel/pull/1173">python-babel/babel#1173</a></li> <li>Fix dates formatting <code>Y</code>, <code>w</code> and <code>W</code> symbols for week-numbering by <a href="https://github.com/jun66j5"><code>@jun66j5</code></a> in <a href="https://redirect.github.com/python-babel/babel/pull/1179">python-babel/babel#1179</a></li> <li>Increase test coverage of the <code>python_format</code> checker by <a href="https://github.com/tomasr8"><code>@tomasr8</code></a> in <a href="https://redirect.github.com/python-babel/babel/pull/1176">python-babel/babel#1176</a></li> <li>Prepare for 2.17.0 by <a href="https://github.com/akx"><code>@akx</code></a> in <a href="https://redirect.github.com/python-babel/babel/pull/1182">python-babel/babel#1182</a></li> </ul> <h2>New Contributors</h2> <ul> <li><a href="https://github.com/Dunedan"><code>@Dunedan</code></a> made their first contribution in <a href="https://redirect.github.com/python-babel/babel/pull/1105">python-babel/babel#1105</a></li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/python-babel/babel/blob/master/CHANGES.rst">babel's changelog</a>.</em></p> <blockquote> <h2>Version 2.17.0</h2> <p>Happy 2025! This release is being made from FOSDEM 2025, in Brussels, Belgium.</p> <p>Thank you to all contributors, new and old, and here's to another great year of internationalization and localization!</p> <p>Features</p> <pre><code> * CLDR: Babel now uses CLDR 46, by @tomasr8 in :gh:`1145` * Dates: Allow specifying an explicit format in parse_date/parse_time by @tomasr8 in :gh:`1131` * Dates: More alternate characters are now supported by `format_skeleton`. By @tomasr8 in :gh:`1122` * Dates: Support short and narrow formats for format_timedelta when using `add_direction`, by @akx in :gh:`1163` * Messages: .po files now enclose white spaces in filenames like GNU gettext does. By @Dunedan in :gh:`1105`, and @tomasr8 in :gh:`1120` * Messages: Initial support for `Message.python_brace_format`, by @tomasr8 in :gh:`1169` * Numbers: LC_MONETARY is now preferred when formatting currencies, by @akx in :gh:`1173` <p>Bugfixes<br /> </code></pre></p> <ul> <li>Dates: Make seconds optional in <code>parse_time</code> time formats by <a href="https://github.com/tomasr8"><code>@tomasr8</code></a> in :gh:<code>1141</code></li> <li>Dates: Replace <code>str.index</code> with <code>str.find</code> by <a href="https://github.com/tomasr8"><code>@tomasr8</code></a> in :gh:<code>1130</code></li> <li>Dates: Strip extra leading slashes in <code>/etc/localtime</code> by <a href="https://github.com/akx"><code>@akx</code></a> in :gh:<code>1165</code></li> <li>Dates: Week numbering and formatting of dates with week numbers was repaired by <a href="https://github.com/jun66j5"><code>@jun66j5</code></a> in :gh:<code>1179</code></li> <li>General: Improve handling for <code>locale=None</code> by <a href="https://github.com/akx"><code>@akx</code></a> in :gh:<code>1164</code></li> <li>General: Remove redundant assignment in <code>Catalog.__setitem__</code> by <a href="https://github.com/tomasr8"><code>@tomasr8</code></a> in :gh:<code>1167</code></li> <li>Messages: Fix extracted lineno with nested calls, by <a href="https://github.com/dylankiss"><code>@dylankiss</code></a> in :gh:<code>1126</code></li> <li>Messages: Fix of list index out of range when translations is empty, by <a href="https://github.com/gabe-sherman"><code>@gabe-sherman</code></a> in :gh:<code>1135</code></li> <li>Messages: Fix the way obsolete messages are stored by <a href="https://github.com/tomasr8"><code>@tomasr8</code></a> in :gh:<code>1132</code></li> <li>Messages: Simplify <code>read_mo</code> logic regarding <code>catalog.charset</code> by <a href="https://github.com/tomasr8"><code>@tomasr8</code></a> in :gh:<code>1148</code></li> <li>Messages: Use the first matching method & options, rather than first matching method & last options, by <a href="https://github.com/jpmckinney"><code>@jpmckinney</code></a> in :gh:<code>1121</code></li> </ul> <p>Deprecation and compatibility</p> <pre><code> * Dates: Fix deprecation warnings for `datetime.utcnow()` by @tomasr8 in :gh:`1119` * Docs: Adjust docs/conf.py to add compatibility with sphinx 8 by @hrnciar in :gh:`1155` * General: Import `Literal` from the typing module by @tomasr8 in :gh:`1175` * General: Replace `OrderedDict` with just `dict` by @tomasr8 in :gh:`1149` * Messages: Mark `wraptext` deprecated; use `TextWrapper` directly in `write_po` by @akx in :gh:`1140` <p>Infrastructure</p> <pre><code> * Add tzdata as dev dependency and sync with tox.ini by @wandrew004 in :gh:`1159` * Duplicate test code was deleted by @mattdiaz007 in :gh:`1138` * Increase test coverage of the `python_format` checker by @tomasr8 in :gh:`1176` * Small cleanups by @akx in :gh:`1160`, :gh:`1166`, :gh:`1170` and :gh:`1172` &lt;/tr&gt;&lt;/table&gt; </code></pre> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="python-babel/babel@b50a1d2186c20f3359f7e10853d2b2225a46ed40"><code>b50a1d2</code></a> Prepare for 2.17.0 (<a href="https://redirect.github.com/python-babel/babel/issues/1182">#1182</a>)</li> <li><a href="python-babel/babel@5f117b2689573aa98acc8a47108c49b99f4d1394"><code>5f117b2</code></a> Increase test coverage of the <code>python_format</code> checker (<a href="https://redirect.github.com/python-babel/babel/issues/1176">#1176</a>)</li> <li><a href="python-babel/babel@363ad7531fb5dcdc3e9844573592b0b44afb914b"><code>363ad75</code></a> Fix dates formatting <code>Y</code>, <code>w</code> and <code>W</code> symbols for week-numbering (<a href="https://redirect.github.com/python-babel/babel/issues/1179">#1179</a>)</li> <li><a href="python-babel/babel@e9c3ef8d0de3080ca59f7f8dbabf9b52983adc7d"><code>e9c3ef8</code></a> Merge pull request <a href="https://redirect.github.com/python-babel/babel/issues/1173">#1173</a> from python-babel/lc-monetary-2</li> <li><a href="python-babel/babel@56ef7c7f578a904917464c187e399abb762bd5e3"><code>56ef7c7</code></a> Prefer LC_MONETARY when formatting currency</li> <li><a href="python-babel/babel@aee6d698b541dc50439280d7e093092cc0d4b832"><code>aee6d69</code></a> <code>default_locale</code>: support multiple keys</li> <li><a href="python-babel/babel@2d8a808864d1aae5d3d02d4f95917c79740c5d35"><code>2d8a808</code></a> Import <code>Literal</code> &amp; <code>TypedDict</code> from the typing module (<a href="https://redirect.github.com/python-babel/babel/issues/1175">#1175</a>)</li> <li><a href="python-babel/babel@98b9562c05e5276038c27ec12c12f3e92dc027b6"><code>98b9562</code></a> Add basic support for <code>Message.python_brace_format</code> (<a href="https://redirect.github.com/python-babel/babel/issues/1169">#1169</a>)</li> <li><a href="python-babel/babel@0c1091c9de9543e30bc4b845eb10b5bf84516d7b"><code>0c1091c</code></a> Small test cleanup (<a href="https://redirect.github.com/python-babel/babel/issues/1172">#1172</a>)</li> <li><a href="python-babel/babel@db4879136a7fbcef475f26b75dbdd65d0ce488f9"><code>db48791</code></a> Merge pull request <a href="https://redirect.github.com/python-babel/babel/issues/1170">#1170</a> from python-babel/small-cleanup</li> <li>Additional commits viewable in <a href="python-babel/babel@v2.16.0...v2.17.0">compare view</a></li> </ul> </details> <br /> </code></pre> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Fixes #1918 go_test: data not available in init()
What type of PR is this?
What does this PR do? Why is it needed?
Forces a new package,
go/tools/test_initto have its package initializer run before any Go user code can be initialized. This package sets the correct working directory, PWD, and TMPDIR to match bazel standards.Which issues(s) does this PR fix?
Fixes #1918