Skip to content
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

OS X: Nonexistent path in query output #76

Closed
dturner-tw opened this issue Jan 19, 2015 · 1 comment
Closed

OS X: Nonexistent path in query output #76

dturner-tw opened this issue Jan 19, 2015 · 1 comment

Comments

@dturner-tw
Copy link
Contributor

To repro:

git clone https://github.com/torvalds/linux
cd linux
watchman watch .
sleep 15 #or so -- until watchman is finished loading up the initial state.
watchman -j < query1
find . -name 'u*.c'|xargs sed -i '' 's/memory/forget/g'; sleep
1;watchman -j < ~/query2

query1 and query2 are the same but for the "since" field. You can use any value for since for query1, but query2 should use the "clock" field from the output of query1. Here is the query:

["query", "/Users/dturner/linux", {"expression": ["anyof", ["type",
"f"], ["type", "d"], ["type", "l"]], "since":
"c:1421691971:94141:1:222", "empty_on_fresh_instance": true, "fields":
["name", "exists", "ctime_ns", "mtime_ns", "size", "uid", "gid",
"ino", "dev", "mode"]}]

The bug is that the output contains entries like
arch/hexagon/mm//Users/dturner/linux/arch/hexagon/mm/.uaccess.c.15532

Of course, there are no files by that name. It looks like a full path is occasionally being concatenated instead of a filename.

@dturner-tw
Copy link
Contributor Author

Thanks!

facebook-github-bot pushed a commit that referenced this issue Apr 11, 2019
Summary:
Needs to be enabled by option PYTHON_VENV in the config.

shell_builder.py sets up the venv and uses it once; calling activate

For docker we set ENV; resulting in the virtual environment being present
when the resulting container is run as well as at build time. This is also cleaner
and easier to follow than re-asserting on each RUN step.

For Lego builder we need to source activate on each command as environment
will not persist between commands.

While man on the posts say it makes no sense to use virtualenv within docker
container, this method simplifies the process considerably as we can rely on the
name pip being valid and we don't need to either ensure we are root or pass the
--user flag to pip and setuptools.

Pull Request resolved: facebookarchive/LogDevice#76

Reviewed By: wez

Differential Revision: D14875633

Pulled By: calebmarchent

fbshipit-source-id: aabbcdd509d2a59fa36f8004032a052f014ce1ba
facebook-github-bot pushed a commit that referenced this issue Mar 14, 2022
Summary:
X-link: facebookincubator/fizz#76

X-link: facebook/proxygen#402

X-link: facebook/folly#1735

X-link: facebookarchive/bistro#60

Pull Request resolved: #1012

X-link: facebook/fbthrift#487

X-link: facebook/fboss#114

X-link: facebook/fb303#27

When using getdeps inside of a container, Python's urllib isn't able to download from dewey lfs (see this post for details https://fb.workplace.com/groups/systemd.and.friends/permalink/2747692278870647/).

This allows for getdeps to use `libcurl` to fetch dependencies, which allows for a getdeps build to work inside the container environment.

Reviewed By: mackorone

Differential Revision: D34696330

fbshipit-source-id: 06cae87eef40dfa3cecacacee49234b6737d546f
heartpunk pushed a commit to heartpunk/watchman that referenced this issue Mar 20, 2022
Summary:
X-link: facebookincubator/fizz#76

X-link: facebook/proxygen#402

X-link: facebook/folly#1735

X-link: facebookarchive/bistro#60

Pull Request resolved: facebook#1012

X-link: facebook/fbthrift#487

X-link: facebook/fboss#114

X-link: facebook/fb303#27

When using getdeps inside of a container, Python's urllib isn't able to download from dewey lfs (see this post for details https://fb.workplace.com/groups/systemd.and.friends/permalink/2747692278870647/).

This allows for getdeps to use `libcurl` to fetch dependencies, which allows for a getdeps build to work inside the container environment.

Reviewed By: mackorone

Differential Revision: D34696330

fbshipit-source-id: 06cae87eef40dfa3cecacacee49234b6737d546f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant