-
Notifications
You must be signed in to change notification settings - Fork 213
Export: trimming enhancements #3530
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
Open
DuBento
wants to merge
95
commits into
thought-machine:master
Choose a base branch
from
DuBento:export-from-package-metadata
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
95 commits
Select commit
Hold shift + click to select a range
0ef91bc
Package level metadata that includes a mapping of build statements to…
63f1b0d
export using BuildFileMetadata logic
419bd56
register caller scope for callstack-like traversal
8e1bd00
bufio writer for build statements
258b170
rewrite export logic into explicit flow
4110735
export targets related to build statement
a4252c9
enrich target with subincludes by looping though all scopes
82f117f
separate buildstmt register from adding target
eb657de
select and write subincludes
6535794
skip statement for preloaded subincludes
8e6c9c0
test: trim subincludes
9f0b4fe
rename file
0e597c6
use slices.collect and sort interface
de76e2c
rewrite export with 2 concrete interfaces: default and notrim
03ed361
notrim: full copy BUILD file and visit sources
717aba1
double new lines between targets
94160bf
suppress diff output when enforcing repo differences
582319e
export by filtering the original BUILD file
e6a5293
subincludes use label short string
ea329c3
Simplify package filtering method into a more explicit "switch" case
1a47c22
skip subrepos and internal packages when writing package file
a35119a
fix reusing err var resulted in failed filtering
9c1522c
doc strings for package metadata
9395a59
export missing doc strings
3c3d3d0
test: named go_repo and change testify for slimmer UUID
13e95cb
export dependencies of subrepos - 13/14 tests passing
28b5441
test: internal repo test using temp directory to avoid stale data
781af3a
fix: 0 label subinclude
2f8355c
adjusting dependency lookup and adjacent target test to include secon…
3e89c85
test: add custom tool to native test
9c5af3e
test: go_test export with several deps
922da6f
optional metadata parsing
5aeb360
test: minimal subinclude statement
517486a
collect map keys on active subinclude labels
f8f8e3f
non-fatal warning for missing source while exporting
8aa98e3
skip internal package export
5fa64f4
move some fatal to error and continue
e60dbb6
missing docstrings
c7409ab
run go fmt and plz fmt
be87020
move to error and continue for target lookup
6f73f78
rename new parser method on test files
762c016
use pkg.Metadata directly and remove intermediate pkg methods
406f95a
mutex in packagemetadata
b86ff9f
update stmt provider to avoid dereference
c7cd118
NewPackage with variadic optional functions
faf8c33
infof to debugf
dd8cfca
package metadata doc comments improvements
084f233
improve doc comments and adjust method visibility for export.go
bf0f734
hide build output when testing export
33d2bc2
open and write of exported package file merged into the same method
54f577c
update export_test.go with suggestions
ae5f520
apply review suggestions to export.go
5f0e549
rename and doc fields for scope
e59ab5b
revert new line change of target
917fe61
set builtin code filename for scope for debugging
b012ab8
Rework packagemetadata to return empty slices or nil instead of error…
2edfee0
linter fix imports
f59b5d0
ensure subrepo target exists. Failing to export //... on this repo
790a437
go test for filtered package
f589998
Add doc comments for providers in asp.interpreter
75521e2
test: function def in package file
2e2edde
unit testing current statement and active subincludes
0e74e53
remove nested maps and pointers in favor of using build labels
ef76bca
unexport noTrim implementation
8607a7b
AST based trimming (if-else and for):
b5bca70
handle subinclude variables by tracking origin and used.
bf9851d
scope metadata interface for optional metadata processing
34f75f8
test: adjust interpreter tests with scope metadata and origin trackin…
f0d26ca
golint trimmer
f9b4b80
fix missing targets by keeping parser running and parsing inline duri…
06eccf0
split export implementations into different files
66eef42
fix: propagate cursor
45e6cd8
simplify calls to getOrParseTarget
6bf0051
remove use of formatter and trim newlines
3f36ad4
reuse parser between build files
b76c2e2
use of baseExporter directly and interface cleanup
51814bc
interpreter preloads info prevents secondary loading/subincludes
58711e9
fix: deadlocking on closed results thread
0e05f0f
test: use system cache for speeding up e2e tests
8de64e3
add explicit targetToStmt mapping to improve CPU performance on FindS…
5ca4401
use cmap in package metadata, removing explicit usage of a shared mut…
6b9f0c4
docs: interface implementation comment
299b259
rename exporter source files
21f3775
apply feedback from multiple comments
681a664
local subrepos: fixes (relative filenames) and test
1bea58f
export transitive subincludes, fixing unexported targets subincluded …
acb81e6
export gitignore
f1a0abe
test: glob for sources
5d3073b
Package parsing via WaitForPackage
c38eba6
test: move trim test files into data
c387e50
test: trim subinclude in third_party/go test
2446dad
export label set
7152109
track used objects as a stack
50a8240
scopeMetadata: private, rename and comments
51cbb35
rename active to required subincludes
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.